# $Id: Portfile 58210 2009-09-24 06:56:08Z ryandesign@macports.org $

PortSystem 1.0

name			sheepshaver
version			2.3-20060318
categories		emulators
platforms		darwin
maintainers		vercruesse.de:opendarwin.nospam
description		PowerPC Mac OS run-time environment
long_description	SheepShaver is an Open Source PowerPC Mac OS run-time \
					environment. That is, it enables you to run PowerPC \
					Classic Mac OS software on your computer, even if you are \
					using a different operating system. However, you still \
					need a copy of Mac OS and a Power Macintosh 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		path:lib/pkgconfig/sdl.pc: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
}

