Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/xarthisius:master commit in: virtual/opencl/, x11-drivers/ati-drivers/, x11-drivers/ati-drivers/files/, ...
Date: Wed, 08 Feb 2012 11:00:50
Message-Id: a949e9737169547ae9ddef4b24469520ce98d748.xarthisius@gentoo
1 commit: a949e9737169547ae9ddef4b24469520ce98d748
2 Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com>
3 AuthorDate: Wed Feb 8 11:00:51 2012 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 8 11:00:51 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xarthisius.git;a=commit;h=a949e973
7
8 moved to g-x86
9
10 ---
11 app-admin/eselect-opencl/Manifest | 10 -
12 .../eselect-opencl/eselect-opencl-1.1.0.ebuild | 58 --
13 app-admin/eselect-opencl/metadata.xml | 11 -
14 virtual/opencl/ChangeLog | 14 -
15 virtual/opencl/Manifest | 3 -
16 virtual/opencl/metadata.xml | 5 -
17 virtual/opencl/opencl-0-r1.ebuild | 20 -
18 x11-drivers/ati-drivers/Manifest | 6 -
19 .../ati-drivers/ati-drivers-11.12-r1.ebuild | 607 --------------------
20 .../files/ati-powermode-opt-path-2.patch | 42 --
21 x11-drivers/ati-drivers/files/atieventsd.init | 20 -
22 x11-drivers/ati-drivers/files/switchlibGL | 61 --
23 x11-drivers/ati-drivers/metadata.xml | 26 -
24 x11-drivers/nvidia-drivers/Manifest | 6 -
25 .../nvidia-drivers/files/256.35-unified-arch.patch | 31 -
26 x11-drivers/nvidia-drivers/files/nvidia-169.07 | 14 -
27 .../nvidia-drivers/nvidia-drivers-290.10-r1.ebuild | 561 ------------------
28 17 files changed, 0 insertions(+), 1495 deletions(-)
29
30 diff --git a/app-admin/eselect-opencl/Manifest b/app-admin/eselect-opencl/Manifest
31 deleted file mode 100644
32 index 608e78e..0000000
33 --- a/app-admin/eselect-opencl/Manifest
34 +++ /dev/null
35 @@ -1,10 +0,0 @@
36 -DIST cl.h.1.1.xz 6940 RMD160 697d52b04bba416c233433ff5b9cba47d7327631 SHA1 2092a622e1494f0a31c1371147bc87478226b44b SHA256 11b0249ec6c35000686cfe775b1789fa010b6d058e123b00c720e8408881f13f
37 -DIST cl.hpp.1.1.xz 14764 RMD160 009ff35d03da82b8271785077d94f046193f91d6 SHA1 096b0e0fd42d841effa24c6323cf109aa2f6ecce SHA256 5d90ef4d964a6365d8e9305913c85dd0ffe6916df0a151a116b1b58b0e6c7ef4
38 -DIST cl_ext.h.1.1.xz 2740 RMD160 f2debb481b3f3c94cbca5a50bb77fb571c9538dd SHA1 f7c759f6d8077e6d1eb222d1acb4a9638bee4741 SHA256 aeb729345004bf67d2564e1dc55feb326ff017f3b291ffb8e1391de353e09620
39 -DIST cl_gl.h.1.1.xz 1856 RMD160 e92b5e843322c9e78f3fe72da43c1502109dc1f5 SHA1 3c4ad063ea5e4ee232b273cecbb85abf17dbf112 SHA256 eeddf3403c13776b3d13a25c9e47a01eee750c0120f74d402fad5d78b29f925a
40 -DIST cl_gl_ext.h.1.1.xz 1356 RMD160 0ba4c5d6f3c1d119d7a8844abd43b83db987b565 SHA1 829ae549cdd0de3878626858fb041d5a424ebd96 SHA256 594e463e3a24e62870c5c1914b05e796aeda8892bf6830ee8db3f722993fdf02
41 -DIST cl_platform.h.1.1.xz 5584 RMD160 034d4be552aa3ddb6cc45718c5aa7a195d7f3f59 SHA1 bdc027789de959d1aa33e70de8af90dd103780d3 SHA256 2f70eb47285fd46f75d48476e90ee3b7e9ba62166bc573bbb35cb0f9d7a2ea53
42 -DIST eselect-opencl-1.1.0.tar.xz 3272 RMD160 e6538d2207823487288dabce18e1baf8bd59ddf3 SHA1 fef7bf2949fb9b9f9f73a8fd30fca2f063abeb51 SHA256 0b49d847d4475119f969fc7bbcdc4ceb1905e37e102b10d0bdad4f8e6010bbbe
43 -DIST opencl.h.1.1.xz 944 RMD160 d9c8ee867a0068fbb05624d48d9e236d0f43acd3 SHA1 2b94aff101b7a3ee4261957b6d46edd6b81faf24 SHA256 c076e410eaffd9fbb056528f31a59fe1908481f0fd38981c13970727a0c4d096
44 -EBUILD eselect-opencl-1.1.0.ebuild 1598 RMD160 43ab4e74d0b17952a8f1811c9ad18942a4020881 SHA1 cf2cf07fd325b7db555e5bf77000d55317056959 SHA256 05bfe44af5c2aebfe28cf83bc7ce12334ac0d8dca107515a28ec7018e69bb22e
45 -MISC metadata.xml 346 RMD160 0c92ffb77efabdb583731ded733cc93c90b9185e SHA1 d9fc5f5cb3457c3c9fc9718809244e865309d3a8 SHA256 1ad263671e904451c1626471f26da723d969a084dd5d7b53cdcc450a12910a5f
46
47 diff --git a/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild b/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild
48 deleted file mode 100644
49 index 488e6c4..0000000
50 --- a/app-admin/eselect-opencl/eselect-opencl-1.1.0.ebuild
51 +++ /dev/null
52 @@ -1,58 +0,0 @@
53 -# Copyright 1999-2012 Gentoo Foundation
54 -# Distributed under the terms of the GNU General Public License v2
55 -# $Header$
56 -
57 -EAPI=4
58 -CL_ABI=1.1
59 -
60 -inherit multilib
61 -
62 -DESCRIPTION="Utility to change the OpenCL implementation being used"
63 -HOMEPAGE="http://www.gentoo.org/"
64 -
65 -# Source:
66 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/opencl.h
67 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_platform.h
68 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.h
69 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_ext.h
70 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl.h
71 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl_gl_ext.h
72 -# http://www.khronos.org/registry/cl/api/${CL_ABI}/cl.hpp
73 -
74 -MIRROR="http://dev.gentoo.org/~xarthisius/distfiles/"
75 -SRC_URI="${MIRROR}/opencl.h.${CL_ABI}.xz
76 - ${MIRROR}/cl_platform.h.${CL_ABI}.xz
77 - ${MIRROR}/cl.h.${CL_ABI}.xz
78 - ${MIRROR}/cl_ext.h.${CL_ABI}.xz
79 - ${MIRROR}/cl_gl.h.${CL_ABI}.xz
80 - ${MIRROR}/cl_gl_ext.h.${CL_ABI}.xz
81 - ${MIRROR}/cl.hpp.${CL_ABI}.xz
82 - ${MIRROR}/${P}.tar.xz"
83 -
84 -LICENSE="GPL-2"
85 -SLOT="0"
86 -KEYWORDS="~amd64 ~x86"
87 -IUSE=""
88 -
89 -DEPEND="app-arch/xz-utils"
90 -RDEPEND=">=app-admin/eselect-1.2.4"
91 -
92 -pkg_postinst() {
93 - local impl="$(eselect opencl show)"
94 - if [[ -n "${impl}" && "${impl}" != '(none)' ]] ; then
95 - eselect opencl set "${impl}"
96 - fi
97 -}
98 -
99 -src_install() {
100 - insinto /usr/share/eselect/modules
101 - doins opencl.eselect
102 - #doman opencl.eselect.5
103 -
104 - local headers=( opencl.h cl_platform.h cl.h cl_ext.h cl_gl.h cl_gl_ext.h cl.hpp )
105 - insinto /usr/$(get_libdir)/OpenCL/global/include/CL
106 - cd "${WORKDIR}"
107 - for f in ${headers[@]}; do
108 - newins ${f}.${CL_ABI} ${f}
109 - done
110 -}
111
112 diff --git a/app-admin/eselect-opencl/metadata.xml b/app-admin/eselect-opencl/metadata.xml
113 deleted file mode 100644
114 index 0d69e85..0000000
115 --- a/app-admin/eselect-opencl/metadata.xml
116 +++ /dev/null
117 @@ -1,11 +0,0 @@
118 -<?xml version="1.0" encoding="UTF-8"?>
119 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
120 -<pkgmetadata>
121 - <maintainer>
122 - <email>xarthisius@g.o</email>
123 - <name>Kacper Kowalik</name>
124 - </maintainer>
125 - <longdescription>
126 - Utility to switch OpenCL implementations between various providers.
127 - </longdescription>
128 -</pkgmetadata>
129
130 diff --git a/virtual/opencl/ChangeLog b/virtual/opencl/ChangeLog
131 deleted file mode 100644
132 index 7de2a68..0000000
133 --- a/virtual/opencl/ChangeLog
134 +++ /dev/null
135 @@ -1,14 +0,0 @@
136 -# ChangeLog for virtual/opencl
137 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
138 -# $Header: /var/cvsroot/gentoo-x86/virtual/opencl/ChangeLog,v 1.2 2011/12/20 22:09:15 vapier Exp $
139 -
140 - 20 Dec 2011; Mike Frysinger <vapier@g.o> opencl-0.ebuild:
141 - Drop ATI from dep list for now since that only provides the libraries and not
142 - the required headers #392179#2 by Emil Karlson.
143 -
144 -*opencl-0 (20 Dec 2011)
145 -
146 - 20 Dec 2011; Mike Frysinger <vapier@g.o> +opencl-0.ebuild,
147 - +metadata.xml:
148 - Initial ebuild by me for #392179 by Michal Pytasz.
149 -
150
151 diff --git a/virtual/opencl/Manifest b/virtual/opencl/Manifest
152 deleted file mode 100644
153 index e3cfd14..0000000
154 --- a/virtual/opencl/Manifest
155 +++ /dev/null
156 @@ -1,3 +0,0 @@
157 -EBUILD opencl-0-r1.ebuild 564 RMD160 6b9bbed449955c2cee6edc665e097155980a9c07 SHA1 a86cd2450aec06b8f9a3181b0de9c7c6af1f1694 SHA256 00f530bb5f0974cbf10bd037d6f9392655c8162f257e961be9711255b7b349cd
158 -MISC ChangeLog 563 RMD160 aa2dd37824bca3c9e8676a43f7e4856190b82ab0 SHA1 fa77721c3e624a171d1b40ca84f6edf440e00c90 SHA256 d73326fe95e263947a3266673baa0894b270efa8e32a6b63ba44d0f53a07a9a7
159 -MISC metadata.xml 156 RMD160 c1274bdccf57603d580de0075ba07a35b7509560 SHA1 6f78f604e3d079d39189b40aaaa1ddb06182ad91 SHA256 5101ab0d4cc8c7125eea733c44e86962769bd77acaf53b69223b9cadcdd29055
160
161 diff --git a/virtual/opencl/metadata.xml b/virtual/opencl/metadata.xml
162 deleted file mode 100644
163 index 01c4c00..0000000
164 --- a/virtual/opencl/metadata.xml
165 +++ /dev/null
166 @@ -1,5 +0,0 @@
167 -<?xml version="1.0" encoding="UTF-8"?>
168 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
169 -<pkgmetadata>
170 -<herd>x11</herd>
171 -</pkgmetadata>
172
173 diff --git a/virtual/opencl/opencl-0-r1.ebuild b/virtual/opencl/opencl-0-r1.ebuild
174 deleted file mode 100644
175 index 53988f0..0000000
176 --- a/virtual/opencl/opencl-0-r1.ebuild
177 +++ /dev/null
178 @@ -1,20 +0,0 @@
179 -# Copyright 1999-2011 Gentoo Foundation
180 -# Distributed under the terms of the GNU General Public License v2
181 -# $Header: /var/cvsroot/gentoo-x86/virtual/opencl/opencl-0.ebuild,v 1.2 2011/12/20 22:09:15 vapier Exp $
182 -
183 -EAPI="4"
184 -
185 -DESCRIPTION="Virtual for OpenCL implementations"
186 -
187 -SLOT="0"
188 -KEYWORDS="~amd64 ~x86"
189 -CARDS=( fglrx nvidia )
190 -IUSE="${CARDS[@]/#/video_cards_}"
191 -
192 -REQUIRED_USE="|| ( ${IUSE} )"
193 -
194 -RDEPEND="app-admin/eselect-opencl
195 - || (
196 - video_cards_fglrx? ( >=x11-drivers/ati-drivers-11.2[opencl] )
197 - video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-290.10 )
198 - )"
199
200 diff --git a/x11-drivers/ati-drivers/Manifest b/x11-drivers/ati-drivers/Manifest
201 deleted file mode 100644
202 index 068d39a..0000000
203 --- a/x11-drivers/ati-drivers/Manifest
204 +++ /dev/null
205 @@ -1,6 +0,0 @@
206 -AUX ati-powermode-opt-path-2.patch 1634 RMD160 a9c4ecc90a748f94282521a555ad7b64db242249 SHA1 3f61d804710bd88ee45cd3a9e3672b356359dd73 SHA256 e7749e04a3aa24132b13d0c694563a45c0d38e238f7412a75bd89aa9f9e9ead1
207 -AUX atieventsd.init 533 RMD160 b9b95a8a3f32dcafba3e5fa08d6d1053e831291a SHA1 982ffdb8064785c8b96fb0213ad7892ac918b5d7 SHA256 20010ebc5cb286149f3c4c9c099b6470463ccdb8fd47cea054b783dc2ad1fff3
208 -AUX switchlibGL 1349 RMD160 d3c9f36fabf65b21f26456e303d8127779fd1bd2 SHA1 277a549afd62fdeae9f09022a8e55ceabf180f9f SHA256 a4aa2107fdb903da77fea432bc809a1155e213db460fdec72fd1c3c7cc0d13a0
209 -DIST ati-driver-installer-11-12-x86.x86_64.run 99618112 RMD160 70ae7407bab182c7fc9b1d4a177c2e1493ffb508 SHA1 d20a185165eff1b6d9631b7e3ed7201eeda9312a SHA256 0179d1f0425036e50b637e5153b0c64b25836d09e9d22bc50edfbdf6aed32b42
210 -EBUILD ati-drivers-11.12-r1.ebuild 19306 RMD160 88350248c3b82a0b639d0029dbd1d2e4cd227fee SHA1 87bafea65a73a3228edca63ebf871a1f1ed8f14c SHA256 c7859cfe28cf6540709d84453d9ef23ee1ef2e8b15b86aa72eceb0ce2e49b1ff
211 -MISC metadata.xml 654 RMD160 3e7fd3ab86650df6ffa64df4cd3bd603e4f01afd SHA1 0236c5a647f00b5a49934753fc4ab83da27f41a0 SHA256 46041d48f808d0bf985c35c7b1d7a46730654c576d20d9d9d3a46b487d08b916
212
213 diff --git a/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild b/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild
214 deleted file mode 100644
215 index 11bf281..0000000
216 --- a/x11-drivers/ati-drivers/ati-drivers-11.12-r1.ebuild
217 +++ /dev/null
218 @@ -1,607 +0,0 @@
219 -# Copyright 1999-2011 Gentoo Foundation
220 -# Distributed under the terms of the GNU General Public License v2
221 -# $Header: $
222 -
223 -EAPI=4
224 -
225 -inherit eutils multilib linux-info linux-mod toolchain-funcs versionator
226 -
227 -DESCRIPTION="Ati precompiled drivers for r600 (HD Series) and newer chipsets"
228 -HOMEPAGE="http://www.ati.com"
229 -# 8.ble will be used for beta releases.
230 -if [[ $(get_major_version) -gt 8 ]]; then
231 - ATI_URL="http://www2.ati.com/drivers/linux/"
232 - SRC_URI="${ATI_URL}/ati-driver-installer-${PV/./-}-x86.x86_64.run"
233 - FOLDER_PREFIX="common/"
234 -else
235 - SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz"
236 - FOLDER_PREFIX=""
237 -fi
238 -IUSE="debug +modules multilib opencl pax_kernel qt4"
239 -
240 -LICENSE="AMD GPL-2 QPL-1.0 as-is"
241 -KEYWORDS="~amd64 ~x86"
242 -SLOT="1"
243 -
244 -RDEPEND="
245 - <=x11-base/xorg-server-1.11.49
246 - >=app-admin/eselect-opengl-1.0.7
247 - sys-power/acpid
248 - x11-apps/xauth
249 - x11-libs/libX11
250 - x11-libs/libXext
251 - x11-libs/libXinerama
252 - x11-libs/libXrandr
253 - x11-libs/libXrender
254 - multilib? (
255 - app-emulation/emul-linux-x86-opengl
256 - app-emulation/emul-linux-x86-xlibs
257 - )
258 - qt4? (
259 - x11-libs/libICE
260 - x11-libs/libSM
261 - x11-libs/libXcursor
262 - x11-libs/libXfixes
263 - x11-libs/libXxf86vm
264 - x11-libs/qt-core
265 - x11-libs/qt-gui
266 - )
267 -"
268 -
269 -DEPEND="${RDEPEND}
270 - x11-proto/inputproto
271 - x11-proto/xf86miscproto
272 - x11-proto/xf86vidmodeproto
273 - x11-proto/xineramaproto
274 - x11-libs/libXtst
275 - sys-apps/findutils
276 - app-misc/pax-utils
277 -"
278 -
279 -EMULTILIB_PKG="true"
280 -
281 -S="${WORKDIR}"
282 -
283 -# QA Silencing
284 -QA_TEXTRELS="
285 - usr/lib*/opengl/ati/lib/libGL.so.1.2
286 - usr/lib*/libatiadlxx.so
287 - usr/lib*/xorg/modules/glesx.so
288 - usr/lib*/libaticaldd.so
289 - usr/lib*/dri/fglrx_dri.so
290 -"
291 -
292 -QA_EXECSTACK="
293 - opt/bin/atiode
294 - opt/bin/amdcccle
295 - usr/lib*/opengl/ati/lib/libGL.so.1.2
296 - usr/lib*/dri/fglrx_dri.so
297 -"
298 -
299 -QA_WX_LOAD="
300 - usr/lib*/opengl/ati/lib/libGL.so.1.2
301 - usr/lib*/dri/fglrx_dri.so
302 -"
303 -
304 -QA_PRESTRIPPED="
305 - usr/lib\(32\|64\)\?/libXvBAW.so.1.0
306 - usr/lib\(32\|64\)\?/opengl/ati/lib/libGL.so.1.2
307 - usr/lib\(32\|64\)\?/opengl/ati/extensions/libglx.so
308 - usr/lib\(32\|64\)\?/xorg/modules/glesx.so
309 - usr/lib\(32\|64\)\?/libAMDXvBA.so.1.0
310 - usr/lib\(32\|64\)\?/libaticaldd.so
311 - usr/lib\(32\|64\)\?/dri/fglrx_dri.so
312 -"
313 -
314 -QA_SONAME="
315 - usr/lib\(32\|64\)\?/libatiadlxx.so
316 - usr/lib\(32\|64\)\?/libaticalcl.so
317 - usr/lib\(32\|64\)\?/libaticaldd.so
318 - usr/lib\(32\|64\)\?/libaticalrt.so
319 - usr/lib\(32\|64\)\?/libamdocl\(32\|64\)\?.so
320 -"
321 -
322 -QA_DT_HASH="
323 - opt/bin/amdcccle
324 - opt/bin/aticonfig
325 - opt/bin/atiodcli
326 - opt/bin/atiode
327 - opt/bin/clinfo
328 - opt/bin/fglrxinfo
329 - opt/sbin/atieventsd
330 - opt/sbin/amdnotifyui
331 - usr/lib\(32\|64\)\?/libaticalcl.so
332 - usr/lib\(32\|64\)\?/libaticalrt.so
333 - usr/lib\(32\|64\)\?/libatiuki.so.1.0
334 - usr/lib\(32\|64\)\?/libatiadlxx.so
335 - usr/lib\(32\|64\)\?/libfglrx_dm.so.1.0
336 - usr/lib\(32\|64\)\?/libXvBAW.so.1.0
337 - usr/lib\(32\|64\)\?/libAMDXvBA.so.1.0
338 - usr/lib\(32\|64\)\?/xorg/modules/amdxmm.so
339 - usr/lib\(32\|64\)\?/xorg/modules/glesx.so
340 - usr/lib\(32\|64\)\?/xorg/modules/linux/libfglrxdrm.so
341 - usr/lib\(32\|64\)\?/xorg/modules/drivers/fglrx_drv.so
342 - usr/lib\(32\|64\)\?/libaticaldd.so
343 - usr/lib\(32\|64\)\?/dri/fglrx_dri.so
344 - usr/lib\(32\|64\)\?/opengl/ati/extensions/libglx.so
345 - usr/lib\(32\|64\)\?/opengl/ati/extensions/fglrx-libglx.so
346 - usr/lib\(32\|64\)\?/opengl/ati/lib/fglrx-libGL.so.1.2
347 - usr/lib\(32\|64\)\?/opengl/ati/lib/libGL.so.1.2
348 - usr/lib\(32\|64\)\?/OpenCL/vendors/amd/libamdocl\(32\|64\)\?.so
349 - usr/lib\(32\|64\)\?/OpenCL/vendors/amd/libOpenCL.so.1
350 -"
351 -
352 -_check_kernel_config() {
353 - local failed=0
354 - local error=""
355 - if ! kernel_is ge 2 6; then
356 - eerror "You need a 2.6 linux kernel to compile against!"
357 - die "No 2.6 Kernel found"
358 - fi
359 -
360 - if ! linux_chkconfig_present MTRR; then
361 - ewarn "You don't have MTRR support enabled in the kernel."
362 - ewarn "Direct rendering will not work."
363 - fi
364 -
365 - if linux_chkconfig_builtin DRM; then
366 - ewarn "You have DRM support built in to the kernel"
367 - ewarn "Direct rendering will not work."
368 - fi
369 -
370 - if ! linux_chkconfig_present AGP && \
371 - ! linux_chkconfig_present PCIEPORTBUS; then
372 - ewarn "You don't have AGP and/or PCIe support enabled in the kernel"
373 - ewarn "Direct rendering will not work."
374 - fi
375 -
376 - if ! linux_chkconfig_present ACPI; then
377 - eerror "${P} requires the ACPI support in the kernel"
378 - eerror "Please enable it:"
379 - eerror " CONFIG_ACPI=y"
380 - eerror "in /usr/src/linux/.config or"
381 - eerror " Power management and ACPI options --->"
382 - eerror " [*] Power Management support"
383 - eerror "in the 'menuconfig'"
384 - error+=" CONFIG_ACPI disabled;"
385 - failed=1
386 - fi
387 -
388 - if ! linux_chkconfig_present PCI_MSI; then
389 - eerror "${P} requires MSI in the kernel."
390 - eerror "Please enable it:"
391 - eerror " CONFIG_PCI_MSI=y"
392 - eerror "in /usr/src/linux/.config or"
393 - eerror " Bus options (PCI etc.) --->"
394 - eerror " [*] Message Signaled Interrupts (MSI and MSI-X)"
395 - eerror "in the kernel config."
396 - error+=" CONFIG_PCI_MSI disabled;"
397 - failed=1
398 - fi
399 -
400 - if linux_chkconfig_present LOCKDEP; then
401 - eerror "You've enabled LOCKDEP -- lock tracking -- in the kernel."
402 - eerror "Unfortunately, this option exports the symbol lock_acquire as GPL-only."
403 - eerror "This prevents ${P} from compiling with an error like this:"
404 - eerror "FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'lock_acquire'"
405 - eerror "Please make sure the following options have been unset:"
406 - eerror " Kernel hacking --->"
407 - eerror " [ ] Lock debugging: detect incorrect freeing of live locks"
408 - eerror " [ ] Lock debugging: prove locking correctness"
409 - eerror " [ ] Lock usage statistics"
410 - eerror "in 'menuconfig'"
411 - error+=" LOCKDEP enabled;"
412 - failed=1
413 - fi
414 -
415 - use amd64 && if ! linux_chkconfig_present COMPAT; then
416 - eerror "${P} requires COMPAT."
417 - eerror "Please enable the 32 bit emulation:"
418 - eerror "Executable file formats / Emulations --->"
419 - eerror " [*] IA32 Emulation"
420 - eerror "in the kernel config."
421 - eerror "if this doesn't enable CONFIG_COMPAT add"
422 - eerror " CONFIG_COMPAT=y"
423 - eerror "in /usr/src/linux/.config"
424 - error+=" COMPAT disabled;"
425 - failed=1
426 - fi
427 -
428 - kernel_is ge 2 6 37 && kernel_is le 2 6 38 && if ! linux_chkconfig_present BKL ; then
429 - eerror "${P} requires BKL."
430 - eerror "Please enable the Big Kernel Lock:"
431 - eerror "Kernel hacking --->"
432 - eerror " [*] Big Kernel Lock"
433 - eerror "in the kernel config."
434 - eerror "or add"
435 - eerror " CONFIG_BKL=y"
436 - eerror "in /usr/src/linux/.config"
437 - error+=" BKL disabled;"
438 - failed=1
439 - fi
440 -
441 - [[ ${failed} -ne 0 ]] && die "${error}"
442 -}
443 -
444 -pkg_pretend() {
445 - # workaround until bug 365543 is solved
446 - if use modules; then
447 - linux-info_pkg_setup
448 - require_configured_kernel
449 - _check_kernel_config
450 - fi
451 -}
452 -
453 -pkg_setup() {
454 - if use modules; then
455 - MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)"
456 - BUILD_TARGETS="kmod_build"
457 - linux-mod_pkg_setup
458 - BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}"
459 - BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=\"-DMODULE -DATI -DFGL\""
460 - if grep -q arch_compat_alloc_user_space ${KV_DIR}/arch/x86/include/asm/compat.h ; then
461 - BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space"
462 - else
463 - BUILD_PARAMS="${BUILD_PARAMS} CFLAGS_MODULE+=-DCOMPAT_ALLOC_USER_SPACE=compat_alloc_user_space"
464 - fi
465 - fi
466 - # Define module dir.
467 - MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod"
468 - # get the xorg-server version and set BASE_DIR for that
469 - BASE_DIR="${S}/xpic"
470 -
471 - # amd64/x86
472 - if use amd64 ; then
473 - MY_BASE_DIR="${BASE_DIR}_64a"
474 - PKG_LIBDIR=lib64
475 - ARCH_DIR="${S}/arch/x86_64"
476 - else
477 - MY_BASE_DIR="${BASE_DIR}"
478 - PKG_LIBDIR=lib
479 - ARCH_DIR="${S}/arch/x86"
480 - fi
481 -
482 - elog
483 - elog "Please note that this driver supports only graphic cards based on"
484 - elog "r600 chipset and newer."
485 - elog "This represent the ATI Radeon HD series at this moment."
486 - elog
487 - elog "If your card is older then use ${CATEGORY}/xf86-video-ati"
488 - elog "For migration informations please reffer to:"
489 - elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml"
490 - einfo
491 -}
492 -
493 -src_unpack() {
494 - if [[ $(get_major_version) -gt 8 ]]; then
495 - # Switching to a standard way to extract the files since otherwise no signature file
496 - # would be created
497 - local src="${DISTDIR}/${A}"
498 - sh "${src}" --extract "${S}" 2&>1 /dev/null
499 - else
500 - unpack ${A}
501 - fi
502 -}
503 -
504 -src_prepare() {
505 - # All kernel options for prepare are ment to be in here
506 - if use modules; then
507 - # version patches
508 - # epatch "${FILESDIR}"/kernel/${PV}-*.patch
509 - if use debug; then
510 - sed -i '/^#define DRM_DEBUG_CODE/s/0/1/' \
511 - "${MODULE_DIR}/firegl_public.c" \
512 - || die "Failed to enable debug output."
513 - fi
514 - fi
515 -
516 - # These are the userspace utilities that we also have source for.
517 - # We rebuild these later.
518 - rm \
519 - "${ARCH_DIR}"/usr/X11R6/bin/fgl_glxgears \
520 - || die "bin rm failed"
521 -
522 - # in this version amdcccle isn't static, thus we depend on qt4
523 - use qt4 || rm "${ARCH_DIR}"/usr/X11R6/bin/amdcccle
524 -
525 - # ACPI fixups
526 - sed -i \
527 - -e "s:/var/lib/xdm/authdir/authfiles/:/var/run/xauth/:" \
528 - -e "s:/var/lib/gdm/:/var/gdm/:" \
529 - "${S}/${FOLDER_PREFIX}etc/ati/authatieventsd.sh" \
530 - || die "sed failed."
531 -
532 - # Since "who" is in coreutils, we're using that one instead of "finger".
533 - sed -i -e 's:finger:who:' \
534 - "${S}/${FOLDER_PREFIX}usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh" \
535 - || die "Replacing 'finger' with 'who' failed."
536 - # Adjust paths in the script from /usr/X11R6/bin/ to /opt/bin/ and
537 - # add function to detect default state.
538 - epatch "${FILESDIR}"/ati-powermode-opt-path-2.patch
539 -
540 - # fix needed for at least hardened-sources, see bug #392753
541 - use pax_kernel && epatch "${FILESDIR}"/ati-drivers-redefine-WARN.patch
542 -
543 -
544 - cd "${MODULE_DIR}"
545 -
546 - # bugged fglrx build system, this file should be copied by hand
547 - cp ${ARCH_DIR}/lib/modules/fglrx/build_mod/libfglrx_ip.a 2.6.x
548 -
549 - convert_to_m 2.6.x/Makefile || die "convert_to_m failed"
550 -
551 - # When built with ati's make.sh it defines a bunch of macros if
552 - # certain .config values are set, falling back to less reliable
553 - # detection methods if linux/autoconf.h is not available. We
554 - # simply use the linux/autoconf.h settings directly, bypassing the
555 - # detection script.
556 - sed -i -e 's/__SMP__/CONFIG_SMP/' *.c *h || die "SMP sed failed"
557 - sed -i -e 's/ifdef MODVERSIONS/ifdef CONFIG_MODVERSIONS/' *.c *.h \
558 - || die "MODVERSIONS sed failed"
559 - cd "${S}"
560 -
561 - mkdir extra || die "mkdir failed"
562 - cd extra
563 - unpack ./../${FOLDER_PREFIX}usr/src/ati/fglrx_sample_source.tgz
564 -}
565 -
566 -src_compile() {
567 - use modules && linux-mod_src_compile
568 -
569 - ebegin "Building fgl_glxgears"
570 - cd "${S}"/extra/fgl_glxgears
571 - # These extra libs/utils either have an Imakefile that does not
572 - # work very well without tweaking or a Makefile ignoring CFLAGS
573 - # and the like. We bypass those.
574 -src_test() { :; } # no tests present
575 - # The -DUSE_GLU is needed to compile using nvidia headers
576 - # according to a comment in ati-drivers-extra-8.33.6.ebuild.
577 - "$(tc-getCC)" -o fgl_glxgears ${CFLAGS} ${LDFLAGS} -DUSE_GLU \
578 - -I"${S}"/${FOLDER_PREFIX}usr/include fgl_glxgears.c \
579 - -lGL -lGLU -lX11 -lm || die "fgl_glxgears build failed"
580 - eend $?
581 -}
582 -
583 -src_test() { :; } # no tests presentsrc_test() { :; } # no tests present
584 -
585 -src_install() {
586 - use modules && linux-mod_src_install
587 -
588 - # We can do two things here, and neither of them is very nice.
589 -
590 - # For direct rendering libGL has to be able to load one or more
591 - # dri modules (files ending in _dri.so, like fglrx_dri.so).
592 - # Gentoo's mesa looks for these files in the location specified by
593 - # LIBGL_DRIVERS_PATH or LIBGL_DRIVERS_DIR, then in the hardcoded
594 - # location /usr/$(get_libdir)/dri. Ati's libGL does the same
595 - # thing, but the hardcoded location is /usr/X11R6/lib/modules/dri
596 - # on x86 and amd64 32bit, /usr/X11R6/lib64/modules/dri on amd64
597 - # 64bit. So we can either put the .so files in that (unusual,
598 - # compared to "normal" mesa libGL) location or set
599 - # LIBGL_DRIVERS_PATH. We currently do the latter. See also bug
600 - # 101539.
601 -
602 - # The problem with this approach is that LIBGL_DRIVERS_PATH
603 - # *overrides* the default hardcoded location, it does not extend
604 - # it. So if ati-drivers is merged but a non-ati libGL is selected
605 - # and its hardcoded path does not match our LIBGL_DRIVERS_PATH
606 - # (because it changed in a newer mesa or because it was compiled
607 - # for a different set of multilib abis than we are) stuff breaks.
608 -
609 - # We create one file per ABI to work with "native" multilib, see
610 - # below.
611 -
612 - echo "COLON_SEPARATED=LIBGL_DRIVERS_PATH" > "${T}/03ati-colon-sep"
613 - doenvd "${T}/03ati-colon-sep" || die
614 -
615 - # All libraries that we have a 32 bit and 64 bit version of on
616 - # amd64 are installed in src_install-libs. Everything else
617 - # (including libraries only available in native 64bit on amd64)
618 - # goes in here.
619 -
620 - # There used to be some code here that tried to detect running
621 - # under a "native multilib" portage ((precursor of)
622 - # http://dev.gentoo.org/~kanaka/auto-multilib/). I removed that, it
623 - # should just work (only doing some duplicate work). --marienz
624 - if has_multilib_profile; then
625 - local OABI=${ABI}
626 - for ABI in $(get_install_abis); do
627 - src_install-libs
628 - done
629 - ABI=${OABI}
630 - unset OABI
631 - else
632 - src_install-libs
633 - fi
634 -
635 - # This is sorted by the order the files occur in the source tree.
636 -
637 - # X modules.
638 - exeinto /usr/$(get_libdir)/xorg/modules/drivers
639 - doexe "${MY_BASE_DIR}"/usr/X11R6/${PKG_LIBDIR}/modules/drivers/fglrx_drv.so
640 - exeinto /usr/$(get_libdir)/xorg/modules/linux
641 - doexe "${MY_BASE_DIR}"/usr/X11R6/${PKG_LIBDIR}/modules/linux/libfglrxdrm.so
642 - exeinto /usr/$(get_libdir)/xorg/modules
643 - doexe "${MY_BASE_DIR}"/usr/X11R6/${PKG_LIBDIR}/modules/{glesx.so,amdxmm.so}
644 -
645 - # Arch-specific files.
646 - # (s)bin.
647 - into /opt
648 - dosbin "${ARCH_DIR}"/usr/sbin/atieventsd
649 - use qt4 && dosbin "${ARCH_DIR}"/usr/sbin/amdnotifyui
650 - use opencl && dobin "${ARCH_DIR}"/usr/bin/clinfo
651 - # We cleaned out the compilable stuff in src_unpack
652 - dobin "${ARCH_DIR}"/usr/X11R6/bin/*
653 -
654 - # Common files.
655 - # etc.
656 - insinto /etc/ati
657 - exeinto /etc/ati
658 - # Everything except for the authatieventsd.sh script.
659 - doins ${FOLDER_PREFIX}etc/ati/{logo*,control,atiogl.xml,signature,amdpcsdb.default}
660 - doexe ${FOLDER_PREFIX}etc/ati/authatieventsd.sh
661 -
662 - # include.
663 - insinto /usr
664 - doins -r ${FOLDER_PREFIX}usr/include
665 - insinto /usr/include/X11/extensions
666 -
667 - # Just the atigetsysteminfo.sh script.
668 - into /usr
669 - dosbin ${FOLDER_PREFIX}usr/sbin/*
670 -
671 - # data files for the control panel.
672 - if use qt4 ; then
673 - insinto /usr/share
674 - doins -r ${FOLDER_PREFIX}usr/share/ati
675 - insinto /usr/share/pixmaps
676 - doins ${FOLDER_PREFIX}usr/share/icons/ccc_large.xpm
677 - make_desktop_entry amdcccle 'ATI Catalyst Control Center' \
678 - ccc_large System
679 - fi
680 -
681 - # doc.
682 - dohtml -r ${FOLDER_PREFIX}usr/share/doc/fglrx
683 -
684 - doman ${FOLDER_PREFIX}usr/share/man/man8/atieventsd.8
685 -
686 - pushd ${FOLDER_PREFIX}usr/share/doc/fglrx/examples/etc/acpi > /dev/null
687 -
688 - exeinto /etc/acpi
689 - doexe ati-powermode.sh
690 - insinto /etc/acpi/events
691 - doins events/*
692 -
693 - popd > /dev/null
694 -
695 - # Done with the "source" tree. Install tools we rebuilt:
696 - dobin extra/fgl_glxgears/fgl_glxgears
697 - newdoc extra/fgl_glxgears/README README.fgl_glxgears
698 -
699 - # Gentoo-specific stuff:
700 - newinitd "${FILESDIR}"/atieventsd.init atieventsd
701 - echo 'ATIEVENTSDOPTS=""' > "${T}"/atieventsd.conf
702 - newconfd "${T}"/atieventsd.conf atieventsd
703 -
704 - # PowerXpress stuff
705 - exeinto /usr/$(get_libdir)/fglrx
706 - doexe "${FILESDIR}"/switchlibGL || die "doexe switchlibGL failed"
707 - cp "${FILESDIR}"/switchlibGL "${T}"/switchlibglx
708 - doexe "${T}"/switchlibglx || die "doexe switchlibglx failed"
709 -}
710 -
711 -src_install-libs() {
712 - if [[ "${ABI}" == "amd64" ]]; then
713 - local EX_BASE_DIR="${BASE_DIR}_64a"
714 - local pkglibdir=lib64
715 - local MY_ARCH_DIR="${S}/arch/x86_64"
716 - local oclsuffix=64
717 - else
718 - local EX_BASE_DIR="${BASE_DIR}"
719 - local pkglibdir=lib
720 - local MY_ARCH_DIR="${S}/arch/x86"
721 - local oclsuffix=32
722 - fi
723 - einfo "ati tree '${pkglibdir}' -> '$(get_libdir)' on system"
724 -
725 - local ATI_ROOT=/usr/$(get_libdir)/opengl/ati
726 - # To make sure we do not miss a spot when these change.
727 - local libmajor=1 libminor=2
728 - local libver=${libmajor}.${libminor}
729 -
730 - # The GLX libraries
731 - # (yes, this really is "lib" even on amd64/multilib --marienz)
732 - exeinto ${ATI_ROOT}/lib
733 - newexe "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir}/fglrx/fglrx-libGL.so.${libver} \
734 - libGL.so.${libver}
735 - dosym libGL.so.${libver} ${ATI_ROOT}/lib/libGL.so.${libmajor}
736 - dosym libGL.so.${libver} ${ATI_ROOT}/lib/libGL.so
737 -
738 - exeinto ${ATI_ROOT}/extensions
739 - doexe "${EX_BASE_DIR}"/usr/X11R6/${pkglibdir}/modules/extensions/fglrx/fglrx-libglx.so
740 - mv "${D}"/${ATI_ROOT}/extensions/{fglrx-,}libglx.so
741 -
742 - # other libs
743 - exeinto /usr/$(get_libdir)
744 - # Everything except for the libGL.so installed some row above
745 - doexe $(find "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir} \
746 - -maxdepth 1 -type f -name '*.so*' -not -name '*libGL.so*')
747 - insinto /usr/$(get_libdir)
748 - doins $(find "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir} \
749 - -maxdepth 1 -type f -not -name '*.so*')
750 -
751 - # DRI modules, installed into the path used by recent versions of mesa.
752 - exeinto /usr/$(get_libdir)/dri
753 - doexe "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir}/modules/dri/fglrx_dri.so
754 -
755 - # AMD Cal and OpenCL libraries
756 - if use opencl ; then
757 - exeinto /usr/$(get_libdir)/OpenCL/vendors/amd
758 - doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libamdocl*.so*
759 - doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libOpenCL*.so*
760 - dosym libOpenCL.so.${libmajor} /usr/$(get_libdir)/OpenCL/vendors/amd/libOpenCL.so
761 - fi
762 - exeinto /usr/$(get_libdir)
763 - doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libati*.so*
764 -
765 - # OpenCL vendor files
766 - if use opencl ; then
767 - insinto /etc/OpenCL/vendors/
768 - cat > "${T}"/amdocl${oclsuffix}.icd <<-EOF
769 - /usr/$(get_libdir)/OpenCL/vendors/amd/libamdocl${oclsuffix}.so
770 - EOF
771 - doins "${T}"/amdocl${oclsuffix}.icd
772 - fi
773 -
774 - local envname="${T}"/04ati-dri-path
775 - if [[ -n ${ABI} ]]; then
776 - envname="${envname}-${ABI}"
777 - fi
778 - echo "LIBGL_DRIVERS_PATH=/usr/$(get_libdir)/dri" > "${envname}"
779 - doenvd "${envname}"
780 -
781 - # Silence the QA notice by creating missing soname symlinks
782 - for so in $(find "${D}"/usr/$(get_libdir) -maxdepth 1 -name *.so.[0-9].[0-9])
783 - do
784 - local soname=${so##*/}
785 - ## let's keep also this alternative way ;)
786 - #dosym ${soname} /usr/$(get_libdir)/${soname%.[0-9]}
787 - dosym ${soname} /usr/$(get_libdir)/$(scanelf -qF "#f%S" ${so})
788 - done
789 -}
790 -
791 -pkg_postinst() {
792 - elog "To switch to ATI OpenGL, run \"eselect opengl set ati\""
793 - elog "To change your xorg.conf you can use the bundled \"aticonfig\""
794 - elog
795 - elog "If you experience unexplained segmentation faults and kernel crashes"
796 - elog "with this driver and multi-threaded applications such as wine,"
797 - elog "set UseFastTLS in xorg.conf to either 0 or 1, but not 2."
798 - elog
799 - elog "Fully rebooting the system after an ${PN} update is recommended"
800 - elog "Stopping Xorg, reloading fglrx kernel module and restart Xorg"
801 - elog "might not work"
802 - elog
803 - elog "Some cards need acpid running to handle events"
804 - elog "Please add it to boot runlevel with rc-update add acpid boot"
805 - elog
806 - ewarn "This release of ati-drivers has a crashing bug when using Xv video."
807 - ewarn "To avoid this problem, configure your video playback software for"
808 - ewarn "OpenGL output. See https://bugs.gentoo.org/show_bug.cgi?id=391193"
809 -
810 - use modules && linux-mod_pkg_postinst
811 - "${ROOT}"/usr/bin/eselect opengl set --use-old ati
812 -}
813 -
814 -pkg_preinst() {
815 - use modules && linux-mod_pkg_preinst
816 -}
817 -
818 -pkg_prerm() {
819 - "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
820 -}
821 -
822 -pkg_postrm() {
823 - use modules && linux-mod_pkg_postrm
824 - "${ROOT}"/usr/bin/eselect opengl set --use-old xorg-x11
825 -}
826
827 diff --git a/x11-drivers/ati-drivers/files/ati-powermode-opt-path-2.patch b/x11-drivers/ati-drivers/files/ati-powermode-opt-path-2.patch
828 deleted file mode 100644
829 index f5a35a3..0000000
830 --- a/x11-drivers/ati-drivers/files/ati-powermode-opt-path-2.patch
831 +++ /dev/null
832 @@ -1,42 +0,0 @@
833 -diff -ur common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh
834 ---- common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-07-28 04:22:36.000000000 +0100
835 -+++ common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-08-04 12:19:42.000000000 +0100
836 -@@ -4,6 +4,8 @@
837 - # Control script for ACPI lid state and AC adapter state
838 - #
839 -
840 -+aticonfig='/opt/bin/aticonfig'
841 -+
842 - getXuser() {
843 - user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
844 - if [ x"$user" = x"" ]; then
845 -@@ -47,7 +49,7 @@
846 - done
847 -
848 - #If PPLIB is enabled
849 --su $user -c '/usr/bin/aticonfig --pplib-cmd="get version"' | grep PPLIB
850 -+su $user -c '$aticonfig --pplib-cmd="get version"' | grep PPLIB
851 - if [ $? = 0 ]; then
852 - echo "Has PPLIB"
853 - has_pplib=1
854 -@@ -61,15 +63,15 @@
855 - if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then
856 - echo "Low power"
857 - if [ ${has_pplib} -eq 1 ]; then
858 -- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc dc"'
859 -+ su $user -c '$aticonfig --pplib-cmd="notify psrc dc"'
860 - else
861 -- su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now"
862 -+ su $user -c "$aticonfig --set-powerstate=1"
863 - fi
864 - else
865 - echo "high power"
866 - if [ ${has_pplib} -eq 1 ]; then
867 -- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"'
868 -+ su $user -c '$aticonfig --pplib-cmd="notify psrc ac"'
869 - else
870 -- su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now"
871 -+ su $user -c "$aticonfig --set-powerstate=$($aticonfig --lsp | grep 'default state' | cut -c 3)"
872 - fi
873 - fi
874 -
875
876 diff --git a/x11-drivers/ati-drivers/files/atieventsd.init b/x11-drivers/ati-drivers/files/atieventsd.init
877 deleted file mode 100644
878 index 73139ce..0000000
879 --- a/x11-drivers/ati-drivers/files/atieventsd.init
880 +++ /dev/null
881 @@ -1,20 +0,0 @@
882 -#!/sbin/runscript
883 -# Copyright 1999-2006 Gentoo Foundation
884 -# Distributed under the terms of the GNU General Public License v2
885 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/files/atieventsd.init,v 1.3 2007/05/18 23:58:01 marienz Exp $
886 -
887 -depend() {
888 - need acpid
889 -}
890 -
891 -start() {
892 - ebegin "Starting ${SVCNAME}"
893 - start-stop-daemon --start --exec /opt/sbin/atieventsd -- ${ATIEVENTSDOPTS}
894 - eend $?
895 -}
896 -
897 -stop() {
898 - ebegin "Stopping ${SVCNAME}"
899 - start-stop-daemon --stop --quiet --exec /opt/sbin/atieventsd
900 - eend $?
901 -}
902 \ No newline at end of file
903
904 diff --git a/x11-drivers/ati-drivers/files/switchlibGL b/x11-drivers/ati-drivers/files/switchlibGL
905 deleted file mode 100644
906 index a6aa4fc..0000000
907 --- a/x11-drivers/ati-drivers/files/switchlibGL
908 +++ /dev/null
909 @@ -1,61 +0,0 @@
910 -#!/bin/bash
911 -# switchlibGL
912 -#
913 -# Copyright (c) 2011 Advanced Micro Devices, Inc.
914 -#
915 -# Purpose:
916 -# For switch between AMD and Intel graphic driver library.
917 -#
918 -# Usage:
919 -# switchlibGL amd|intel|query
920 -# amd: switches to the AMD version of libGL.
921 -# intel: switches to the open-source version of libGL .
922 -# query: checks, which version is currently active and prints either "amd"
923 -# or "intel" or "unknown" on the standard output.
924 -# must be root to execute this script
925 -
926 -ARCH=`uname -m`
927 -E_ERR=1
928 -
929 -# Check if root
930 -if [ "`whoami`" != "root" ]; then
931 - echo "Must be root to run this script." 1>&2
932 - exit $E_ERR
933 -fi
934 -
935 -# One parameter
936 -if [ $# -ne 1 ]; then
937 - echo "Usage: `basename $0` amd|intel|query " 1>&2
938 - echo "Please choose one parameter " 1>&2
939 - exit $E_ERR
940 -fi
941 -
942 -current=$(eselect opengl show)
943 -# Switch to right mode
944 -case "$1" in
945 - "amd" )
946 - if [ $current != ati ] ; then
947 - eselect opengl set ati || return 1
948 - fi
949 - ;;
950 - "intel" )
951 - if [ $current != xorg-x11 ] ; then
952 - eselect opengl set xorg-x11 || return 1
953 - fi
954 - ;;
955 - "query" )
956 - case "$current" in
957 - "ati" )
958 - echo "amd"
959 - ;;
960 - "xorg-x11" )
961 - echo "intel"
962 - ;;
963 - esac
964 - ;;
965 - * ) echo "Usage: `basename $0` amd|intel|query" 1>&2; exit $E_ERR;;
966 - # other than amd|intel|query parameter report an error
967 -esac
968 -
969 -# A zero return value from the script upon exit indicates success.
970 -exit 0
971
972 diff --git a/x11-drivers/ati-drivers/metadata.xml b/x11-drivers/ati-drivers/metadata.xml
973 deleted file mode 100644
974 index 1f3ffe4..0000000
975 --- a/x11-drivers/ati-drivers/metadata.xml
976 +++ /dev/null
977 @@ -1,26 +0,0 @@
978 -<?xml version="1.0" encoding="UTF-8"?>
979 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
980 -<pkgmetadata>
981 - <herd>x11</herd>
982 - <maintainer>
983 - <email>lu_zero@g.o</email>
984 - </maintainer>
985 - <maintainer>
986 - <email>enrico.tagliavini@×××××.com</email>
987 - <name>Enrico Tagliavini</name>
988 - <description>Proxied co-maintainer</description>
989 - </maintainer>
990 - <use>
991 - <flag name='qt4'>
992 - Install qt4 dependent optional tools (e.g Catalyst Control Panel)
993 - </flag>
994 - </use>
995 - <use>
996 - <flag name='modules'>Build the kernel modules</flag>
997 - </use>
998 - <use>
999 - <flag name='opencl'>
1000 - Install OpenCL runtime libraries
1001 - </flag>
1002 - </use>
1003 -</pkgmetadata>
1004
1005 diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest
1006 deleted file mode 100644
1007 index 5ca0ff9..0000000
1008 --- a/x11-drivers/nvidia-drivers/Manifest
1009 +++ /dev/null
1010 @@ -1,6 +0,0 @@
1011 -AUX 256.35-unified-arch.patch 1380 RMD160 2612cad105f442d4232b99e3054124e8037860bb SHA1 d82433c0b3520c87e05f1013a59b243ec65ebe97 SHA256 5e84bb51e0f9b3ceba270d53ad2a739dc534861df9acd6ab6852670f5a1357d7
1012 -AUX nvidia-169.07 639 RMD160 8baddb6fd1bf7f0e2688870a78e8ace051d62e3f SHA1 b30487ba2a24a6b1359d1fd831eeb1705060953c SHA256 a8c4860f008d53776fda7a17b59524f271236559af688e9a2c9845cbbcba1577
1013 -DIST NVIDIA-FreeBSD-x86-290.10.tar.gz 32042469 RMD160 712cd816ab24319d03ae475af0ac2a56518ef58b SHA1 4fe79060b9e475e4a74b7b17e95410bad1f33427 SHA256 f5accbdac0b231a8073f76c1d1d8ace7cb98ebe167888c31183a2752a669ee92
1014 -DIST NVIDIA-Linux-x86-290.10.run 34691272 RMD160 ddcee14e7b474a646a707fd966cc1d223d3177eb SHA1 dfc095db2bdca672e6cfe7878a75c5d25d8c54a9 SHA256 99be8f53aa1f777445e5a4cac27acd7d85990db712b5c29caac865145fc5adaa
1015 -DIST NVIDIA-Linux-x86_64-290.10.run 58334192 RMD160 a850a83643d507ff84be76691188a5ecd870c4d8 SHA1 f3e8b43248d9d167b1c3f67a8cba9c1f2c53e583 SHA256 34a2ab07f4ae7afdeb2c8415f3f37c1099e6690eb25f3dbef92eca771f7ce4cd
1016 -EBUILD nvidia-drivers-290.10-r1.ebuild 17682 RMD160 18a761701d554f04169cf1d62ae8c657acafb9c5 SHA1 5dc040795153331012411a0099f2bf5ce2edca41 SHA256 d0d3cc72fbce89860d572a07ac37b5954c2df9e50a3586341a1f4494ed9e896a
1017
1018 diff --git a/x11-drivers/nvidia-drivers/files/256.35-unified-arch.patch b/x11-drivers/nvidia-drivers/files/256.35-unified-arch.patch
1019 deleted file mode 100644
1020 index 401ce95..0000000
1021 --- a/x11-drivers/nvidia-drivers/files/256.35-unified-arch.patch
1022 +++ /dev/null
1023 @@ -1,31 +0,0 @@
1024 -Add support for the 'x86' unified kernel arch in conftest.sh
1025 -
1026 ---- NVIDIA-Linux-x86-256.25/kernel/conftest.sh
1027 -+++ NVIDIA-Linux-x86-256.25/kernel/conftest.sh
1028 -@@ -101,7 +101,7 @@ build_cflags() {
1029 -
1030 - if [ "$OUTPUT" != "$SOURCES" ]; then
1031 - MACH_CFLAGS="-I$HEADERS/asm-$ARCH/mach-default"
1032 -- if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
1033 -+ if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
1034 - MACH_CFLAGS="$MACH_CFLAGS -I$HEADERS/asm-x86/mach-default"
1035 - MACH_CFLAGS="$MACH_CFLAGS -I$SOURCES/arch/x86/include/asm/mach-default"
1036 - fi
1037 -@@ -110,7 +110,7 @@ build_cflags() {
1038 - fi
1039 - else
1040 - MACH_CFLAGS="-I$HEADERS/asm/mach-default"
1041 -- if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
1042 -+ if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
1043 - MACH_CFLAGS="$MACH_CFLAGS -I$HEADERS/asm-x86/mach-default"
1044 - MACH_CFLAGS="$MACH_CFLAGS -I$SOURCES/arch/x86/include/asm/mach-default"
1045 - fi
1046 -@@ -121,7 +121,7 @@ build_cflags() {
1047 -
1048 - CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
1049 -
1050 -- if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
1051 -+ if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" -o "$ARCH" = "x86" ]; then
1052 - CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include"
1053 - fi
1054 - if [ -n "$BUILD_PARAMS" ]; then
1055
1056 diff --git a/x11-drivers/nvidia-drivers/files/nvidia-169.07 b/x11-drivers/nvidia-drivers/files/nvidia-169.07
1057 deleted file mode 100644
1058 index a96b0cd..0000000
1059 --- a/x11-drivers/nvidia-drivers/files/nvidia-169.07
1060 +++ /dev/null
1061 @@ -1,14 +0,0 @@
1062 -# Nvidia drivers support
1063 -alias char-major-195 nvidia
1064 -alias /dev/nvidiactl char-major-195
1065 -
1066 -# To tweak the driver the following options can be used, note that
1067 -# you should be careful, as it could cause instability!! For more
1068 -# options see /usr/share/doc/PACKAGE/README
1069 -#
1070 -# !!! SECURITY WARNING !!!
1071 -# DO NOT MODIFY OR REMOVE THE DEVICE FILE RELATED OPTIONS UNLESS YOU KNOW
1072 -# WHAT YOU ARE DOING.
1073 -# ONLY ADD TRUSTED USERS TO THE VIDEO GROUP, THESE USERS MAY BE ABLE TO CRASH,
1074 -# COMPROMISE, OR IRREPARABLY DAMAGE THE MACHINE.
1075 -options nvidia NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=VIDEOGID NVreg_ModifyDeviceFiles=1
1076
1077 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-290.10-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-290.10-r1.ebuild
1078 deleted file mode 100644
1079 index 76fafcf..0000000
1080 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-290.10-r1.ebuild
1081 +++ /dev/null
1082 @@ -1,561 +0,0 @@
1083 -# Copyright 1999-2011 Gentoo Foundation
1084 -# Distributed under the terms of the GNU General Public License v2
1085 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-290.10.ebuild,v 1.2 2011/12/16 08:47:09 ago Exp $
1086 -
1087 -EAPI="2"
1088 -
1089 -inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver
1090 -
1091 -X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
1092 -AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}"
1093 -X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}"
1094 -
1095 -DESCRIPTION="NVIDIA X11 driver and GLX libraries"
1096 -HOMEPAGE="http://www.nvidia.com/"
1097 -SRC_URI="x86? ( http://us.download.nvidia.com/XFree86/Linux-x86/${PV}/${X86_NV_PACKAGE}.run )
1098 - amd64? ( http://us.download.nvidia.com/XFree86/Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )
1099 - x86-fbsd? ( http://us.download.nvidia.com/XFree86/FreeBSD-x86/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )"
1100 -
1101 -LICENSE="NVIDIA"
1102 -SLOT="0"
1103 -KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
1104 -IUSE="acpi custom-cflags gtk multilib kernel_linux"
1105 -RESTRICT="strip"
1106 -EMULTILIB_PKG="true"
1107 -
1108 -COMMON="<x11-base/xorg-server-1.11.99
1109 - kernel_linux? ( >=sys-libs/glibc-2.6.1 )
1110 - multilib? ( app-emulation/emul-linux-x86-xlibs )
1111 - >=app-admin/eselect-opengl-1.0.9
1112 - app-admin/eselect-opencl
1113 - !<media-video/nvidia-settings-256.52"
1114 -DEPEND="${COMMON}
1115 - kernel_linux? ( virtual/linux-sources )"
1116 -RDEPEND="${COMMON}
1117 - x11-libs/libXvMC
1118 - acpi? ( sys-power/acpid )"
1119 -PDEPEND=">=x11-libs/libvdpau-0.3-r1
1120 - gtk? ( media-video/nvidia-settings )"
1121 -
1122 -QA_TEXTRELS_x86="
1123 - usr/lib/libOpenCL.so.1.0.0
1124 - usr/lib/libXvMCNVIDIA.so.${PV}
1125 - usr/lib/libcuda.so.${PV}
1126 - usr/lib/libnvcuvid.so.${PV}
1127 - usr/lib/libnvidia-cfg.so.${PV}
1128 - usr/lib/libnvidia-compiler.so.${PV}
1129 - usr/lib/libnvidia-glcore.so.${PV}
1130 - usr/lib/libnvidia-ml.so.${PV}
1131 - usr/lib/libvdpau_nvidia.so.${PV}
1132 - usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
1133 - usr/lib/opengl/nvidia/lib/libGL.so.${PV}
1134 - usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1135 - usr/lib/xorg/modules/drivers/nvidia_drv.so"
1136 -
1137 -QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko
1138 - usr/lib/opengl/nvidia/lib/libGL.so.1
1139 - usr/lib/libnvidia-glcore.so.1
1140 - usr/lib/libnvidia-cfg.so.1
1141 - usr/lib/libnvidia-ml.so.1
1142 - usr/lib/opengl/nvidia/extensions/libglx.so.1
1143 - usr/lib/xorg/modules/drivers/nvidia_drv.so"
1144 -
1145 -QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1146 - usr/lib32/libnvidia-glcore.so.${PV}
1147 - usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
1148 - usr/lib32/OpenCL/vendors/nvidia/libcuda.so.${PV}
1149 - usr/lib32/libvdpau_nvidia.so.${PV}
1150 - usr/lib32/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1151 - usr/lib32/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}"
1152 -
1153 -QA_EXECSTACK_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV}
1154 - usr/lib/libnvidia-glcore.so.${PV}
1155 - usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
1156 - usr/lib64/libXvMCNVIDIA.so.${PV}
1157 - usr/lib/libXvMCNVIDIA.a:NVXVMC.o
1158 - usr/lib/libnvidia-compiler.so.${PV}
1159 - usr/lib/libvdpau_nvidia.so.${PV}
1160 - usr/lib/libcuda.so.${PV}
1161 - usr/lib/libOpenCL.so.1.0.0"
1162 -
1163 -QA_EXECSTACK_amd64="usr/lib32/libnvidia-glcore.so.${PV}
1164 - usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
1165 - usr/lib32/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1166 - usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1167 - usr/lib32/libvdpau_nvidia.so.${PV}
1168 - usr/lib32/OpenCL/vendors/nvidia/libcuda.so.${PV}
1169 - usr/lib32/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1170 - usr/lib64/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1171 - usr/lib64/libXvMCNVIDIA.a:NVXVMC.o
1172 - usr/lib64/libnvidia-cfg.so.${PV}
1173 - usr/lib64/libnvidia-ml.so.${PV}
1174 - usr/lib64/libvdpau_nvidia.so.${PV}
1175 - usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1176 - usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
1177 - usr/lib64/libnvidia-glcore.so.${PV}
1178 - usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
1179 - usr/lib64/libXvMCNVIDIA.so.${PV}
1180 - usr/lib64/OpenCL/vendors/nvidia/libcuda.so.${PV}
1181 - usr/lib64/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1182 - usr/lib64/xorg/modules/drivers/nvidia_drv.so
1183 - usr/bin/nvidia-smi
1184 - usr/bin/nvidia-xconfig
1185 - usr/bin/nvidia-settings"
1186 -
1187 -QA_WX_LOAD_x86="usr/lib/libnvidia-glcore.so.${PV}
1188 - usr/lib/opengl/nvidia/lib/libGL.so.${PV}
1189 - usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
1190 - usr/lib/libXvMCNVIDIA.a
1191 - usr/lib64/libXvMCNVIDIA.so.${PV}"
1192 -
1193 -QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
1194 - usr/lib32/libnvidia-glcore.so.${PV}
1195 - usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
1196 - usr/lib64/libnvidia-glcore.so.${PV}
1197 - usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
1198 - usr/lib64/libXvMCNVIDIA.so.${PV}"
1199 -
1200 -QA_SONAME_x86="usr/lib/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}"
1201 -
1202 -QA_SONAME_amd64="usr/lib64/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1203 - usr/lib32/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}"
1204 -
1205 -QA_DT_HASH_amd64="usr/lib32/OpenCL/vendors/nvidia/libcuda.so.${PV}
1206 - usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
1207 - usr/lib32/libnvidia-glcore.so.${PV}
1208 - usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1209 - usr/lib32/libvdpau_nvidia.so.${PV}
1210 - usr/lib32/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1211 - usr/lib32/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1212 - usr/lib64/libXvMCNVIDIA.so.${PV}
1213 - usr/lib64/OpenCL/vendors/nvidia/libcuda.so.${PV}
1214 - usr/lib64/libnvidia-cfg.so.${PV}
1215 - usr/lib64/libnvidia-glcore.so.${PV}
1216 - usr/lib64/libnvidia-ml.so.${PV}
1217 - usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
1218 - usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1219 - usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
1220 - usr/lib64/xorg/modules/drivers/nvidia_drv.so
1221 - usr/lib64/libvdpau_nvidia.so.${PV}
1222 - usr/lib64/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1223 - usr/lib64/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1224 - usr/lib64/libnvcuvid.so.${PV}
1225 - usr/bin/nvidia-smi
1226 - usr/bin/nvidia-xconfig
1227 - usr/bin/nvidia-settings"
1228 -
1229 -QA_DT_HASH_x86="usr/lib/OpenCL/vendors/nvidia/libcuda.so.${PV}
1230 - usr/lib/libnvidia-cfg.so.${PV}
1231 - usr/lib/libnvidia-glcore.so.${PV}
1232 - usr/lib/libnvidia-ml.so.${PV}
1233 - usr/lib/opengl/nvidia/lib/libGL.so.${PV}
1234 - usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
1235 - usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
1236 - usr/lib/xorg/modules/drivers/nvidia_drv.so
1237 - usr/lib/libXvMCNVIDIA.so.${PV}
1238 - usr/lib/libvdpau_nvidia.so.${PV}
1239 - usr/lib/OpenCL/vendors/nvidia/libOpenCL.so.1.0.0
1240 - usr/lib/OpenCL/vendors/nvidia/libnvidia-compiler.so.${PV}
1241 - usr/lib/libnvcuvid.so.${PV}
1242 - usr/bin/nvidia-smi
1243 - usr/bin/nvidia-xconfig
1244 - usr/bin/nvidia-settings"
1245 -
1246 -S=${WORKDIR}/
1247 -
1248 -mtrr_check() {
1249 - ebegin "Checking for MTRR support"
1250 - linux_chkconfig_present MTRR
1251 - eend $?
1252 -
1253 - if [[ $? -ne 0 ]] ; then
1254 - eerror "Please enable MTRR support in your kernel config, found at:"
1255 - eerror
1256 - eerror " Processor type and features"
1257 - eerror " [*] MTRR (Memory Type Range Register) support"
1258 - eerror
1259 - eerror "and recompile your kernel ..."
1260 - die "MTRR support not detected!"
1261 - fi
1262 -}
1263 -
1264 -lockdep_check() {
1265 - if linux_chkconfig_present LOCKDEP; then
1266 - eerror "You've enabled LOCKDEP -- lock tracking -- in the kernel."
1267 - eerror "Unfortunately, this option exports the symbol "
1268 - eerror "'lockdep_init_map' as GPL-only which will prevent "
1269 - eerror "${P} from compiling."
1270 - eerror "Please make sure the following options have been unset:"
1271 - eerror
1272 - eerror " Kernel hacking --->"
1273 - eerror " [ ] Lock debugging: detect incorrect freeing of live locks"
1274 - eerror " [ ] Lock debugging: prove locking correctness"
1275 - eerror " [ ] Lock usage statistics"
1276 - eerror "in 'menuconfig'"
1277 - die "LOCKDEP enabled"
1278 - fi
1279 -}
1280 -
1281 -pkg_setup() {
1282 - # try to turn off distcc and ccache for people that have a problem with it
1283 - export DISTCC_DISABLE=1
1284 - export CCACHE_DISABLE=1
1285 -
1286 - if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then
1287 - eerror "This ebuild doesn't currently support changing your default abi."
1288 - die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}"
1289 - fi
1290 -
1291 - if use kernel_linux; then
1292 - linux-mod_pkg_setup
1293 - MODULE_NAMES="nvidia(video:${S}/kernel)"
1294 - BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \
1295 - SYSOUT=${KV_OUT_DIR} CC=$(tc-getBUILD_CC)"
1296 - mtrr_check
1297 - lockdep_check
1298 - fi
1299 -
1300 - # On BSD userland it wants real make command
1301 - use userland_BSD && MAKE="$(get_bmake)"
1302 -
1303 - export _POSIX2_VERSION="199209"
1304 -
1305 - # Since Nvidia ships 3 different series of drivers, we need to give the user
1306 - # some kind of guidance as to what version they should install. This tries
1307 - # to point the user in the right direction but can't be perfect. check
1308 - # nvidia-driver.eclass
1309 - nvidia-driver-check-warning
1310 -
1311 - # set variables to where files are in the package structure
1312 - if use kernel_FreeBSD; then
1313 - NV_DOC="${S}/doc"
1314 - NV_EXEC="${S}/obj"
1315 - NV_LIB="${S}/obj"
1316 - NV_SRC="${S}/src"
1317 - NV_MAN="${S}/x11/man"
1318 - NV_X11="${S}/obj"
1319 - NV_X11_DRV="${NV_X11}"
1320 - NV_X11_EXT="${NV_X11}"
1321 - NV_SOVER=1
1322 - elif use kernel_linux; then
1323 - NV_DOC="${S}"
1324 - NV_EXEC="${S}"
1325 - NV_LIB="${S}"
1326 - NV_SRC="${S}/kernel"
1327 - NV_MAN="${S}"
1328 - NV_X11="${S}"
1329 - NV_X11_DRV="${NV_X11}"
1330 - NV_X11_EXT="${NV_X11}"
1331 - NV_SOVER=${PV}
1332 - else
1333 - die "Could not determine proper NVIDIA package"
1334 - fi
1335 -}
1336 -
1337 -src_unpack() {
1338 - if use kernel_linux && kernel_is lt 2 6 7; then
1339 - echo
1340 - ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
1341 - ewarn "This is not officially supported for ${P}. It is likely you"
1342 - ewarn "will not be able to compile or use the kernel module."
1343 - ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7"
1344 - echo
1345 - ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored."
1346 - fi
1347 -
1348 - if ! use x86-fbsd; then
1349 - cd "${S}"
1350 - unpack_makeself
1351 - else
1352 - unpack ${A}
1353 - fi
1354 -}
1355 -
1356 -src_prepare() {
1357 - # Please add a brief description for every added patch
1358 - use x86-fbsd && cd doc
1359 -
1360 - if use kernel_linux; then
1361 - # Quiet down warnings the user does not need to see
1362 - sed -i \
1363 - -e 's:-Wsign-compare::g' \
1364 - "${NV_SRC}"/Makefile.kbuild
1365 -
1366 - epatch "${FILESDIR}"/256.35-unified-arch.patch
1367 -
1368 - # If you set this then it's your own fault when stuff breaks :)
1369 - use custom-cflags && sed -i "s:-O:${CFLAGS}:" "${NV_SRC}"/Makefile.*
1370 -
1371 - # If greater than 2.6.5 use M= instead of SUBDIR=
1372 - convert_to_m "${NV_SRC}"/Makefile.kbuild
1373 - fi
1374 - cat <<- EOF > "${S}"/nvidia.icd
1375 - /usr/$(get_libdir)/OpenCL/vendors/nvidia/libcuda.so
1376 - EOF
1377 -}
1378 -
1379 -src_compile() {
1380 - # This is already the default on Linux, as there's no toplevel Makefile, but
1381 - # on FreeBSD there's one and triggers the kernel module build, as we install
1382 - # it by itself, pass this.
1383 -
1384 - cd "${NV_SRC}"
1385 - if use x86-fbsd; then
1386 - MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \
1387 - LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die
1388 - elif use kernel_linux; then
1389 - linux-mod_src_compile
1390 - fi
1391 -}
1392 -
1393 -src_install() {
1394 - if use kernel_linux; then
1395 - linux-mod_src_install
1396 -
1397 - VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)"
1398 - if [ -z "$VIDEOGROUP" ]; then
1399 - eerror "Failed to determine the video group gid."
1400 - die "Failed to determine the video group gid."
1401 - fi
1402 -
1403 - # Add the aliases
1404 - [ -f "${FILESDIR}/nvidia-169.07" ] || die "nvidia missing in FILESDIR"
1405 - sed -e 's:PACKAGE:'${PF}':g' \
1406 - -e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia-169.07 > \
1407 - "${WORKDIR}"/nvidia
1408 - insinto /etc/modprobe.d
1409 - newins "${WORKDIR}"/nvidia nvidia.conf || die
1410 - elif use x86-fbsd; then
1411 - insinto /boot/modules
1412 - doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die
1413 -
1414 - exeinto /boot/modules
1415 - doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die
1416 - fi
1417 -
1418 - # NVIDIA kernel <-> userspace driver config lib
1419 - dolib.so ${NV_LIB}/libnvidia-cfg.so.${NV_SOVER} || \
1420 - die "failed to install libnvidia-cfg"
1421 - dosym libnvidia-cfg.so.${NV_SOVER} \
1422 - /usr/$(get_libdir)/libnvidia-cfg.so.1 || \
1423 - die "failed to create libnvidia-cfg.so symlink"
1424 - dosym libnvidia-cfg.so.1 \
1425 - /usr/$(get_libdir)/libnvidia-cfg.so || \
1426 - die "failed to create libnvidia-cfg.so symlink"
1427 -
1428 - # NVIDIA monitoring library
1429 - dolib.so ${NV_LIB}/libnvidia-ml.so.${NV_SOVER} || \
1430 - die "failed to install libnvidia-ml"
1431 - dosym libnvidia-ml.so.${NV_SOVER} \
1432 - /usr/$(get_libdir)/libnvidia-ml.so.1 || \
1433 - die "failed to create libnvidia-ml.so symlink"
1434 - dosym libnvidia-ml.so.1 \
1435 - /usr/$(get_libdir)/libnvidia-ml.so || \
1436 - die "failed to create libnvidia-ml.so symlink"
1437 -
1438 - # NVIDIA video decode <-> CUDA
1439 - dolib.so ${NV_LIB}/libnvcuvid.so.${NV_SOVER} || \
1440 - die "failed to install libnvcuvid.so"
1441 - dosym libnvcuvid.so.${NV_SOVER} \
1442 - /usr/$(get_libdir)/libnvcuvid.so.1 || \
1443 - die "failed to create libnvcuvid.so symlink"
1444 - dosym libnvcuvid.so.1 \
1445 - /usr/$(get_libdir)/libnvcuvid.so || \
1446 - die "failed to create libnvcuvid.so symlink"
1447 -
1448 - # Xorg DDX driver
1449 - insinto /usr/$(get_libdir)/xorg/modules/drivers
1450 - doins ${NV_X11_DRV}/nvidia_drv.so || die "failed to install nvidia_drv.so"
1451 -
1452 - # Xorg GLX driver
1453 - insinto /usr/$(get_libdir)/opengl/nvidia/extensions
1454 - doins ${NV_X11_EXT}/libglx.so.${NV_SOVER} || \
1455 - die "failed to install libglx.so"
1456 - dosym libglx.so.${NV_SOVER} \
1457 - /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so || \
1458 - die "failed to create libglx.so symlink"
1459 -
1460 - # XvMC driver
1461 - dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
1462 - die "failed to install libXvMCNVIDIA.so"
1463 - dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
1464 - die "failed to install libXvMCNVIDIA.so"
1465 - dosym libXvMCNVIDIA.so.${NV_SOVER} \
1466 - /usr/$(get_libdir)/libXvMCNVIDIA.so.1 || \
1467 - die "failed to create libXvMCNVIDIA.so symlink"
1468 - dosym libXvMCNVIDIA.so.1 /usr/$(get_libdir)/libXvMCNVIDIA.so || \
1469 - die "failed to create libXvMCNVIDIA.so symlink"
1470 - dosym libXvMCNVIDIA.so.${NV_SOVER} \
1471 - /usr/$(get_libdir)/libXvMCNVIDIA_dynamic.so.1 || \
1472 - die "failed to create libXvMCNVIDIA_dynamic.so symlink"
1473 -
1474 - # OpenCL ICD for NVIDIA
1475 - if use kernel_linux; then
1476 - insinto /etc/OpenCL/vendors
1477 - doins nvidia.icd
1478 - fi
1479 -
1480 - # Documentation
1481 - dohtml ${NV_DOC}/html/*
1482 - if use x86-fbsd; then
1483 - dodoc "${NV_DOC}/README"
1484 - doman "${NV_MAN}/nvidia-xconfig.1"
1485 - use gtk && doman "${NV_MAN}/nvidia-settings.1"
1486 - else
1487 - # Docs
1488 - newdoc "${NV_DOC}/README.txt" README
1489 - dodoc "${NV_DOC}/NVIDIA_Changelog"
1490 - doman "${NV_MAN}/nvidia-smi.1.gz"
1491 - doman "${NV_MAN}/nvidia-xconfig.1.gz"
1492 - use gtk && doman "${NV_MAN}/nvidia-settings.1.gz"
1493 - fi
1494 -
1495 - # Helper Apps
1496 - dobin ${NV_EXEC}/nvidia-xconfig || die
1497 - if use gtk; then
1498 - dobin ${NV_EXEC}/nvidia-settings || die
1499 - fi
1500 - dobin ${NV_EXEC}/nvidia-bug-report.sh || die
1501 - if use kernel_linux; then
1502 - dobin ${NV_EXEC}/nvidia-smi || die
1503 - fi
1504 -
1505 - # Desktop entries for nvidia-settings
1506 - if use gtk; then
1507 - sed -e 's:__UTILS_PATH__:/usr/bin:' \
1508 - -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
1509 - -i "${NV_EXEC}/nvidia-settings.desktop"
1510 - domenu ${NV_EXEC}/nvidia-settings.desktop
1511 -
1512 - doicon ${NV_EXEC}/nvidia-settings.png
1513 - fi
1514 -
1515 - if has_multilib_profile ; then
1516 - local OABI=${ABI}
1517 - for ABI in $(get_install_abis) ; do
1518 - src_install-libs
1519 - done
1520 - ABI=${OABI}
1521 - unset OABI
1522 - else
1523 - src_install-libs
1524 - fi
1525 -
1526 - is_final_abi || die "failed to iterate through all ABIs"
1527 -}
1528 -
1529 -# Install nvidia library:
1530 -# the first parameter is the place where to install it
1531 -# the second parameter is the base name of the library
1532 -# the third parameter is the provided soversion
1533 -donvidia() {
1534 - dodir $1
1535 - exeinto $1
1536 -
1537 - libname=$(basename $2)
1538 -
1539 - doexe $2.$3 || die "failed to install $2"
1540 - dosym ${libname}.$3 $1/${libname} || die "failed to symlink $2"
1541 - [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
1542 -}
1543 -
1544 -src_install-libs() {
1545 - local inslibdir=$(get_libdir)
1546 - local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
1547 - local CL_ROOT=/usr/${inslibdir}/OpenCL/vendors/nvidia
1548 - local libdir= sover=
1549 -
1550 - if use kernel_linux; then
1551 - if has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
1552 - libdir=32
1553 - else
1554 - libdir=.
1555 - fi
1556 - sover=${PV}
1557 - else
1558 - libdir=obj
1559 - # on FreeBSD it has just .1 suffix
1560 - sover=1
1561 - fi
1562 -
1563 - # The GLX libraries
1564 - donvidia ${NV_ROOT}/lib ${libdir}/libGL.so ${sover}
1565 - donvidia /usr/${inslibdir} ${libdir}/libnvidia-glcore.so ${sover}
1566 - if use x86-fbsd; then
1567 - donvidia ${NV_ROOT}/lib ${libdir}/libnvidia-tls.so ${sover}
1568 - else
1569 - donvidia ${NV_ROOT}/lib ${libdir}/tls/libnvidia-tls.so ${sover}
1570 - fi
1571 -
1572 - # VDPAU
1573 - donvidia /usr/${inslibdir} ${libdir}/libvdpau_nvidia.so ${sover}
1574 -
1575 - # CUDA & OpenCL
1576 - if use kernel_linux; then
1577 - donvidia ${CL_ROOT} ${libdir}/libcuda.so ${sover}
1578 - donvidia ${CL_ROOT} ${libdir}/libnvidia-compiler.so ${sover}
1579 - donvidia ${CL_ROOT} ${libdir}/libOpenCL.so 1.0.0
1580 - #dosym libOpenCL.so.1 ${CL_ROOT}/libOpenCL.so
1581 - fi
1582 -}
1583 -
1584 -pkg_preinst() {
1585 - if use kernel_linux; then
1586 - linux-mod_pkg_postinst
1587 - fi
1588 -
1589 - # Clean the dynamic libGL stuff's home to ensure
1590 - # we dont have stale libs floating around
1591 - if [ -d "${ROOT}"/usr/lib/opengl/nvidia ] ; then
1592 - rm -rf "${ROOT}"/usr/lib/opengl/nvidia/*
1593 - fi
1594 - # Make sure we nuke the old nvidia-glx's env.d file
1595 - if [ -e "${ROOT}"/etc/env.d/09nvidia ] ; then
1596 - rm -f "${ROOT}"/etc/env.d/09nvidia
1597 - fi
1598 -}
1599 -
1600 -pkg_postinst() {
1601 - if use kernel_linux; then
1602 - linux-mod_pkg_postinst
1603 - fi
1604 -
1605 - # Switch to the nvidia implementation
1606 - eselect opengl set --use-old nvidia
1607 -
1608 - echo
1609 - elog "You must be in the video group to use the NVIDIA device"
1610 - elog "For more info, read the docs at"
1611 - elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6"
1612 - elog
1613 -
1614 - elog "This ebuild installs a kernel module and X driver. Both must"
1615 - elog "match explicitly in their version. This means, if you restart"
1616 - elog "X, you must modprobe -r nvidia before starting it back up"
1617 - elog
1618 -
1619 - elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\""
1620 - elog
1621 - elog "NVIDIA has requested that any bug reports submitted have the"
1622 - elog "output of /usr/bin/nvidia-bug-report.sh included."
1623 - elog
1624 - elog "To work with compiz, you must enable the AddARGBGLXVisuals option."
1625 - elog
1626 - elog "If you are having resolution problems, try disabling DynamicTwinView."
1627 - elog
1628 -
1629 - if ! use gtk; then
1630 - elog "USE=gtk controls whether the nvidia-settings application"
1631 - elog "is installed. If you would like to use it, enable that"
1632 - elog "flag and re-emerge this ebuild. media-video/nvidia-settings"
1633 - elog "no longer installs nvidia-settings but only installs the"
1634 - elog "associated user space libraries."
1635 - fi
1636 -}
1637 -
1638 -pkg_postrm() {
1639 - if use kernel_linux; then
1640 - linux-mod_pkg_postrm
1641 - fi
1642 - eselect opengl set --use-old xorg-x11
1643 -}