summaryrefslogtreecommitdiff
blob: 2cc4099c7542ee550f7143736afbfa09154de5c0 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.5.5.ebuild,v 1.5 2004/06/24 22:34:08 agriffis Exp $

inherit eutils

DESCRIPTION="Multi-platform & multi-targets dynamic translator"
SRC_URI="http://fabrice.bellard.free.fr/qemu/${P}.tar.gz"
HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"

KEYWORDS="~x86 ~ppc -alpha -sparc"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
IUSE="softmmu qemu-fast"

DEPEND="virtual/glibc
		media-libs/libsdl"
RDEPEND=""

RESTRICT="nostrip"

TARGET_LIST="arm-user i386-user ppc-user sparc-user" #i386-softmmu ppc-softmmu
use softmmu && TARGET_LIST="${TARGET_LIST} i386-softmmu ppc-softmmu"
use qemu-fast && TARGET_LIST="${TARGET_LIST} i386"

#RUNTIME_PATH="/emul/gnemul/"
src_unpack () {
	unpack ${A}
	cd ${S}
#	epatch ${FILESDIR}/${P}-jocelyn-mayer-ppc.patch
}


src_compile () {
	./configure --prefix=/usr \
		--target-list="${TARGET_LIST}" || die "could not configure"
	make || die "make failed"

#		--interp-prefix=${RUNTIME_PATH}/qemu-%M
}

src_install() {
	make install prefix=${D}/usr		\
		bindir=${D}/usr/bin				\
		sharedir=${D}/usr/share/qemu	\
		docdir=${D}/usr/share/doc		\
		mandir=${D}/usr/share/man || die
}

pkg_postinst() {
	echo ">> You will need the Universal TUN/TAP driver compiled into"
	echo ">> kernel or as a module to use the virtual network device."
}