summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2004-02-29 03:31:14 +0000
committerLuca Barbato <lu_zero@gentoo.org>2004-02-29 03:31:14 +0000
commitab9dee99cf706aad7fe5ceffadde3121cf169b0d (patch)
treef5d12fe7ae414f518b78879c8258b379598b0e4c /app-emulation/bochs/bochs-2.1.1.ebuild
parentVersion bump. Using this naming scheme as it is the one going to be used for ... (diff)
downloadgentoo-2-ab9dee99cf706aad7fe5ceffadde3121cf169b0d.tar.gz
gentoo-2-ab9dee99cf706aad7fe5ceffadde3121cf169b0d.tar.bz2
gentoo-2-ab9dee99cf706aad7fe5ceffadde3121cf169b0d.zip
New version
Diffstat (limited to 'app-emulation/bochs/bochs-2.1.1.ebuild')
-rw-r--r--app-emulation/bochs/bochs-2.1.1.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/app-emulation/bochs/bochs-2.1.1.ebuild b/app-emulation/bochs/bochs-2.1.1.ebuild
new file mode 100644
index 000000000000..73da16080413
--- /dev/null
+++ b/app-emulation/bochs/bochs-2.1.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/bochs/bochs-2.1.1.ebuild,v 1.1 2004/02/29 03:31:13 lu_zero Exp $
+
+inherit eutils
+
+DESCRIPTION="a LGPL-ed pc emulator"
+HOMEPAGE="http://bochs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bochs/${P}.tar.gz
+ http://bochs.sourceforge.net/guestos/dlxlinux4.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~alpha ~sparc"
+IUSE="sdl gtk readline"
+
+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
+ readline? sys-libs/readline"
+
+src_unpack() {
+# unpack ${A}
+ unpack ${P}.tar.gz
+ cd ${S}
+# -e 's:MAN_PAGE_1_LIST=bochs bximage bochs-dlx:MAN_PAGE_1_LIST=bochs bximage:'
+ sed -i \
+ -e "s:\$(WGET) \$(DLXLINUX_TAR_URL):cp ${DISTDIR}/dlxlinux4.tar.gz .:" \
+ -e 's:BOCHSDIR=:BOCHSDIR=/usr/lib/bochs#:' \
+ -e 's: $(BOCHSDIR): $(DESTDIR)$(BOCHSDIR):g' Makefile.in || \
+ die "sed Makefile.in failed"
+# epatch ${FILESDIR}/${P}-gcc3.patch || die
+}
+
+src_compile() {
+ [ "$ARCH" == "x86" ] \
+ && myconf="--enable-idle-hack --enable-fast-function-calls"
+ myconf="${myconf} `use_with sdl`"
+ myconf="${myconf} `use_with gtk wx`"
+ myconf="${myconf} `use_enable readline`"
+
+ ./configure \
+ --enable-fpu --enable-cdrom --enable-control-panel \
+ --enable-usb --enable-pci --enable-mmx --enable-sse\
+ --enable-cpu-level=6 \
+ --enable-repeat-speedups --enable-guest2host-tlb \
+ --enable-plugins --enable-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 "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install unpack_dlx || die "make install failed"
+ #workaround
+ make prefix=${D}/usr install_dlx
+
+ dodoc CHANGES README TESTFORM.txt || die "dodoc failed"
+}