Portfile

PortSystem 1.0

name sheepshaver
version 2.3-20060318
categories emulators
platforms darwin
maintainers opendarwin.nospam@vercruesse.de
description PowerPC MacOS run-time environment
long_description SheepShaver is an Open Source PowerPC MacOS run-time \
environment. That is, it enables you to run PowerPC \
Classic MacOS software on your computer, even if you are \
using a different operating system. However, you still \
need a copy of MacOS and a PowerMacintosh ROM image to \
use this program.
homepage http://sheepshaver.cebix.net/

fetch.type cvs
cvs.root :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix
cvs.password anoncvs
cvs.module BasiliskII SheepShaver
cvs.date 20060318

depends_build port:autoconf \
port:automake

depends_lib port:libsdl \
port:gtk2

worksrcdir SheepShaver/src/Unix


pre-configure {
system "mkdir ${worksrcpath}/Darwin"
system "cd ${worksrcpath}/../../ && make links"
system "cd ${worksrcpath} && NO_CONFIGURE=yes ACLOCAL_FLAGS=\"-I m4\" ./autogen.sh"
}

configure.args --enable-sdl-video --enable-sdl-audio \
--disable-vosf --without-mon \
--with-gtk --without-esd


post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/../../doc/Linux ${destroot}${prefix}/share/doc/${name}
}

variant no_x11 {
configure.args-delete --with-gtk
configure.args-append --without-gtk
depends_lib-delete port:gtk2
}