# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ BVER="2.0.2" S=${WORKDIR}/${P} DESCRIPTION="Bochs pc emulator with debugger enabled." SRC_URI="mirror://sourceforge/bochs/bochs-${BVER}.tar.gz" HOMEPAGE="http://bochs.sourceforge.net" LICENSE="LGPL-2.1" SLOT="0" IUSE="sdl gtk" DEPEND=">=sys-libs/glibc-2.1.3 >=x11-base/xfree-4.0.1 >=sys-apps/sed-4 sdl? media-libs/libsdl gtk? x11-libs/wxGTK" RDEPEND="${DEPEND} =app-emulation/bochs-${BVER}" KEYWORDS="x86 ~ppc" src_unpack() { unpack bochs-${BVER}.tar.gz mv /var/tmp/portage/bochs-debugger-${BVER}/work/bochs-${BVER} /var/tmp/portage/bochs-debugger-${BVER}/work/bochs-debugger-${BVER} sed -i \ -e 's:BOCHSDIR=:BOCHSDIR=/usr/lib/bochs#:' \ -e 's: $(BOCHSDIR): $(DESTDIR)$(BOCHSDIR):g' ${S}/Makefile.in || \ die "sed Makefile.in failed" } src_compile() { [ "$ARCH" == "x86" ] && myconf="--enable-idle-hack" myconf="${myconf} `use_with sdl`" myconf="${myconf} `use_with gtk wx`" # no --enable-control-panel # --disable-readline required for use with BFE # ./configure --enable-fpu --enable-cdrom --disable-readline \ --enable-debugger --enable-disasm --enable-x86-debugger \ --enable-ne2000 --enable-sb16=linux --enable-slowdown --prefix=/usr \ --infodir=/usr/share/info --mandir=/usr/share/man --host=${CHOST} \ --with-x11 $myconf || die "configure failed" emake || die } src_install () { # install binaries mv bochs bochs-debugger strip bochs-debugger into /usr dobin bochs-debugger }