1 |
commit: 1fbb1a9d6fc9862b3dd10b3d878a2cd83306b640 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 2 15:00:39 2012 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 2 15:00:39 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/alexxy.git;a=commit;h=1fbb1a9d |
7 |
|
8 |
moved to x11::opencl overlay |
9 |
|
10 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
11 |
|
12 |
--- |
13 |
media-libs/mesa/files/eselect-mesa.conf.8.1 | 38 -- |
14 |
.../mesa-9999-dont-require-llvm-for-r300.patch | 25 -- |
15 |
media-libs/mesa/mesa-9999.ebuild | 442 -------------------- |
16 |
media-libs/mesa/metadata.xml | 27 -- |
17 |
virtual/opencl/metadata.xml | 9 - |
18 |
virtual/opencl/opencl-0-r3.ebuild | 22 - |
19 |
6 files changed, 0 insertions(+), 563 deletions(-) |
20 |
|
21 |
diff --git a/media-libs/mesa/files/eselect-mesa.conf.8.1 b/media-libs/mesa/files/eselect-mesa.conf.8.1 |
22 |
deleted file mode 100644 |
23 |
index 63a21aa..0000000 |
24 |
--- a/media-libs/mesa/files/eselect-mesa.conf.8.1 |
25 |
+++ /dev/null |
26 |
@@ -1,38 +0,0 @@ |
27 |
-# mesa classic/gallium implementations in this release |
28 |
- |
29 |
-# Syntax description: |
30 |
-# * MESA_IMPLEMENTATIONS contains a space-delimited list of switchable |
31 |
-# classic/gallium implementations. |
32 |
-# * MESA_DRIVERS is an associative array, for each member "foo" of |
33 |
-# MESA_IMPLEMENTATIONS it contains the following elements: |
34 |
-# foo,description - Human-readable description of the driver |
35 |
-# foo,classicdriver - Filename of the classic driver |
36 |
-# foo,galliumdriver - Filename of the gallium driver |
37 |
-# foo,default - which of classic or gallium is chosen by default |
38 |
- |
39 |
-MESA_IMPLEMENTATIONS="i915 i965 r300 r600 sw" |
40 |
-declare -A MESA_DRIVERS || die "MESA_DRIVERS already in environment and not associative." |
41 |
- |
42 |
-MESA_DRIVERS[i915,description]="i915 (Intel 915, 945)" |
43 |
-MESA_DRIVERS[i915,classicdriver]="i915_dri.so" |
44 |
-MESA_DRIVERS[i915,galliumdriver]="i915g_dri.so" |
45 |
-MESA_DRIVERS[i915,default]="gallium" |
46 |
- |
47 |
-MESA_DRIVERS[i965,description]="i965 (Intel 965, G/Q3x, G/Q4x)" |
48 |
-MESA_DRIVERS[i965,classicdriver]="i965_dri.so" |
49 |
-MESA_DRIVERS[i965,default]="classic" |
50 |
- |
51 |
-MESA_DRIVERS[r300,description]="r300 (Radeon R300-R500)" |
52 |
-MESA_DRIVERS[r300,classicdriver]="r300_dri.so" |
53 |
-MESA_DRIVERS[r300,galliumdriver]="r300g_dri.so" |
54 |
-MESA_DRIVERS[r300,default]="gallium" |
55 |
- |
56 |
-MESA_DRIVERS[r600,description]="r600 (Radeon R600-R700, Evergreen, Northern Islands)" |
57 |
-MESA_DRIVERS[r600,classicdriver]="r600_dri.so" |
58 |
-MESA_DRIVERS[r600,galliumdriver]="r600g_dri.so" |
59 |
-MESA_DRIVERS[r600,default]="gallium" |
60 |
- |
61 |
-MESA_DRIVERS[sw,description]="sw (Software renderer)" |
62 |
-MESA_DRIVERS[sw,classicdriver]="swrast_dri.so" |
63 |
-MESA_DRIVERS[sw,galliumdriver]="swrastg_dri.so" |
64 |
-MESA_DRIVERS[sw,default]="gallium" |
65 |
|
66 |
diff --git a/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch b/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch |
67 |
deleted file mode 100644 |
68 |
index 9fe7e32..0000000 |
69 |
--- a/media-libs/mesa/files/mesa-9999-dont-require-llvm-for-r300.patch |
70 |
+++ /dev/null |
71 |
@@ -1,25 +0,0 @@ |
72 |
---- a/configure.ac 2012-05-12 11:50:09.786970584 +0200 |
73 |
-+++ b/configure.ac 2012-05-12 12:00:00.770582272 +0200 |
74 |
-@@ -1922,14 +1922,6 @@ |
75 |
- fi |
76 |
- } |
77 |
- |
78 |
--gallium_require_llvm() { |
79 |
-- if test "x$MESA_LLVM" = x0; then |
80 |
-- case "$host_cpu" in |
81 |
-- i*86|x86_64) AC_MSG_ERROR([LLVM is required to build $1 on x86 and x86_64]);; |
82 |
-- esac |
83 |
-- fi |
84 |
--} |
85 |
-- |
86 |
- gallium_require_drm_loader() { |
87 |
- if test "x$enable_gallium_loader" = xyes; then |
88 |
- PKG_CHECK_MODULES([LIBUDEV], [libudev], [], |
89 |
-@@ -1962,7 +1954,6 @@ |
90 |
- ;; |
91 |
- xr300) |
92 |
- PKG_CHECK_MODULES([RADEON], [libdrm_radeon >= $LIBDRM_RADEON_REQUIRED]) |
93 |
-- gallium_require_llvm "Gallium R300" |
94 |
- GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300" |
95 |
- gallium_check_st "radeon/drm" "dri-r300" "xorg-r300" "" "xvmc-r300" "vdpau-r300" "va-r300" |
96 |
- ;; |
97 |
|
98 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
99 |
deleted file mode 100644 |
100 |
index 7e39bae..0000000 |
101 |
--- a/media-libs/mesa/mesa-9999.ebuild |
102 |
+++ /dev/null |
103 |
@@ -1,442 +0,0 @@ |
104 |
-# Copyright 1999-2012 Gentoo Foundation |
105 |
-# Distributed under the terms of the GNU General Public License v2 |
106 |
-# $Header: $ |
107 |
- |
108 |
-EAPI=4 |
109 |
- |
110 |
-EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
111 |
- |
112 |
-if [[ ${PV} = 9999* ]]; then |
113 |
- GIT_ECLASS="git-2" |
114 |
- EXPERIMENTAL="true" |
115 |
-fi |
116 |
- |
117 |
-inherit base autotools multilib flag-o-matic toolchain-funcs ${GIT_ECLASS} |
118 |
- |
119 |
-OPENGL_DIR="xorg-x11" |
120 |
- |
121 |
-MY_PN="${PN/m/M}" |
122 |
-MY_P="${MY_PN}-${PV/_/-}" |
123 |
-MY_SRC_P="${MY_PN}Lib-${PV/_/-}" |
124 |
- |
125 |
-FOLDER="${PV/_rc*/}" |
126 |
- |
127 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
128 |
-HOMEPAGE="http://mesa3d.sourceforge.net/" |
129 |
- |
130 |
-#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2" |
131 |
-if [[ $PV = 9999* ]]; then |
132 |
- SRC_URI="${SRC_PATCHES}" |
133 |
-else |
134 |
- SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_SRC_P}.tar.bz2 |
135 |
- ${SRC_PATCHES}" |
136 |
-fi |
137 |
- |
138 |
-# Most of the code is MIT/X11. |
139 |
-# ralloc is LGPL-3 |
140 |
-# GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0 |
141 |
-LICENSE="MIT LGPL-3 SGI-B-2.0" |
142 |
-SLOT="0" |
143 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
144 |
- |
145 |
-INTEL_CARDS="i915 i965 intel" |
146 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
147 |
-VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} nouveau vmware" |
148 |
-for card in ${VIDEO_CARDS}; do |
149 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
150 |
-done |
151 |
- |
152 |
-IUSE="${IUSE_VIDEO_CARDS} |
153 |
- bindist +classic d3d debug +egl g3dvl +gallium gbm gles1 gles2 +llvm +nptl |
154 |
- opencl openvg osmesa pax_kernel pic r600-llvm-compiler selinux +shared-glapi |
155 |
- vdpau wayland xvmc xa xorg kernel_FreeBSD" |
156 |
- |
157 |
-REQUIRED_USE=" |
158 |
- d3d? ( gallium ) |
159 |
- g3dvl? ( gallium ) |
160 |
- llvm? ( gallium ) |
161 |
- openvg? ( egl gallium ) |
162 |
- opencl? ( gallium r600-llvm-compiler ) |
163 |
- gbm? ( shared-glapi ) |
164 |
- g3dvl? ( || ( vdpau xvmc ) ) |
165 |
- vdpau? ( g3dvl ) |
166 |
- r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeon ) ) |
167 |
- xa? ( gallium ) |
168 |
- xorg? ( gallium ) |
169 |
- xvmc? ( g3dvl ) |
170 |
- video_cards_intel? ( || ( classic gallium ) ) |
171 |
- video_cards_i915? ( || ( classic gallium ) ) |
172 |
- video_cards_i965? ( classic ) |
173 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
174 |
- video_cards_radeon? ( || ( classic gallium ) ) |
175 |
- video_cards_r100? ( classic ) |
176 |
- video_cards_r200? ( classic ) |
177 |
- video_cards_r300? ( gallium ) |
178 |
- video_cards_r600? ( gallium ) |
179 |
- video_cards_radeonsi? ( gallium llvm ) |
180 |
- video_cards_vmware? ( gallium ) |
181 |
-" |
182 |
- |
183 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.34" |
184 |
-# not a runtime dependency of this package, but dependency of packages which |
185 |
-# depend on this package, bug #342393 |
186 |
-EXTERNAL_DEPEND=" |
187 |
- >=x11-proto/dri2proto-2.6 |
188 |
- >=x11-proto/glproto-1.4.15 |
189 |
-" |
190 |
-# keep correct libdrm and dri2proto dep |
191 |
-# keep blocks in rdepend for binpkg |
192 |
-# gtest file collision bug #411825 |
193 |
-RDEPEND="${EXTERNAL_DEPEND} |
194 |
- dev-util/indent |
195 |
- !<x11-base/xorg-server-1.7 |
196 |
- !<=x11-proto/xf86driproto-2.0.3 |
197 |
- classic? ( app-admin/eselect-mesa ) |
198 |
- gallium? ( app-admin/eselect-mesa ) |
199 |
- >=app-admin/eselect-opengl-1.2.2 |
200 |
- dev-libs/expat |
201 |
- gbm? ( sys-fs/udev ) |
202 |
- >=x11-libs/libX11-1.3.99.901 |
203 |
- x11-libs/libXdamage |
204 |
- x11-libs/libXext |
205 |
- x11-libs/libXxf86vm |
206 |
- >=x11-libs/libxcb-1.8 |
207 |
- d3d? ( app-emulation/wine ) |
208 |
- opencl? ( app-admin/eselect-opencl ) |
209 |
- vdpau? ( >=x11-libs/libvdpau-0.4.1 ) |
210 |
- wayland? ( dev-libs/wayland ) |
211 |
- xorg? ( |
212 |
- x11-base/xorg-server |
213 |
- x11-libs/libdrm[libkms] |
214 |
- ) |
215 |
- xvmc? ( >=x11-libs/libXvMC-1.0.6 ) |
216 |
- ${LIBDRM_DEPSTRING}[video_cards_nouveau?,video_cards_vmware?] |
217 |
-" |
218 |
-for card in ${INTEL_CARDS}; do |
219 |
- RDEPEND="${RDEPEND} |
220 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
221 |
- " |
222 |
-done |
223 |
- |
224 |
-for card in ${RADEON_CARDS}; do |
225 |
- RDEPEND="${RDEPEND} |
226 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
227 |
- " |
228 |
-done |
229 |
- |
230 |
-DEPEND="${RDEPEND} |
231 |
- llvm? ( |
232 |
- >=sys-devel/llvm-2.9 |
233 |
- r600-llvm-compiler? ( >=sys-devel/llvm-3.1 ) |
234 |
- video_cards_radeonsi? ( >=sys-devel/llvm-3.1 ) |
235 |
- ) |
236 |
- opencl? ( |
237 |
- >=sys-devel/clang-3.1 |
238 |
- >=sys-devel/gcc-4.6 |
239 |
- ) |
240 |
- =dev-lang/python-2* |
241 |
- dev-libs/libxml2[python] |
242 |
- dev-util/pkgconfig |
243 |
- sys-devel/bison |
244 |
- sys-devel/flex |
245 |
- x11-misc/makedepend |
246 |
- >=x11-proto/xextproto-7.0.99.1 |
247 |
- x11-proto/xf86driproto |
248 |
- x11-proto/xf86vidmodeproto |
249 |
-" |
250 |
- |
251 |
-S="${WORKDIR}/${MY_P}" |
252 |
- |
253 |
-# It is slow without texrels, if someone wants slow |
254 |
-# mesa without texrels +pic use is worth the shot |
255 |
-QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*" |
256 |
-QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*" |
257 |
- |
258 |
-# Think about: ggi, fbcon, no-X configs |
259 |
- |
260 |
-pkg_setup() { |
261 |
- # workaround toc-issue wrt #386545 |
262 |
- use ppc64 && append-flags -mminimal-toc |
263 |
-} |
264 |
- |
265 |
-src_unpack() { |
266 |
- default |
267 |
- [[ $PV = 9999* ]] && git-2_src_unpack |
268 |
-} |
269 |
- |
270 |
-src_prepare() { |
271 |
- # apply patches |
272 |
- if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then |
273 |
- EPATCH_FORCE="yes" \ |
274 |
- EPATCH_SOURCE="${WORKDIR}/patches" \ |
275 |
- EPATCH_SUFFIX="patch" \ |
276 |
- epatch |
277 |
- fi |
278 |
- |
279 |
- # relax the requirement that r300 must have llvm, bug 380303 |
280 |
- epatch "${FILESDIR}"/${P}-dont-require-llvm-for-r300.patch |
281 |
- |
282 |
- # fix for hardened pax_kernel, bug 240956 |
283 |
- [[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch |
284 |
- |
285 |
- # Solaris needs some recent POSIX stuff in our case |
286 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
287 |
- sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
288 |
- fi |
289 |
- |
290 |
- # Tests fail against python-3, bug #407887 |
291 |
- sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die |
292 |
- |
293 |
- base_src_prepare |
294 |
- |
295 |
- eautoreconf |
296 |
-} |
297 |
- |
298 |
-src_configure() { |
299 |
- local myconf |
300 |
- |
301 |
- if use classic; then |
302 |
- # Configurable DRI drivers |
303 |
- driver_enable swrast |
304 |
- |
305 |
- # Intel code |
306 |
- driver_enable video_cards_i915 i915 |
307 |
- driver_enable video_cards_i965 i965 |
308 |
- if ! use video_cards_i915 && \ |
309 |
- ! use video_cards_i965; then |
310 |
- driver_enable video_cards_intel i915 i965 |
311 |
- fi |
312 |
- |
313 |
- # Nouveau code |
314 |
- driver_enable video_cards_nouveau nouveau |
315 |
- |
316 |
- # ATI code |
317 |
- driver_enable video_cards_r100 radeon |
318 |
- driver_enable video_cards_r200 r200 |
319 |
- if ! use video_cards_r100 && \ |
320 |
- ! use video_cards_r200; then |
321 |
- driver_enable video_cards_radeon radeon r200 |
322 |
- fi |
323 |
- fi |
324 |
- |
325 |
- if use egl; then |
326 |
- myconf+=" |
327 |
- --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") |
328 |
- $(use_enable gallium gallium-egl) |
329 |
- " |
330 |
- fi |
331 |
- |
332 |
- if use gallium; then |
333 |
- myconf+=" |
334 |
- $(use_enable d3d d3d1x) |
335 |
- $(use_enable g3dvl gallium-g3dvl) |
336 |
- $(use_enable llvm gallium-llvm) |
337 |
- $(use_enable openvg) |
338 |
- $(use_enable r600-llvm-compiler) |
339 |
- $(use_enable vdpau) |
340 |
- $(use_enable xvmc) |
341 |
- " |
342 |
- gallium_enable swrast |
343 |
- gallium_enable video_cards_vmware svga |
344 |
- gallium_enable video_cards_nouveau nouveau |
345 |
- gallium_enable video_cards_i915 i915 |
346 |
- if ! use video_cards_i915; then |
347 |
- gallium_enable video_cards_intel i915 |
348 |
- fi |
349 |
- |
350 |
- gallium_enable video_cards_r300 r300 |
351 |
- gallium_enable video_cards_r600 r600 |
352 |
- gallium_enable video_cards_radeonsi radeonsi |
353 |
- if ! use video_cards_r300 && \ |
354 |
- ! use video_cards_r600; then |
355 |
- gallium_enable video_cards_radeon r300 r600 |
356 |
- fi |
357 |
- # opencl stuff |
358 |
- if use opencl; then |
359 |
- myconf+=" |
360 |
- $(use_enable opencl) |
361 |
- --with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" |
362 |
- " |
363 |
- fi |
364 |
- fi |
365 |
- |
366 |
- # x86 hardened pax_kernel needs glx-rts, bug 240956 |
367 |
- if use pax_kernel; then |
368 |
- myconf+=" |
369 |
- $(use_enable x86 glx-rts) |
370 |
- " |
371 |
- fi |
372 |
- |
373 |
- econf \ |
374 |
- --enable-dri \ |
375 |
- --enable-glx \ |
376 |
- $(use_enable !bindist texture-float) \ |
377 |
- $(use_enable debug) \ |
378 |
- $(use_enable egl) \ |
379 |
- $(use_enable gbm) \ |
380 |
- $(use_enable gles1) \ |
381 |
- $(use_enable gles2) \ |
382 |
- $(use_enable nptl glx-tls) \ |
383 |
- $(use_enable osmesa) \ |
384 |
- $(use_enable !pic asm) \ |
385 |
- $(use_enable shared-glapi) \ |
386 |
- $(use_enable xa) \ |
387 |
- $(use_enable xorg) \ |
388 |
- --with-dri-drivers=${DRI_DRIVERS} \ |
389 |
- --with-gallium-drivers=${GALLIUM_DRIVERS} \ |
390 |
- ${myconf} |
391 |
-} |
392 |
- |
393 |
-src_install() { |
394 |
- base_src_install |
395 |
- |
396 |
- find "${ED}" -name '*.la' -exec rm -f {} + || die |
397 |
- |
398 |
- if use !bindist; then |
399 |
- dodoc docs/patents.txt |
400 |
- fi |
401 |
- |
402 |
- # Save the glsl-compiler for later use |
403 |
- if ! tc-is-cross-compiler; then |
404 |
- dobin "${S}"/src/glsl/glsl_compiler |
405 |
- fi |
406 |
- |
407 |
- # Install config file for eselect mesa |
408 |
- insinto /usr/share/mesa |
409 |
- newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf |
410 |
- |
411 |
- # Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
412 |
- # because user can eselect desired GL provider. |
413 |
- ebegin "Moving libGL and friends for dynamic switching" |
414 |
- dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include} |
415 |
- local x |
416 |
- for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL,OpenVG}.{la,a,so*}; do |
417 |
- if [ -f ${x} -o -L ${x} ]; then |
418 |
- mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \ |
419 |
- || die "Failed to move ${x}" |
420 |
- fi |
421 |
- done |
422 |
- for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do |
423 |
- if [ -f ${x} -o -L ${x} ]; then |
424 |
- mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \ |
425 |
- || die "Failed to move ${x}" |
426 |
- fi |
427 |
- done |
428 |
- eend $? |
429 |
- |
430 |
- if use classic || use gallium; then |
431 |
- ebegin "Moving DRI/Gallium drivers for dynamic switching" |
432 |
- local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so ) |
433 |
- keepdir /usr/$(get_libdir)/dri |
434 |
- dodir /usr/$(get_libdir)/mesa |
435 |
- for x in ${gallium_drivers[@]}; do |
436 |
- if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then |
437 |
- mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \ |
438 |
- || die "Failed to move ${x}" |
439 |
- insinto "/usr/$(get_libdir)/dri/" |
440 |
- if [ -f "${S}/$(get_libdir)/${x}" ]; then |
441 |
- insopts -m0755 |
442 |
- doins "${S}/$(get_libdir)/${x}" |
443 |
- fi |
444 |
- fi |
445 |
- done |
446 |
- for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do |
447 |
- if [ -f ${x} -o -L ${x} ]; then |
448 |
- mv -f "${x}" "${x/dri/mesa}" \ |
449 |
- || die "Failed to move ${x}" |
450 |
- fi |
451 |
- done |
452 |
- pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed" |
453 |
- ln -s ../mesa/*.so . || die "Creating symlink failed" |
454 |
- # remove symlinks to drivers known to eselect |
455 |
- for x in ${gallium_drivers[@]}; do |
456 |
- if [ -f ${x} -o -L ${x} ]; then |
457 |
- rm "${x}" || die "Failed to remove ${x}" |
458 |
- fi |
459 |
- done |
460 |
- popd |
461 |
- eend $? |
462 |
- fi |
463 |
- if use opencl; then |
464 |
- ebegin "Moving Gallium/Clover OpenCL implentation for dynamic switching" |
465 |
- if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then |
466 |
- mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \ |
467 |
- "${ED}"/usr/$(get_libdir)/OpenCL/vendors/mesa |
468 |
- fi |
469 |
- fi |
470 |
-} |
471 |
- |
472 |
-pkg_postinst() { |
473 |
- # Switch to the xorg implementation. |
474 |
- echo |
475 |
- eselect opengl set --use-old ${OPENGL_DIR} |
476 |
- |
477 |
- # switch to xorg-x11 and back if necessary, bug #374647 comment 11 |
478 |
- OLD_IMPLEM="$(eselect opengl show)" |
479 |
- if [[ ${OPENGL_DIR}x != ${OLD_IMPLEM}x ]]; then |
480 |
- eselect opengl set ${OPENGL_DIR} |
481 |
- eselect opengl set ${OLD_IMPLEM} |
482 |
- fi |
483 |
- |
484 |
- # Select classic/gallium drivers |
485 |
- if use classic || use gallium; then |
486 |
- eselect mesa set --auto |
487 |
- fi |
488 |
- |
489 |
- # warn about patent encumbered texture-float |
490 |
- if use !bindist; then |
491 |
- elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" |
492 |
- elog "enabled. Please see patents.txt for an explanation." |
493 |
- fi |
494 |
- |
495 |
- local using_radeon r_flag |
496 |
- for r_flag in ${RADEON_CARDS}; do |
497 |
- if use video_cards_${r_flag}; then |
498 |
- using_radeon=1 |
499 |
- break |
500 |
- fi |
501 |
- done |
502 |
- |
503 |
- if [[ ${using_radeon} = 1 ]] && ! has_version media-libs/libtxc_dxtn; then |
504 |
- elog "Note that in order to have full S3TC support, it is necessary to install" |
505 |
- elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice" |
506 |
- elog "textures in some apps, and some others even require this to run." |
507 |
- fi |
508 |
-} |
509 |
- |
510 |
-# $1 - VIDEO_CARDS flag |
511 |
-# other args - names of DRI drivers to enable |
512 |
-# TODO: avoid code duplication for a more elegant implementation |
513 |
-driver_enable() { |
514 |
- case $# in |
515 |
- # for enabling unconditionally |
516 |
- 1) |
517 |
- DRI_DRIVERS+=",$1" |
518 |
- ;; |
519 |
- *) |
520 |
- if use $1; then |
521 |
- shift |
522 |
- for i in $@; do |
523 |
- DRI_DRIVERS+=",${i}" |
524 |
- done |
525 |
- fi |
526 |
- ;; |
527 |
- esac |
528 |
-} |
529 |
- |
530 |
-gallium_enable() { |
531 |
- case $# in |
532 |
- # for enabling unconditionally |
533 |
- 1) |
534 |
- GALLIUM_DRIVERS+=",$1" |
535 |
- ;; |
536 |
- *) |
537 |
- if use $1; then |
538 |
- shift |
539 |
- for i in $@; do |
540 |
- GALLIUM_DRIVERS+=",${i}" |
541 |
- done |
542 |
- fi |
543 |
- ;; |
544 |
- esac |
545 |
-} |
546 |
|
547 |
diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml |
548 |
deleted file mode 100644 |
549 |
index a918a88..0000000 |
550 |
--- a/media-libs/mesa/metadata.xml |
551 |
+++ /dev/null |
552 |
@@ -1,27 +0,0 @@ |
553 |
-<?xml version="1.0" encoding="UTF-8"?> |
554 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
555 |
-<pkgmetadata> |
556 |
-<herd>x11</herd> |
557 |
-<use> |
558 |
- <flag name='classic'>Build drivers based on the classic architecture.</flag> |
559 |
- <flag name='d3d'>Enable DirectX 10/10.1/11 backend for Gallium3D.</flag> |
560 |
- <flag name='egl'>Enable EGL support.</flag> |
561 |
- <flag name='gallium'>Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.</flag> |
562 |
- <flag name='g3dvl'>Enable video decode acceleration support for Gallium3D.</flag> |
563 |
- <flag name='gbm'>Enable the Graphics Buffer Manager for EGL on KMS.</flag> |
564 |
- <flag name='gles1'>Enable GLESv1 support.</flag> |
565 |
- <flag name='gles2'>Enable GLESv2 support.</flag> |
566 |
- <flag name='llvm'>Enable LLVM backend for Gallium3D.</flag> |
567 |
- <flag name='openvg'>Enable the OpenVG 2D acceleration API for Gallium3D.</flag> |
568 |
- <flag name='osmesa'>Enable the Off-screen Rendering Mesa API</flag> |
569 |
- <flag name='pax_kernel'>Enable if the user plans to run the package under a pax enabled hardened kernel</flag> |
570 |
- <flag name='r600-llvm-compiler'>Enable r600 shader compiler LLVM backend.</flag> |
571 |
- <flag name='pic'>disable optimized assembly code that is not PIC friendly</flag> |
572 |
- <flag name='shared-glapi'>Enable sharing of common code for the OpenGL API.</flag> |
573 |
- <flag name='vdpau'>Enable the VDPAU acceleration interface for the Gallium3D Video Layer.</flag> |
574 |
- <flag name='wayland'>Enable support for dev-libs/wayland</flag> |
575 |
- <flag name='xa'>Enable the XA (X Acceleration) API for Gallium3D.</flag> |
576 |
- <flag name='xorg'>Enable the Xorg state tracker for Gallium3D. This is not required for OpenGL acceleration in X.</flag> |
577 |
- <flag name='xvmc'>Enable the XvMC acceleration interface for the Gallium3D Video Layer.</flag> |
578 |
-</use> |
579 |
-</pkgmetadata> |
580 |
|
581 |
diff --git a/virtual/opencl/metadata.xml b/virtual/opencl/metadata.xml |
582 |
deleted file mode 100644 |
583 |
index 81cbff6..0000000 |
584 |
--- a/virtual/opencl/metadata.xml |
585 |
+++ /dev/null |
586 |
@@ -1,9 +0,0 @@ |
587 |
-<?xml version="1.0" encoding="UTF-8"?> |
588 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
589 |
-<pkgmetadata> |
590 |
-<herd>x11</herd> |
591 |
-<maintainer> |
592 |
- <email>xarthisius@g.o</email> |
593 |
- <name>Kacper Kowalik</name> |
594 |
-</maintainer> |
595 |
-</pkgmetadata> |
596 |
|
597 |
diff --git a/virtual/opencl/opencl-0-r3.ebuild b/virtual/opencl/opencl-0-r3.ebuild |
598 |
deleted file mode 100644 |
599 |
index cc75930..0000000 |
600 |
--- a/virtual/opencl/opencl-0-r3.ebuild |
601 |
+++ /dev/null |
602 |
@@ -1,22 +0,0 @@ |
603 |
-# Copyright 1999-2012 Gentoo Foundation |
604 |
-# Distributed under the terms of the GNU General Public License v2 |
605 |
-# $Header: /var/cvsroot/gentoo-x86/virtual/opencl/opencl-0-r2.ebuild,v 1.2 2012/03/24 11:56:44 ago Exp $ |
606 |
- |
607 |
-EAPI="4" |
608 |
- |
609 |
-DESCRIPTION="Virtual for OpenCL implementations" |
610 |
- |
611 |
-SLOT="0" |
612 |
-KEYWORDS="amd64 ~x86" |
613 |
-CARDS=( fglrx nvidia radeon nouveau ) |
614 |
-IUSE="${CARDS[@]/#/video_cards_}" |
615 |
- |
616 |
-DEPEND="" |
617 |
-RDEPEND="app-admin/eselect-opencl |
618 |
- || ( |
619 |
- video_cards_fglrx? ( >=x11-drivers/ati-drivers-12.1-r1 ) |
620 |
- video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-290.10-r2 ) |
621 |
- video_cards_radeon? ( >=media-libs/mesa-8.1[video_cards_radeon,opencl] ) |
622 |
- video_cards_nouveau? ( >=media-libs/mesa-8.1[video_cards_nouveau,opencl] ) |
623 |
- dev-util/intel-ocl-sdk |
624 |
- )" |