1 |
commit: 4e66f86310509475e7faa04e3f496a9b357436d3 |
2 |
Author: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 4 14:32:49 2012 +0000 |
4 |
Commit: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Feb 4 14:32:49 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=4e66f863 |
7 |
|
8 |
x11-drivers/ati-drivers sync with main portage tree |
9 |
|
10 |
--- |
11 |
...vers-12.1.ebuild => ati-drivers-12.1-r1.ebuild} | 41 +++++++------------ |
12 |
x11-drivers/ati-drivers/metadata.xml | 5 -- |
13 |
2 files changed, 15 insertions(+), 31 deletions(-) |
14 |
|
15 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-12.1.ebuild b/x11-drivers/ati-drivers/ati-drivers-12.1-r1.ebuild |
16 |
similarity index 95% |
17 |
rename from x11-drivers/ati-drivers/ati-drivers-12.1.ebuild |
18 |
rename to x11-drivers/ati-drivers/ati-drivers-12.1-r1.ebuild |
19 |
index 6808300..65cdccb 100644 |
20 |
--- a/x11-drivers/ati-drivers/ati-drivers-12.1.ebuild |
21 |
+++ b/x11-drivers/ati-drivers/ati-drivers-12.1-r1.ebuild |
22 |
@@ -1,4 +1,4 @@ |
23 |
-# Copyright 1999-2011 Gentoo Foundation |
24 |
+# Copyright 1999-2012 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
# $Header: $ |
27 |
|
28 |
@@ -17,7 +17,7 @@ else |
29 |
SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz" |
30 |
FOLDER_PREFIX="" |
31 |
fi |
32 |
-IUSE="debug +modules multilib opencl pax_kernel qt4" |
33 |
+IUSE="debug +modules multilib pax_kernel qt4" |
34 |
|
35 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
36 |
KEYWORDS="~amd64 ~x86" |
37 |
@@ -26,6 +26,7 @@ SLOT="1" |
38 |
RDEPEND=" |
39 |
<=x11-base/xorg-server-1.11.49 |
40 |
>=app-admin/eselect-opengl-1.0.7 |
41 |
+ app-admin/eselect-opencl |
42 |
sys-power/acpid |
43 |
x11-apps/xauth |
44 |
x11-libs/libX11 |
45 |
@@ -46,9 +47,6 @@ RDEPEND=" |
46 |
x11-libs/qt-core |
47 |
x11-libs/qt-gui |
48 |
) |
49 |
- opencl? ( |
50 |
- !>=x11-drivers/nvidia-drivers-195 |
51 |
- ) |
52 |
" |
53 |
|
54 |
DEPEND="${RDEPEND} |
55 |
@@ -130,8 +128,8 @@ QA_DT_HASH=" |
56 |
usr/lib\(32\|64\)\?/opengl/ati/extensions/fglrx-libglx.so |
57 |
usr/lib\(32\|64\)\?/opengl/ati/lib/fglrx-libGL.so.1.2 |
58 |
usr/lib\(32\|64\)\?/opengl/ati/lib/libGL.so.1.2 |
59 |
- usr/lib\(32\|64\)\?/OpenCL/vendor/amd/libamdocl\(32\|64\)\?.so |
60 |
- usr/lib\(32\|64\)\?/OpenCL/vendor/amd/libOpenCL.so.1 |
61 |
+ usr/lib\(32\|64\)\?/OpenCL/vendors/amd/libamdocl\(32\|64\)\?.so |
62 |
+ usr/lib\(32\|64\)\?/OpenCL/vendors/amd/libOpenCL.so.1 |
63 |
" |
64 |
|
65 |
_check_kernel_config() { |
66 |
@@ -430,7 +428,7 @@ src_install() { |
67 |
into /opt |
68 |
dosbin "${ARCH_DIR}"/usr/sbin/atieventsd |
69 |
use qt4 && dosbin "${ARCH_DIR}"/usr/sbin/amdnotifyui |
70 |
- use opencl && dobin "${ARCH_DIR}"/usr/bin/clinfo |
71 |
+ dobin "${ARCH_DIR}"/usr/bin/clinfo |
72 |
# We cleaned out the compilable stuff in src_unpack |
73 |
dobin "${ARCH_DIR}"/usr/X11R6/bin/* |
74 |
|
75 |
@@ -536,28 +534,19 @@ src_install-libs() { |
76 |
doexe "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir}/modules/dri/fglrx_dri.so |
77 |
|
78 |
# AMD Cal and OpenCL libraries |
79 |
- if use opencl ; then |
80 |
- exeinto /usr/$(get_libdir)/OpenCL/vendor/amd |
81 |
- doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libamdocl*.so* |
82 |
- doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libOpenCL*.so* |
83 |
- fi |
84 |
+ exeinto /usr/$(get_libdir)/OpenCL/vendors/amd |
85 |
+ doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libamdocl*.so* |
86 |
+ doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libOpenCL*.so* |
87 |
+ dosym libOpenCL.so.${libmajor} /usr/$(get_libdir)/OpenCL/vendors/amd/libOpenCL.so |
88 |
exeinto /usr/$(get_libdir) |
89 |
doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libati*.so* |
90 |
|
91 |
# OpenCL vendor files |
92 |
- if use opencl ; then |
93 |
- insinto /etc/OpenCL/vendors/ |
94 |
- cat > "${T}"/amdocl${oclsuffix}.icd <<-EOF |
95 |
- /usr/$(get_libdir)/OpenCL/vendor/amd/libamdocl${oclsuffix}.so |
96 |
- EOF |
97 |
- doins "${T}"/amdocl${oclsuffix}.icd |
98 |
- |
99 |
- # OpenCL envd file until eselect-opencl is in place |
100 |
- cat > "${T}"/35amdocl${oclsuffix} <<-EOF |
101 |
- LDPATH="/usr/$(get_libdir)/OpenCL/vendor/amd" |
102 |
- EOF |
103 |
- doenvd "${T}"/35amdocl${oclsuffix} || die "doenvd failed" |
104 |
- fi |
105 |
+ insinto /etc/OpenCL/vendors/ |
106 |
+ cat > "${T}"/amdocl${oclsuffix}.icd <<-EOF |
107 |
+ /usr/$(get_libdir)/OpenCL/vendors/amd/libamdocl${oclsuffix}.so |
108 |
+ EOF |
109 |
+ doins "${T}"/amdocl${oclsuffix}.icd |
110 |
|
111 |
local envname="${T}"/04ati-dri-path |
112 |
if [[ -n ${ABI} ]]; then |
113 |
|
114 |
diff --git a/x11-drivers/ati-drivers/metadata.xml b/x11-drivers/ati-drivers/metadata.xml |
115 |
index ba2339f..e68850a 100644 |
116 |
--- a/x11-drivers/ati-drivers/metadata.xml |
117 |
+++ b/x11-drivers/ati-drivers/metadata.xml |
118 |
@@ -19,11 +19,6 @@ |
119 |
<flag name='modules'>Build the kernel modules</flag> |
120 |
</use> |
121 |
<use> |
122 |
- <flag name='opencl'> |
123 |
- Install OpenCL runtime libraries |
124 |
- </flag> |
125 |
- </use> |
126 |
- <use> |
127 |
<flag name='pax_kernel'> |
128 |
Enable if the user plans to run the package under a pax enabled hardened kernel |
129 |
</flag> |