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