blob: bf978cdd98f6f76ea5cc6fb89cb3ce3a5940b7cb (
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
65
66
67
68
69
70
71
72
73
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-virtualbox
pkgdesc="Xorg Virtual box video driver"
pkgver=4.2.0
_ver=${pkgver/_rc/_RC}
pkgrel=0
arch="all"
url='http://virtualbox.org'
license="GPL custom"
makedepends="
dev86 iasl kbuild yasm zlib-dev
libxinerama-dev libxrandr-dev libxmu-dev libxdmcp-dev libxau-dev
libxext-dev libxfixes-dev libiconv-dev libx11-dev xorg-server-dev"
source="http://download.virtualbox.org/virtualbox/$_ver/VirtualBox-$_ver.tar.bz2
uclibc-gnu_linux.patch
futimens.patch
uclibc-spawn.patch
xf86-video-virtualbox-4-makeself-check.patch
xf86-video-virtualbox-link-lazy.patch
LocalConfig.kmk
"
_builddir="$srcdir/VirtualBox-${_ver}"
prepare() {
cd "$_builddir"
local i
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# the kmk_sed they ship and use is linked to glibc...
sed -i -e 's:KBUILD_SED=.*:KBUILD_SED="busybox sed":' configure
rm -r kBuild/bin tools
cp "$srcdir"/LocalConfig.kmk .
}
build() {
cd "$_builddir"
cp "$srcdir/LocalConfig.kmk" .
./configure --disable-docs \
--nofatal \
--disable-java \
--disable-pulse \
--disable-opengl \
--disable-kmods \
--disable-xpcom \
--disable-sdl-ttf \
--build-headless \
|| return 1
. ./env.sh
for i in Runtime Additions/common/VBoxGuestLib \
Additions/x11/x11stubs Additions/x11/vboxvideo; do
cd "$_builddir"/src/VBox/$i
kmk TOOL_YASM_AS=yasm || return 1
done
}
package() {
cd "$_builddir"/out/linux.*/release/bin/additions
install -Dm755 vboxvideo_drv_112.so \
"$pkgdir"/usr/lib/xorg/modules/drivers/vboxvideo_drv.so
}
md5sums="691b4134983ce7d89b9fb683305cb647 VirtualBox-4.2.0.tar.bz2
072ee2114b3771e7bdbff5211f342755 uclibc-gnu_linux.patch
10f65154d3ff17d88fad5ed384e20276 futimens.patch
cbf8efac5a1bfc3ac7c97f875b03e678 uclibc-spawn.patch
44efb3c4be214daa453a317d527f1f30 xf86-video-virtualbox-4-makeself-check.patch
383ef2c2f6cc6fcbbf4eba8391e4fa89 xf86-video-virtualbox-link-lazy.patch
c9eeb26fa65a0cf2c086a724cded4932 LocalConfig.kmk"
|