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.2.ebuild
Date: Thu, 16 Jul 2009 21:41:03
Message-Id: E1MRYhJ-00066T-9m@stork.gentoo.org
1 patrick 09/07/16 21:41:01
2
3 Modified: ChangeLog
4 Added: xf86-video-virtualbox-3.0.2.ebuild
5 Log:
6 Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the testers
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 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.13&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 1 Jun 2009 00:26:48 -0000 1.12
23 +++ ChangeLog 16 Jul 2009 21:41:01 -0000 1.13
24 @@ -1,6 +1,15 @@
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.12 2009/06/01 00:26:48 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/ChangeLog,v 1.13 2009/07/16 21:41:01 patrick Exp $
29 +
30 +*xf86-video-virtualbox-3.0.2 (16 Jul 2009)
31 +
32 + 16 Jul 2009; Patrick Lauer <patrick@g.o>
33 + +files/xf86-video-virtualbox-3.0.0-mesa-check.patch,
34 + +xf86-video-virtualbox-3.0.2.ebuild,
35 + +files/xf86-video-virtualbox-3-vboxvideo_drm.makefile:
36 + Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the
37 + testers
38
39 *xf86-video-virtualbox-2.2.4 (01 Jun 2009)
40
41
42
43
44 1.1 x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: xf86-video-virtualbox-3.0.2.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-3.0.2.ebuild,v 1.1 2009/07/16 21:41:01 patrick Exp $
54
55 EAPI=2
56
57 inherit x-modular eutils linux-mod
58
59 MY_P=VirtualBox-${PV}-OSE
60 DESCRIPTION="VirtualBox video driver"
61 HOMEPAGE="http://www.virtualbox.org/"
62 SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="dri"
68
69 RDEPEND="x11-base/xorg-server"
70 DEPEND="${RDEPEND}
71 >=dev-util/kbuild-0.1.5-r1
72 >=dev-lang/yasm-0.6.2
73 sys-devel/dev86
74 sys-power/iasl
75 x11-proto/fontsproto
76 x11-proto/randrproto
77 x11-proto/renderproto
78 x11-proto/xextproto
79 x11-proto/xineramaproto
80 x11-proto/xproto
81 x11-libs/libXdmcp
82 x11-libs/libXcomposite
83 x11-libs/libXau
84 x11-libs/libX11
85 x11-libs/libXfixes
86 x11-libs/libXext
87 dri? ( x11-proto/xf86driproto
88 >=x11-libs/libdrm-2.4.5 )"
89
90 BUILD_TARGETS="all"
91 BUILD_TARGET_ARCH="${ARCH}"
92 MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)"
93
94 S=${WORKDIR}/${MY_P/-OSE/_OSE}
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/lib/xorg/modules/drivers
158
159 # xorg-server-1.6.x (currently on the official x11 overlay)
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 elif has_version ">=x11-base/xorg-server-1.5" \
164 && has_version "<x11-base/xorg-server-1.6" ; then
165 newins vboxvideo_drv_15.so vboxvideo_drv.so
166 # xorg-server-1.4.x
167 elif has_version ">=x11-base/xorg-server-1.4" \
168 && has_version "<x11-base/xorg-server-1.5" ; then
169 newins vboxvideo_drv_14.so vboxvideo_drv.so
170 # xorg-server-1.3.x
171 else
172 newins vboxvideo_drv_13.so vboxvideo_drv.so
173 fi
174
175 # Guest OpenGL driver
176 insinto /usr/lib
177 doins -r VBoxOGL* || die
178
179 if use dri ; then
180 dosym /usr/lib/VBoxOGL.so /usr/lib/dri/vboxvideo_dri.so
181 fi
182 }
183
184 pkg_postinst() {
185 elog "You need to edit the file /etc/X11/xorg.conf and set:"
186 elog ""
187 elog " Driver \"vboxvideo\""
188 elog ""
189 elog "in the Graphics device section (Section \"Device\")"
190 elog ""
191 if use dri; then
192 elog "To use the kernel drm video driver, please add:"
193 elog "\"vboxvideo\" to:"
194 if has_version sys-apps/openrc; then
195 elog "/etc/conf.d/modules"
196 else
197 elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
198 fi
199 elog ""
200 fi
201 }