1 |
lxnay 10/05/01 00:01:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xf86-video-virtualbox-3.1.4-r2.ebuild |
5 |
xf86-video-virtualbox-3.1.0-r1.ebuild |
6 |
xf86-video-virtualbox-3.1.2-r1.ebuild |
7 |
xf86-video-virtualbox-3.1.6-r1.ebuild |
8 |
Removed: xf86-video-virtualbox-3.1.2.ebuild |
9 |
xf86-video-virtualbox-3.1.6.ebuild |
10 |
xf86-video-virtualbox-3.1.0.ebuild |
11 |
xf86-video-virtualbox-3.1.4-r1.ebuild |
12 |
Log: |
13 |
revision bump to ensure proper user notification, since pkg now works with xorg-server-1.7 |
14 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
15 |
|
16 |
Revision Changes Path |
17 |
1.35 x11-drivers/xf86-video-virtualbox/ChangeLog |
18 |
|
19 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.35&view=markup |
20 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.35&content-type=text/plain |
21 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.34&r2=1.35 |
22 |
|
23 |
Index: ChangeLog |
24 |
=================================================================== |
25 |
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v |
26 |
retrieving revision 1.34 |
27 |
retrieving revision 1.35 |
28 |
diff -u -r1.34 -r1.35 |
29 |
--- ChangeLog 30 Apr 2010 19:44:13 -0000 1.34 |
30 |
+++ ChangeLog 1 May 2010 00:01:34 -0000 1.35 |
31 |
@@ -1,6 +1,23 @@ |
32 |
# ChangeLog for x11-drivers/xf86-video-virtualbox |
33 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
34 |
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.34 2010/04/30 19:44:13 lxnay Exp $ |
35 |
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.35 2010/05/01 00:01:34 lxnay Exp $ |
36 |
+ |
37 |
+*xf86-video-virtualbox-3.1.6-r1 (01 May 2010) |
38 |
+*xf86-video-virtualbox-3.1.4-r2 (01 May 2010) |
39 |
+*xf86-video-virtualbox-3.1.2-r1 (01 May 2010) |
40 |
+*xf86-video-virtualbox-3.1.0-r1 (01 May 2010) |
41 |
+ |
42 |
+ 01 May 2010; Fabio Erculiani <lxnay@g.o> |
43 |
+ -xf86-video-virtualbox-3.1.0.ebuild, |
44 |
+ +xf86-video-virtualbox-3.1.0-r1.ebuild, |
45 |
+ -xf86-video-virtualbox-3.1.2.ebuild, |
46 |
+ +xf86-video-virtualbox-3.1.2-r1.ebuild, |
47 |
+ -xf86-video-virtualbox-3.1.4-r1.ebuild, |
48 |
+ +xf86-video-virtualbox-3.1.4-r2.ebuild, |
49 |
+ -xf86-video-virtualbox-3.1.6.ebuild, |
50 |
+ +xf86-video-virtualbox-3.1.6-r1.ebuild: |
51 |
+ revision bump to ensure proper user notification, since pkg now works with |
52 |
+ xorg-server-1.7 |
53 |
|
54 |
30 Apr 2010; Fabio Erculiani <lxnay@g.o> |
55 |
xf86-video-virtualbox-3.1.0.ebuild, xf86-video-virtualbox-3.1.2.ebuild, |
56 |
|
57 |
|
58 |
|
59 |
1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.4-r2.ebuild |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.4-r2.ebuild?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.4-r2.ebuild?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: xf86-video-virtualbox-3.1.4-r2.ebuild |
65 |
=================================================================== |
66 |
# Copyright 1999-2010 Gentoo Foundation |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.4-r2.ebuild,v 1.1 2010/05/01 00:01:34 lxnay Exp $ |
69 |
|
70 |
EAPI=2 |
71 |
|
72 |
inherit x-modular eutils linux-mod multilib |
73 |
|
74 |
MY_P=VirtualBox-${PV}-OSE |
75 |
DESCRIPTION="VirtualBox video driver" |
76 |
HOMEPAGE="http://www.virtualbox.org/" |
77 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
78 |
|
79 |
LICENSE="GPL-2" |
80 |
SLOT="0" |
81 |
KEYWORDS="~amd64 ~x86" |
82 |
IUSE="dri" |
83 |
|
84 |
RDEPEND="x11-base/xorg-server" |
85 |
DEPEND="${RDEPEND} |
86 |
>=dev-util/kbuild-0.1.5-r1 |
87 |
>=dev-lang/yasm-0.6.2 |
88 |
sys-devel/dev86 |
89 |
sys-power/iasl |
90 |
x11-proto/fontsproto |
91 |
x11-proto/randrproto |
92 |
x11-proto/renderproto |
93 |
x11-proto/xextproto |
94 |
x11-proto/xineramaproto |
95 |
x11-proto/xproto |
96 |
x11-libs/libXdmcp |
97 |
x11-libs/libXcomposite |
98 |
x11-libs/libXau |
99 |
x11-libs/libX11 |
100 |
x11-libs/libXfixes |
101 |
x11-libs/libXext |
102 |
dri? ( x11-proto/xf86driproto |
103 |
>=x11-libs/libdrm-2.4.5 )" |
104 |
|
105 |
BUILD_TARGETS="all" |
106 |
BUILD_TARGET_ARCH="${ARCH}" |
107 |
MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)" |
108 |
|
109 |
S=${WORKDIR}/${MY_P/-OSE/_OSE} |
110 |
|
111 |
QA_TEXTRELS_x86="usr/lib/VBoxOGL.so" |
112 |
|
113 |
pkg_setup() { |
114 |
linux-mod_pkg_setup |
115 |
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" |
116 |
} |
117 |
|
118 |
src_prepare() { |
119 |
|
120 |
# 2.6.33 support, backported patch |
121 |
# See http://www.virtualbox.org/ticket/6198 |
122 |
epatch "${FILESDIR}"/${P}-2.6.33.patch |
123 |
|
124 |
# Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR} |
125 |
cp -a "${WORKDIR}/${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/drm \ |
126 |
"${WORKDIR}/vboxvideo_drm" || die "cannot copy vboxvideo_drm directory" |
127 |
cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \ |
128 |
"${WORKDIR}/vboxvideo_drm/Makefile" || die "cannot copy vboxvideo_drm Makefile" |
129 |
|
130 |
if kernel_is -ge 2 6 33; then |
131 |
# evil patch for new kernels - header moved |
132 |
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' |
133 |
fi |
134 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
135 |
rm -rf kBuild/bin tools |
136 |
|
137 |
# Disable things unused or splitted into separate ebuilds |
138 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
139 |
|
140 |
# Ugly hack to build the opengl part of the video driver |
141 |
epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" |
142 |
|
143 |
# unset useless/problematic mesa checks in configure |
144 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
145 |
} |
146 |
|
147 |
src_configure() { |
148 |
# build the user-space tools, warnings are harmless |
149 |
./configure --nofatal \ |
150 |
--disable-xpcom \ |
151 |
--disable-sdl-ttf \ |
152 |
--disable-pulse \ |
153 |
--disable-alsa \ |
154 |
--build-headless || die "configure failed" |
155 |
source ./env.sh |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
if use dri; then |
160 |
linux-mod_src_compile |
161 |
fi |
162 |
|
163 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
164 |
/src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \ |
165 |
/src/VBox/Additions/x11/vboxvideo ; do |
166 |
cd "${S}"${each} |
167 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
168 |
KBUILD_PATH="${S}/kBuild" \ |
169 |
|| die "kmk failed" |
170 |
done |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
if use dri; then |
175 |
linux-mod_src_install |
176 |
fi |
177 |
|
178 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
179 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
180 |
|
181 |
# xorg-server-1.7.x |
182 |
if has_version ">=x11-base/xorg-server-1.7" ; then |
183 |
newins vboxvideo_drv_17.so vboxvideo_drv.so |
184 |
# xorg-server-1.6.x |
185 |
elif has_version ">=x11-base/xorg-server-1.6" ; then |
186 |
newins vboxvideo_drv_16.so vboxvideo_drv.so |
187 |
# xorg-server-1.5.x |
188 |
else |
189 |
newins vboxvideo_drv_15.so vboxvideo_drv.so |
190 |
fi |
191 |
|
192 |
# Guest OpenGL driver |
193 |
insinto /usr/$(get_libdir) |
194 |
doins -r VBoxOGL* || die |
195 |
|
196 |
if use dri ; then |
197 |
dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so |
198 |
fi |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
203 |
elog "" |
204 |
elog " Driver \"vboxvideo\"" |
205 |
elog "" |
206 |
elog "in the Graphics device section (Section \"Device\")" |
207 |
elog "" |
208 |
if use dri; then |
209 |
elog "To use the kernel drm video driver, please add:" |
210 |
elog "\"vboxvideo\" to:" |
211 |
if has_version sys-apps/openrc; then |
212 |
elog "/etc/conf.d/modules" |
213 |
else |
214 |
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" |
215 |
fi |
216 |
elog "" |
217 |
fi |
218 |
} |
219 |
|
220 |
|
221 |
|
222 |
1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.0-r1.ebuild |
223 |
|
224 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.0-r1.ebuild?rev=1.1&view=markup |
225 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.0-r1.ebuild?rev=1.1&content-type=text/plain |
226 |
|
227 |
Index: xf86-video-virtualbox-3.1.0-r1.ebuild |
228 |
=================================================================== |
229 |
# Copyright 1999-2010 Gentoo Foundation |
230 |
# Distributed under the terms of the GNU General Public License v2 |
231 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.0-r1.ebuild,v 1.1 2010/05/01 00:01:34 lxnay Exp $ |
232 |
|
233 |
EAPI=2 |
234 |
|
235 |
inherit x-modular eutils linux-mod multilib |
236 |
|
237 |
MY_P=VirtualBox-${PV}-OSE |
238 |
DESCRIPTION="VirtualBox video driver" |
239 |
HOMEPAGE="http://www.virtualbox.org/" |
240 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
241 |
|
242 |
LICENSE="GPL-2" |
243 |
SLOT="0" |
244 |
KEYWORDS="~amd64 ~x86" |
245 |
IUSE="dri" |
246 |
|
247 |
RDEPEND="x11-base/xorg-server" |
248 |
DEPEND="${RDEPEND} |
249 |
>=dev-util/kbuild-0.1.5-r1 |
250 |
>=dev-lang/yasm-0.6.2 |
251 |
sys-devel/dev86 |
252 |
sys-power/iasl |
253 |
x11-proto/fontsproto |
254 |
x11-proto/randrproto |
255 |
x11-proto/renderproto |
256 |
x11-proto/xextproto |
257 |
x11-proto/xineramaproto |
258 |
x11-proto/xproto |
259 |
x11-libs/libXdmcp |
260 |
x11-libs/libXcomposite |
261 |
x11-libs/libXau |
262 |
x11-libs/libX11 |
263 |
x11-libs/libXfixes |
264 |
x11-libs/libXext |
265 |
dri? ( x11-proto/xf86driproto |
266 |
>=x11-libs/libdrm-2.4.5 )" |
267 |
|
268 |
BUILD_TARGETS="all" |
269 |
BUILD_TARGET_ARCH="${ARCH}" |
270 |
MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)" |
271 |
|
272 |
S=${WORKDIR}/${MY_P/-OSE/_OSE} |
273 |
|
274 |
QA_TEXTRELS_x86="usr/lib/VBoxOGL.so" |
275 |
|
276 |
pkg_setup() { |
277 |
linux-mod_pkg_setup |
278 |
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" |
279 |
} |
280 |
|
281 |
src_unpack() { |
282 |
unpack ${A} |
283 |
|
284 |
# Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR} |
285 |
cp -a "${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/drm \ |
286 |
"${WORKDIR}/vboxvideo_drm" |
287 |
cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \ |
288 |
"${WORKDIR}/vboxvideo_drm/Makefile" |
289 |
} |
290 |
|
291 |
src_prepare() { |
292 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
293 |
rm -rf kBuild/bin tools |
294 |
|
295 |
# Disable things unused or splitted into separate ebuilds |
296 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
297 |
|
298 |
# Ugly hack to build the opengl part of the video driver |
299 |
epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" |
300 |
|
301 |
# unset useless/problematic mesa checks in configure |
302 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
303 |
} |
304 |
|
305 |
src_configure() { |
306 |
# build the user-space tools, warnings are harmless |
307 |
./configure --nofatal \ |
308 |
--disable-xpcom \ |
309 |
--disable-sdl-ttf \ |
310 |
--disable-pulse \ |
311 |
--disable-alsa \ |
312 |
--build-headless || die "configure failed" |
313 |
source ./env.sh |
314 |
} |
315 |
|
316 |
src_compile() { |
317 |
if use dri; then |
318 |
linux-mod_src_compile |
319 |
fi |
320 |
|
321 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
322 |
/src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \ |
323 |
/src/VBox/Additions/x11/vboxvideo ; do |
324 |
cd "${S}"${each} |
325 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
326 |
KBUILD_PATH="${S}/kBuild" \ |
327 |
|| die "kmk failed" |
328 |
done |
329 |
} |
330 |
|
331 |
src_install() { |
332 |
if use dri; then |
333 |
linux-mod_src_install |
334 |
fi |
335 |
|
336 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
337 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
338 |
|
339 |
# xorg-server-1.7.x |
340 |
if has_version ">=x11-base/xorg-server-1.7" ; then |
341 |
newins vboxvideo_drv_17.so vboxvideo_drv.so |
342 |
# xorg-server-1.6.x |
343 |
elif has_version ">=x11-base/xorg-server-1.6" ; then |
344 |
newins vboxvideo_drv_16.so vboxvideo_drv.so |
345 |
# xorg-server-1.5.x |
346 |
else |
347 |
newins vboxvideo_drv_15.so vboxvideo_drv.so |
348 |
fi |
349 |
|
350 |
# Guest OpenGL driver |
351 |
insinto /usr/$(get_libdir) |
352 |
doins -r VBoxOGL* || die |
353 |
|
354 |
if use dri ; then |
355 |
dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so |
356 |
fi |
357 |
} |
358 |
|
359 |
pkg_postinst() { |
360 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
361 |
elog "" |
362 |
elog " Driver \"vboxvideo\"" |
363 |
elog "" |
364 |
elog "in the Graphics device section (Section \"Device\")" |
365 |
elog "" |
366 |
if use dri; then |
367 |
elog "To use the kernel drm video driver, please add:" |
368 |
elog "\"vboxvideo\" to:" |
369 |
if has_version sys-apps/openrc; then |
370 |
elog "/etc/conf.d/modules" |
371 |
else |
372 |
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" |
373 |
fi |
374 |
elog "" |
375 |
fi |
376 |
} |
377 |
|
378 |
|
379 |
|
380 |
1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.2-r1.ebuild |
381 |
|
382 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.2-r1.ebuild?rev=1.1&view=markup |
383 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.2-r1.ebuild?rev=1.1&content-type=text/plain |
384 |
|
385 |
Index: xf86-video-virtualbox-3.1.2-r1.ebuild |
386 |
=================================================================== |
387 |
# Copyright 1999-2010 Gentoo Foundation |
388 |
# Distributed under the terms of the GNU General Public License v2 |
389 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.2-r1.ebuild,v 1.1 2010/05/01 00:01:34 lxnay Exp $ |
390 |
|
391 |
EAPI=2 |
392 |
|
393 |
inherit x-modular eutils linux-mod multilib |
394 |
|
395 |
MY_P=VirtualBox-${PV}-OSE |
396 |
DESCRIPTION="VirtualBox video driver" |
397 |
HOMEPAGE="http://www.virtualbox.org/" |
398 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
399 |
|
400 |
LICENSE="GPL-2" |
401 |
SLOT="0" |
402 |
KEYWORDS="~amd64 ~x86" |
403 |
IUSE="dri" |
404 |
|
405 |
RDEPEND="x11-base/xorg-server" |
406 |
DEPEND="${RDEPEND} |
407 |
>=dev-util/kbuild-0.1.5-r1 |
408 |
>=dev-lang/yasm-0.6.2 |
409 |
sys-devel/dev86 |
410 |
sys-power/iasl |
411 |
x11-proto/fontsproto |
412 |
x11-proto/randrproto |
413 |
x11-proto/renderproto |
414 |
x11-proto/xextproto |
415 |
x11-proto/xineramaproto |
416 |
x11-proto/xproto |
417 |
x11-libs/libXdmcp |
418 |
x11-libs/libXcomposite |
419 |
x11-libs/libXau |
420 |
x11-libs/libX11 |
421 |
x11-libs/libXfixes |
422 |
x11-libs/libXext |
423 |
dri? ( x11-proto/xf86driproto |
424 |
>=x11-libs/libdrm-2.4.5 )" |
425 |
|
426 |
BUILD_TARGETS="all" |
427 |
BUILD_TARGET_ARCH="${ARCH}" |
428 |
MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)" |
429 |
|
430 |
S=${WORKDIR}/${MY_P/-OSE/_OSE} |
431 |
|
432 |
QA_TEXTRELS_x86="usr/lib/VBoxOGL.so" |
433 |
|
434 |
pkg_setup() { |
435 |
linux-mod_pkg_setup |
436 |
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" |
437 |
} |
438 |
|
439 |
src_unpack() { |
440 |
unpack ${A} |
441 |
|
442 |
# Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR} |
443 |
cp -a "${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/drm \ |
444 |
"${WORKDIR}/vboxvideo_drm" |
445 |
cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \ |
446 |
"${WORKDIR}/vboxvideo_drm/Makefile" |
447 |
} |
448 |
|
449 |
src_prepare() { |
450 |
if kernel_is -ge 2 6 33 ; then |
451 |
# evil patch for new kernels - header moved |
452 |
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' |
453 |
fi |
454 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
455 |
rm -rf kBuild/bin tools |
456 |
|
457 |
# Disable things unused or splitted into separate ebuilds |
458 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
459 |
|
460 |
# Ugly hack to build the opengl part of the video driver |
461 |
epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" |
462 |
|
463 |
# unset useless/problematic mesa checks in configure |
464 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
465 |
} |
466 |
|
467 |
src_configure() { |
468 |
# build the user-space tools, warnings are harmless |
469 |
./configure --nofatal \ |
470 |
--disable-xpcom \ |
471 |
--disable-sdl-ttf \ |
472 |
--disable-pulse \ |
473 |
--disable-alsa \ |
474 |
--build-headless || die "configure failed" |
475 |
source ./env.sh |
476 |
} |
477 |
|
478 |
src_compile() { |
479 |
if use dri; then |
480 |
linux-mod_src_compile |
481 |
fi |
482 |
|
483 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
484 |
/src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \ |
485 |
/src/VBox/Additions/x11/vboxvideo ; do |
486 |
cd "${S}"${each} |
487 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
488 |
KBUILD_PATH="${S}/kBuild" \ |
489 |
|| die "kmk failed" |
490 |
done |
491 |
} |
492 |
|
493 |
src_install() { |
494 |
if use dri; then |
495 |
linux-mod_src_install |
496 |
fi |
497 |
|
498 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
499 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
500 |
|
501 |
# xorg-server-1.7.x |
502 |
if has_version ">=x11-base/xorg-server-1.7" ; then |
503 |
newins vboxvideo_drv_17.so vboxvideo_drv.so |
504 |
# xorg-server-1.6.x |
505 |
elif has_version ">=x11-base/xorg-server-1.6" ; then |
506 |
newins vboxvideo_drv_16.so vboxvideo_drv.so |
507 |
# xorg-server-1.5.x |
508 |
else |
509 |
newins vboxvideo_drv_15.so vboxvideo_drv.so |
510 |
fi |
511 |
|
512 |
# Guest OpenGL driver |
513 |
insinto /usr/$(get_libdir) |
514 |
doins -r VBoxOGL* || die |
515 |
|
516 |
if use dri ; then |
517 |
dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so |
518 |
fi |
519 |
} |
520 |
|
521 |
pkg_postinst() { |
522 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
523 |
elog "" |
524 |
elog " Driver \"vboxvideo\"" |
525 |
elog "" |
526 |
elog "in the Graphics device section (Section \"Device\")" |
527 |
elog "" |
528 |
if use dri; then |
529 |
elog "To use the kernel drm video driver, please add:" |
530 |
elog "\"vboxvideo\" to:" |
531 |
if has_version sys-apps/openrc; then |
532 |
elog "/etc/conf.d/modules" |
533 |
else |
534 |
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" |
535 |
fi |
536 |
elog "" |
537 |
fi |
538 |
} |
539 |
|
540 |
|
541 |
|
542 |
1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.6-r1.ebuild |
543 |
|
544 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.6-r1.ebuild?rev=1.1&view=markup |
545 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.6-r1.ebuild?rev=1.1&content-type=text/plain |
546 |
|
547 |
Index: xf86-video-virtualbox-3.1.6-r1.ebuild |
548 |
=================================================================== |
549 |
# Copyright 1999-2010 Gentoo Foundation |
550 |
# Distributed under the terms of the GNU General Public License v2 |
551 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.1.6-r1.ebuild,v 1.1 2010/05/01 00:01:34 lxnay Exp $ |
552 |
|
553 |
EAPI=2 |
554 |
|
555 |
inherit x-modular eutils linux-mod multilib |
556 |
|
557 |
MY_P=VirtualBox-${PV}-OSE |
558 |
DESCRIPTION="VirtualBox video driver" |
559 |
HOMEPAGE="http://www.virtualbox.org/" |
560 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
561 |
|
562 |
LICENSE="GPL-2" |
563 |
SLOT="0" |
564 |
KEYWORDS="~amd64 ~x86" |
565 |
IUSE="dri" |
566 |
|
567 |
RDEPEND="x11-base/xorg-server" |
568 |
DEPEND="${RDEPEND} |
569 |
>=dev-util/kbuild-0.1.5-r1 |
570 |
>=dev-lang/yasm-0.6.2 |
571 |
sys-devel/dev86 |
572 |
sys-power/iasl |
573 |
x11-proto/fontsproto |
574 |
x11-proto/randrproto |
575 |
x11-proto/renderproto |
576 |
x11-proto/xextproto |
577 |
x11-proto/xineramaproto |
578 |
x11-proto/xproto |
579 |
x11-libs/libXdmcp |
580 |
x11-libs/libXcomposite |
581 |
x11-libs/libXau |
582 |
x11-libs/libX11 |
583 |
x11-libs/libXfixes |
584 |
x11-libs/libXext |
585 |
dri? ( x11-proto/xf86driproto |
586 |
>=x11-libs/libdrm-2.4.5 )" |
587 |
|
588 |
BUILD_TARGETS="all" |
589 |
BUILD_TARGET_ARCH="${ARCH}" |
590 |
MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)" |
591 |
|
592 |
S=${WORKDIR}/${MY_P/-OSE/_OSE} |
593 |
|
594 |
QA_TEXTRELS_x86="usr/lib/VBoxOGL.so" |
595 |
|
596 |
pkg_setup() { |
597 |
linux-mod_pkg_setup |
598 |
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" |
599 |
} |
600 |
|
601 |
src_prepare() { |
602 |
# Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR} |
603 |
cp -a "${WORKDIR}/${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/drm \ |
604 |
"${WORKDIR}/vboxvideo_drm" || die "cannot copy vboxvideo_drm directory" |
605 |
cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \ |
606 |
"${WORKDIR}/vboxvideo_drm/Makefile" || die "cannot copy vboxvideo_drm Makefile" |
607 |
|
608 |
if kernel_is -ge 2 6 33; then |
609 |
# evil patch for new kernels - header moved |
610 |
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' |
611 |
fi |
612 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
613 |
rm -rf kBuild/bin tools |
614 |
|
615 |
# Disable things unused or splitted into separate ebuilds |
616 |
cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk |
617 |
|
618 |
# Ugly hack to build the opengl part of the video driver |
619 |
epatch "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch" |
620 |
|
621 |
# unset useless/problematic mesa checks in configure |
622 |
epatch "${FILESDIR}/${PN}-3.0.0-mesa-check.patch" |
623 |
} |
624 |
|
625 |
src_configure() { |
626 |
# build the user-space tools, warnings are harmless |
627 |
./configure --nofatal \ |
628 |
--disable-xpcom \ |
629 |
--disable-sdl-ttf \ |
630 |
--disable-pulse \ |
631 |
--disable-alsa \ |
632 |
--build-headless || die "configure failed" |
633 |
source ./env.sh |
634 |
} |
635 |
|
636 |
src_compile() { |
637 |
if use dri; then |
638 |
linux-mod_src_compile |
639 |
fi |
640 |
|
641 |
for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \ |
642 |
/src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \ |
643 |
/src/VBox/Additions/x11/vboxvideo ; do |
644 |
cd "${S}"${each} |
645 |
MAKE="kmk" emake TOOL_YASM_AS=yasm \ |
646 |
KBUILD_PATH="${S}/kBuild" \ |
647 |
|| die "kmk failed" |
648 |
done |
649 |
} |
650 |
|
651 |
src_install() { |
652 |
if use dri; then |
653 |
linux-mod_src_install |
654 |
fi |
655 |
|
656 |
cd "${S}/out/linux.${ARCH}/release/bin/additions" |
657 |
insinto /usr/$(get_libdir)/xorg/modules/drivers |
658 |
|
659 |
# xorg-server-1.7.x |
660 |
if has_version ">=x11-base/xorg-server-1.7" ; then |
661 |
newins vboxvideo_drv_17.so vboxvideo_drv.so |
662 |
# xorg-server-1.6.x |
663 |
elif has_version ">=x11-base/xorg-server-1.6" ; then |
664 |
newins vboxvideo_drv_16.so vboxvideo_drv.so |
665 |
# xorg-server-1.5.x |
666 |
else |
667 |
newins vboxvideo_drv_15.so vboxvideo_drv.so |
668 |
fi |
669 |
|
670 |
# Guest OpenGL driver |
671 |
insinto /usr/$(get_libdir) |
672 |
doins -r VBoxOGL* || die |
673 |
|
674 |
if use dri ; then |
675 |
dosym /usr/$(get_libdir)/VBoxOGL.so /usr/$(get_libdir)/dri/vboxvideo_dri.so |
676 |
fi |
677 |
} |
678 |
|
679 |
pkg_postinst() { |
680 |
elog "You need to edit the file /etc/X11/xorg.conf and set:" |
681 |
elog "" |
682 |
elog " Driver \"vboxvideo\"" |
683 |
elog "" |
684 |
elog "in the Graphics device section (Section \"Device\")" |
685 |
elog "" |
686 |
if use dri; then |
687 |
elog "To use the kernel drm video driver, please add:" |
688 |
elog "\"vboxvideo\" to:" |
689 |
if has_version sys-apps/openrc; then |
690 |
elog "/etc/conf.d/modules" |
691 |
else |
692 |
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" |
693 |
fi |
694 |
elog "" |
695 |
fi |
696 |
} |