Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/xf86-video-virtualbox: ChangeLog xf86-video-virtualbox-3.0.6.ebuild
Date: Thu, 10 Sep 2009 20:04:24
Message-Id: E1MlpsU-0006kk-Fn@stork.gentoo.org
1 patrick 09/09/10 20:04:22
2
3 Modified: ChangeLog
4 Added: xf86-video-virtualbox-3.0.6.ebuild
5 Log:
6 Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.15 x11-drivers/xf86-video-virtualbox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.15&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.15&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.14&r2=1.15
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v
19 retrieving revision 1.14
20 retrieving revision 1.15
21 diff -u -r1.14 -r1.15
22 --- ChangeLog 17 Aug 2009 14:32:29 -0000 1.14
23 +++ ChangeLog 10 Sep 2009 20:04:22 -0000 1.15
24 @@ -1,6 +1,13 @@
25 # ChangeLog for x11-drivers/xf86-video-virtualbox
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.14 2009/08/17 14:32:29 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.15 2009/09/10 20:04:22 patrick Exp $
29 +
30 +*xf86-video-virtualbox-3.0.6 (10 Sep 2009)
31 +
32 + 10 Sep 2009; Patrick Lauer <patrick@g.o>
33 + files/xf86-video-virtualbox-2-localconfig,
34 + +xf86-video-virtualbox-3.0.6.ebuild:
35 + Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407
36
37 *xf86-video-virtualbox-3.0.4 (17 Aug 2009)
38
39
40
41
42 1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.6.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xf86-video-virtualbox-3.0.6.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.6.ebuild,v 1.1 2009/09/10 20:04:22 patrick Exp $
52
53 EAPI=2
54
55 inherit x-modular eutils linux-mod multilib
56
57 MY_P=VirtualBox-${PV}-OSE
58 DESCRIPTION="VirtualBox video driver"
59 HOMEPAGE="http://www.virtualbox.org/"
60 SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="dri"
66
67 RDEPEND="x11-base/xorg-server"
68 DEPEND="${RDEPEND}
69 >=dev-util/kbuild-0.1.5-r1
70 >=dev-lang/yasm-0.6.2
71 sys-devel/dev86
72 sys-power/iasl
73 x11-proto/fontsproto
74 x11-proto/randrproto
75 x11-proto/renderproto
76 x11-proto/xextproto
77 x11-proto/xineramaproto
78 x11-proto/xproto
79 x11-libs/libXdmcp
80 x11-libs/libXcomposite
81 x11-libs/libXau
82 x11-libs/libX11
83 x11-libs/libXfixes
84 x11-libs/libXext
85 dri? ( x11-proto/xf86driproto
86 >=x11-libs/libdrm-2.4.5 )"
87
88 BUILD_TARGETS="all"
89 BUILD_TARGET_ARCH="${ARCH}"
90 MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)"
91
92 S=${WORKDIR}/${MY_P/-OSE/_OSE}
93
94 QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
95
96 pkg_setup() {
97 linux-mod_pkg_setup
98 BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
99 }
100
101 src_unpack() {
102 unpack ${A}
103
104 # Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR}
105 cp -a "${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/drm \
106 "${WORKDIR}/vboxvideo_drm"
107 cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \
108 "${WORKDIR}/vboxvideo_drm/Makefile"
109 }
110
111 src_prepare() {
112 # Remove shipped binaries (kBuild,yasm), see bug #232775
113 rm -rf kBuild/bin tools
114
115 # Disable things unused or splitted into separate ebuilds
116 cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk
117
118 # Ugly hack to build the opengl part of the video driver
119 epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
120
121 # unset useless/problematic mesa checks in configure
122 epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch"
123 }
124
125 src_configure() {
126 # build the user-space tools, warnings are harmless
127 ./configure --nofatal \
128 --disable-xpcom \
129 --disable-sdl-ttf \
130 --disable-pulse \
131 --disable-alsa \
132 --build-headless || die "configure failed"
133 source ./env.sh
134 }
135
136 src_compile() {
137 if use dri; then
138 linux-mod_src_compile
139 fi
140
141 for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \
142 /src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \
143 /src/VBox/Additions/x11/vboxvideo ; do
144 cd "${S}"${each}
145 MAKE="kmk" emake TOOL_YASM_AS=yasm \
146 KBUILD_PATH="${S}/kBuild" \
147 || die "kmk failed"
148 done
149 }
150
151 src_install() {
152 if use dri; then
153 linux-mod_src_install
154 fi
155
156 cd "${S}/out/linux.${ARCH}/release/bin/additions"
157 insinto /usr/$(get_libdir)/xorg/modules/drivers
158
159 # xorg-server-1.6.x
160 if has_version ">=x11-base/xorg-server-1.6" ; then
161 newins vboxvideo_drv_16.so vboxvideo_drv.so
162 # xorg-server-1.5.x
163 else
164 newins vboxvideo_drv_15.so vboxvideo_drv.so
165 fi
166
167 # Guest OpenGL driver
168 insinto /usr/$(get_libdir)
169 doins -r VBoxOGL* || die
170
171 if use dri ; then
172 dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so
173 fi
174 }
175
176 pkg_postinst() {
177 elog "You need to edit the file /etc/X11/xorg.conf and set:"
178 elog ""
179 elog " Driver \"vboxvideo\""
180 elog ""
181 elog "in the Graphics device section (Section \"Device\")"
182 elog ""
183 if use dri; then
184 elog "To use the kernel drm video driver, please add:"
185 elog "\"vboxvideo\" to:"
186 if has_version sys-apps/openrc; then
187 elog "/etc/conf.d/modules"
188 else
189 elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
190 fi
191 elog ""
192 fi
193 }