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

PortSystem 1.0

name			basiliskii-devel
version			1.0-20060314
categories		emulators
platforms		darwin
maintainers		vercruesse.de:opendarwin.nospam
description		68k Mac emulator
long_description	Basilisk II is an Open Source 68k Macintosh emulator.\
					That is, it allows you to run 68k 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 \
					Macintosh ROM image to use Basilisk II.

homepage		http://basilisk.cebix.net/

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

depends_build	port:autoconf \
				port:automake

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

worksrcdir		BasiliskII/src/Unix

patchfiles		patch-src-Unix-configure.ac


pre-configure {
	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}
	xinstall -W ${worksrcpath}/../../ README TECH TODO COPYING ChangeLog \
		INSTALL 	${destroot}${prefix}/share/doc/${name}
}


post-activate {
	ui_msg "To use Basilisk II, you need either a 512K Mac Classic ROM image"
	ui_msg "or a 512K or 1MB 32-bit clean Macintosh ROM image. You also need"
	ui_msg "a copy of Mac OS (0.x thru 7.5 for Classic emulation, 7.x or 8.0/"
	ui_msg "8.1 for Mac II emulation). For copyright reasons, none of these"
	ui_msg "items are included with Basilisk II. Mac OS 7.5.3 and earlier"
	ui_msg "versions can be downloaded from Apple and various other Internet"
	ui_msg "sites. Mac ROM files are not freely available. You have to own a"
	ui_msg "real Mac and read out its ROM."
}


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

#variant static {
#	configure.args-append --enable-sdl-static
#}
