1 |
commit: 15972bcd4a0f47eea658f45b6243b8119c2e84d2 |
2 |
Author: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 19 13:34:42 2011 +0000 |
4 |
Commit: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Nov 19 13:34:42 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=15972bcd |
7 |
|
8 |
x11-drivers/ati-drivers: version bump to 11.11 |
9 |
|
10 |
Some important change in this release: |
11 |
|
12 |
- xorg-server-1.11 support! |
13 |
- OpenCL libraries are now shipped with the driver |
14 |
i've made the support optional with the opencl USE flag |
15 |
otherwise libOpenCL.so can conflict with the nvidia-drivers |
16 |
one. |
17 |
|
18 |
I'm following bug #372847 and i will add support to is |
19 |
as soon as it will be released |
20 |
|
21 |
--- |
22 |
...ivers-11.10.ebuild => ati-drivers-11.11.ebuild} | 24 ++++++++++++++++--- |
23 |
x11-drivers/ati-drivers/metadata.xml | 5 ++++ |
24 |
2 files changed, 25 insertions(+), 4 deletions(-) |
25 |
|
26 |
diff --git a/x11-drivers/ati-drivers/ati-drivers-11.10.ebuild b/x11-drivers/ati-drivers/ati-drivers-11.11.ebuild |
27 |
similarity index 96% |
28 |
rename from x11-drivers/ati-drivers/ati-drivers-11.10.ebuild |
29 |
rename to x11-drivers/ati-drivers/ati-drivers-11.11.ebuild |
30 |
index fef0878..f3489d6 100644 |
31 |
--- a/x11-drivers/ati-drivers/ati-drivers-11.10.ebuild |
32 |
+++ b/x11-drivers/ati-drivers/ati-drivers-11.11.ebuild |
33 |
@@ -17,14 +17,14 @@ else |
34 |
SRC_URI="https://launchpad.net/ubuntu/natty/+source/fglrx-installer/2:${PV}-0ubuntu1/+files/fglrx-installer_${PV}.orig.tar.gz" |
35 |
FOLDER_PREFIX="" |
36 |
fi |
37 |
-IUSE="debug +modules multilib qt4" |
38 |
+IUSE="debug +modules multilib opencl qt4" |
39 |
|
40 |
LICENSE="AMD GPL-2 QPL-1.0 as-is" |
41 |
KEYWORDS="~amd64 ~x86" |
42 |
SLOT="1" |
43 |
|
44 |
RDEPEND=" |
45 |
- <=x11-base/xorg-server-1.10.99 |
46 |
+ <=x11-base/xorg-server-1.11.49 |
47 |
>=app-admin/eselect-opengl-1.0.7 |
48 |
sys-power/acpid |
49 |
x11-apps/xauth |
50 |
@@ -96,6 +96,7 @@ QA_SONAME=" |
51 |
usr/lib\(32\|64\)\?/libaticalcl.so |
52 |
usr/lib\(32\|64\)\?/libaticaldd.so |
53 |
usr/lib\(32\|64\)\?/libaticalrt.so |
54 |
+ usr/lib\(32\|64\)\?/libamdocl\(32\|64\)\?.so |
55 |
" |
56 |
|
57 |
QA_DT_HASH=" |
58 |
@@ -103,8 +104,10 @@ QA_DT_HASH=" |
59 |
opt/bin/aticonfig |
60 |
opt/bin/atiodcli |
61 |
opt/bin/atiode |
62 |
+ opt/bin/clinfo |
63 |
opt/bin/fglrxinfo |
64 |
opt/sbin/atieventsd |
65 |
+ opt/sbin/amdnotifyui |
66 |
usr/lib\(32\|64\)\?/libaticalcl.so |
67 |
usr/lib\(32\|64\)\?/libaticalrt.so |
68 |
usr/lib\(32\|64\)\?/libatiuki.so.1.0 |
69 |
@@ -122,6 +125,8 @@ QA_DT_HASH=" |
70 |
usr/lib\(32\|64\)\?/opengl/ati/extensions/fglrx-libglx.so |
71 |
usr/lib\(32\|64\)\?/opengl/ati/lib/fglrx-libGL.so.1.2 |
72 |
usr/lib\(32\|64\)\?/opengl/ati/lib/libGL.so.1.2 |
73 |
+ usr/lib\(32\|64\)\?/libamdocl\(32\|64\)\?.so |
74 |
+ usr/lib\(32\|64\)\?/libOpenCL.so.1 |
75 |
" |
76 |
|
77 |
_check_kernel_config() { |
78 |
@@ -419,6 +424,8 @@ src_install() { |
79 |
# (s)bin. |
80 |
into /opt |
81 |
dosbin "${ARCH_DIR}"/usr/sbin/atieventsd |
82 |
+ use qt4 && dosbin "${ARCH_DIR}"/usr/sbin/amdnotifyui |
83 |
+ use opencl && dobin "${ARCH_DIR}"/usr/bin/clinfo |
84 |
# We cleaned out the compilable stuff in src_unpack |
85 |
dobin "${ARCH_DIR}"/usr/X11R6/bin/* |
86 |
|
87 |
@@ -429,6 +436,11 @@ src_install() { |
88 |
# Everything except for the authatieventsd.sh script. |
89 |
doins ${FOLDER_PREFIX}etc/ati/{logo*,control,atiogl.xml,signature,amdpcsdb.default} |
90 |
doexe ${FOLDER_PREFIX}etc/ati/authatieventsd.sh |
91 |
+ # OpenCL |
92 |
+ if use opencl ; then |
93 |
+ insinto /etc/OpenCL/vendors/ |
94 |
+ doins "${ARCH_DIR}"/etc/OpenCL/vendors/amdocl64.icd || die "doins failed" |
95 |
+ fi |
96 |
|
97 |
# include. |
98 |
insinto /usr |
99 |
@@ -521,9 +533,13 @@ src_install-libs() { |
100 |
exeinto /usr/$(get_libdir)/dri |
101 |
doexe "${MY_ARCH_DIR}"/usr/X11R6/${pkglibdir}/modules/dri/fglrx_dri.so |
102 |
|
103 |
- # AMD Cal libraries |
104 |
+ # AMD Cal and OpenCL libraries |
105 |
exeinto /usr/$(get_libdir) |
106 |
- doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libati*.so* |
107 |
+ if use opencl ; then |
108 |
+ doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/lib*.so* |
109 |
+ else |
110 |
+ doexe "${MY_ARCH_DIR}"/usr/${pkglibdir}/libati*.so* |
111 |
+ fi |
112 |
|
113 |
local envname="${T}"/04ati-dri-path |
114 |
if [[ -n ${ABI} ]]; then |
115 |
|
116 |
diff --git a/x11-drivers/ati-drivers/metadata.xml b/x11-drivers/ati-drivers/metadata.xml |
117 |
index 8411407..a22c40e 100644 |
118 |
--- a/x11-drivers/ati-drivers/metadata.xml |
119 |
+++ b/x11-drivers/ati-drivers/metadata.xml |
120 |
@@ -18,4 +18,9 @@ |
121 |
<use> |
122 |
<flag name='modules'>Build the kernel modules</flag> |
123 |
</use> |
124 |
+ <use> |
125 |
+ <flag name='opencl'> |
126 |
+ Install OpenCL libraries |
127 |
+ </flag> |
128 |
+ </use> |
129 |
</pkgmetadata> |