# $Id: Portfile 74920 2011-01-07 10:20:26Z ryandesign@macports.org $

PortSystem 1.0

name			sheepshaver
cvs.date		20110101
version			2.3-${cvs.date}
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

depends_build	port:autoconf \
				port:automake

depends_lib		path:lib/pkgconfig/sdl.pc:libsdl \
				port:gtk2

worksrcdir		SheepShaver/src/Unix

post-extract {
	file mkdir ${worksrcpath}/Darwin
}

patchfiles		patch-Makefile.in.diff

pre-configure {
	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
}

universal_variant	no
