blob: 041f92c25543f4a253e87fc26a8a2ed28d437f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/plex86/plex86-20021117.ebuild,v 1.11 2005/03/22 23:57:16 ciaranm Exp $
DESCRIPTION="Plex86 is THE opensource free-software alternative for VMWare, VirtualPC, and other IA-32 on IA-32 \"Virtual PC products.\""
HOMEPAGE="http://savannah.gnu.org/projects/plex86/"
SRC_URI="http://savannah.nongnu.org/download/plex86/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE="X sdl"
RDEPEND=">=sys-libs/ncurses-5.2-r7
X? ( virtual/x11 )
sdl? ( >=media-libs/libsdl-1.2.4 )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_compile() {
MY_CONF="--with-Linux --enable-cdrom --enable-split-hd --enable-pci --enable-vbe --enable-sb16=linux --enable-instrumentation"
# --enable-ne2000 not working at the moment
MY_GUI="curses"
use X && MY_GUI="x"
use sdl && MY_GUI="sdl"
use sdl && export SDL_CFLAGS="`sdl-config --cflags`"
use X && MY_CONF="${MY_CONF} --with-x --with-linux-source=/usr/src/linux"
MY_CONF="${MY_CONF} --with-gui=${MY_GUI}"
# fix typo (bug submitted)
sed -i \
-e s/'inclide'/'include'/ user/plugins/bochs/iodev/eth_fbsd.cc \
|| die "sed eth_fbsd.cc failed"
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man ${MY_CONF} || die "./configure failed"
emake || die "emake failed"
}
src_install() {
#make DESTDIR=${D} install || die
# for now just this:
dodir /opt/${P}
cp -r * ${D}/opt/${P} || die "cp failed"
}
pkg_postinst() {
echo
ewarn "This code is EXTREMELY EXPERIMENTAL, and may well result in a"
ewarn "SYSTEM CRASH, and who knows what other ill effects. RUN THIS"
ewarn "SOFTWARE AT YOUR OWN RISK. As a precaution, do not attempt to"
ewarn "run this software on a system with important data on it, and"
ewarn "make liberal use of the sync command! Expect to have to use"
ewarn "the power button."
echo
einfo "Contact me (lordvan@lordvan.com) if you encounter any problems."
echo
}
|