--- Portfile.orig	2005-12-21 23:45:43.000000000 +0100
+++ Portfile	2005-12-21 23:56:55.000000000 +0100
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name			qemu
-version			0.7.0
+version			0.8.0
 homepage		http://bellard.org/qemu
 
 categories		emulators
@@ -11,27 +11,28 @@
 maintainers		pidherbemont@opendarwin.org
 description		x86 and PowerPC Emulator
 
-master_sites		http://fabrice.bellard.free.fr/qemu/
-checksums		md5 234e9ace03b00259bb57dc5a9c633056
-depends_lib		lib:libsdl:libsdl
-patchfiles		patch-configure.diff
-
 long_description	QEMU is a FAST! processor emulator \
 				using dynamic translation to achieve \
 				good emulation speed. It can emulate \
 				a Full PC System and has basic support \
 				for PowerMac Emulation.
 
-platform darwin {
-	patchfiles-append patch-vl.c
+master_sites		http://fabrice.bellard.free.fr/qemu/
+checksums		md5 eb175b26583280706fe7e4d8910d320d
+
+patchfiles		patch-configure.diff
+
+platform macosx {
+	configure.args-append	--enable-coreaudio --enable-cocoa
 }
 
 platform darwin 8 {
-	configure.args-append	--cc=gcc-3.3
+	configure.args-append	--cc=gcc-3.3 --interp-prefix=${prefix}/share/qemu-%M
 }
 
-variant cocoa {
-	configure.args-append	--enable-cocoa
-}
+# we could have an SDL variant, if someone's interested
+# depends_lib		lib:libsdl:libsdl
+# configure.env		CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+# patch the configure process so that the Makefile honors the CPPFLAGS
 
 destroot.destdir	prefix=${destroot}${prefix}

