summaryrefslogtreecommitdiff
blob: 77c9e9e45836316aa0df54a22dd2b6cfa349bfca (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-1.3.4.ebuild,v 1.1 2007/02/12 17:28:00 jokey Exp $

inherit eutils linux-mod qt3

MY_P=VirtualBox-OSE-${PV}
DESCRIPTION="Softwarefamily of powerful x86 virtualization"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://virtualbox.org/download/${PV}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="dev-libs/libIDL
	>=dev-libs/libxslt-1.1.19
	dev-libs/xalan-c
	dev-libs/xerces-c
	media-libs/libsdl
	x11-libs/libXcursor
	$(qt_min_version 3.3.5)"
DEPEND="${REPEND}
	sys-devel/bin86
	sys-devel/dev86
	sys-power/iasl"

S=${WORKDIR}/${MY_P}

BUILD_TARGETS="all"
BUILD_PARAMS="KERN_DIR=${KERNEL_DIR}"
MODULE_NAMES="vboxdrv(misc:${S}/out/linux.x86/release/bin/src:${S}/out/linux.x86/release/bin/src)"

src_compile() {
	cd "${S}"
	./configure || die "configure failed"
	source ./env.sh
	kmk all
	linux-mod_src_compile
}

src_install() {
	linux-mod_src_install
	cd "${S}"/out/linux.x86/release/bin
	rm -rf sdk src tst* testcase additions/src
	rm vboxdrv.ko SUPInstall SUPUninstall
	insinto /opt/VirtualBox
	doins -r *
	for each in VBox{BFE,Manage,SDL,SVC,XPCOMIPCD} VirtualBox vditool xpidl additions/vboxadd-timesync ; do
		fperms 0755 /opt/VirtualBox/${each}
	done
	make_wrapper vboxsvc "./VBoxSVC" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
	make_wrapper virtualbox "./VirtualBox" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
}