--- /usr/portage/app-emulation/bochs/bochs-2.2.1.ebuild 2005-07-10 05:21:42.000000000 +0200 +++ /usr/portage/app-emulation/bochs/bochs-2.2.1.ebuild 2005-07-13 20:43:00.000000000 +0200 @@ -11,7 +11,7 @@ LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~x86 ~ppc ~alpha ~sparc ~amd64" +KEYWORDS="~x86 ~ppc ~ppc-macos ~alpha ~sparc ~amd64" IUSE="debugger gtk2 readline sdl wxwindows" RDEPEND="virtual/libc @@ -33,6 +33,7 @@ -e 's:BOCHSDIR=:BOCHSDIR=/usr/lib/bochs#:' \ -e 's: $(BOCHSDIR): $(DESTDIR)$(BOCHSDIR):g' Makefile.in || \ die "sed Makefile.in failed" + use ppc-macos && epatch ${FILESDIR}/${P}-osx.patch } src_compile() { @@ -54,6 +55,14 @@ use debugger && \ myconf="$myconf --enable-debugger --enable-disasm --enable-x86-debugger" + # allow compilation to succeed on OSX, it doesn't like linux + # sound system things -- Fabian Groffen 2005-07-13 + if use ppc-macos; + then + myconf="${myconf} --enable-sb16=osx" + else + myconf="${myconf} --enable-sb16=linux" + fi; ./configure \ --enable-fpu --enable-cdrom --enable-control-panel \ --enable-usb --enable-pci --enable-mmx --enable-sse\ @@ -61,7 +70,7 @@ --enable-repeat-speedups --enable-guest2host-tlb \ --enable-plugins \ --enable-ignore-bad-msr \ - --enable-ne2000 --enable-sb16=linux --enable-slowdown --prefix=/usr \ + --enable-ne2000 --enable-slowdown --prefix=/usr \ --infodir=/usr/share/info --mandir=/usr/share/man --host=${CHOST} \ --with-x11 $myconf || \ die "configure failed"