summaryrefslogtreecommitdiff
blob: 4ffbf7d97a34fd11fcb980c1ae8607665234d68d (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit linux-mod multilib

DESCRIPTION="KVM Virtualization package"
HOMEPAGE="http://kvm.qumranet.com/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="media-libs/libsdl
	!app-emulation/qemu"
DEPEND="${RDEPEND}"

src_compile() {
	MYCONF="--prefix=/usr --disable-gcc-check --qemu-cc=gcc"
	if use inkernel; then
		# Stupid configure script can't take --without-patched-kernel
		MYCONF="${MYCONF} --with-patched-kernel"
	fi
	./configure ${MYCONF} || die "configure failed"

	emake -C user || die "making user failed"
	emake -C qemu || die "making qemu failed"
}

src_install() {
	emake -C user DESTDIR=${D} install || die "installing user failed"
	emake -C qemu DESTDIR=${D} install || die "installing qemu failed"
	#emake install || die "install failed"
}