1 |
commit: 1f58f4a0d43c422105595eecca1ab7d926128960 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 19:44:50 2017 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 19:45:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f58f4a0 |
7 |
|
8 |
dev-libs/amdgpu-pro-opencl: bump to 17.30-458935 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
dev-libs/amdgpu-pro-opencl/Manifest | 1 + |
13 |
.../amdgpu-pro-opencl-17.30.458935.ebuild | 77 ++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/amdgpu-pro-opencl/Manifest b/dev-libs/amdgpu-pro-opencl/Manifest |
17 |
index 728950f3c6a..9982e892fe7 100644 |
18 |
--- a/dev-libs/amdgpu-pro-opencl/Manifest |
19 |
+++ b/dev-libs/amdgpu-pro-opencl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST amdgpu-pro-17.10-429170.tar.xz 121382128 SHA256 cb1ea7f9756f197a976138d2c00f239ae4ee43b839fbb1ea57f8770957d4afd6 SHA512 2d9d0a97478564e259dc8494083df8dc13e3bc664384978aff369070b1105703653d8dc4dca38e94dc8bdf3ddfb5c6f4de39cec5a9b263423de8fb91fd0117c6 WHIRLPOOL 1e07579d2c9d5d8a796973658cbb6627418b133a630ca5e977f93da0d27b900da2078d2ea8b35a13071b0b05e3d5e7f47e17d61042dcca60709f6599c18380a2 |
22 |
+DIST amdgpu-pro-17.30-458935.tar.xz 393634984 SHA256 3652a5c9476a650a3e3cd89bcd7ac119ed7d16a570501eeeea6a902cbc6f9488 SHA512 3f517ce13e102edb820f8f9538e0894c794d767816f99774fbfec342adb6912712664f069db2542412baabb24ee198204f38757407c29aff238ed1772dc3caab WHIRLPOOL 29a5b06657767255ace0529467ca56a904a021254f7dab854b1fd3ac843108ac346d3c4e97e10ef53844152de116581bff7c3aa8f4f066a08becb88e59918da3 |
23 |
|
24 |
diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.30.458935.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.30.458935.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..6d8da00df44 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.30.458935.ebuild |
29 |
@@ -0,0 +1,77 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit unpacker versionator |
36 |
+ |
37 |
+SUPER_PN='amdgpu-pro' |
38 |
+MY_PV=$(replace_version_separator 2 '-') |
39 |
+ |
40 |
+DESCRIPTION="Proprietary OpenCL implementation for AMD GPUs" |
41 |
+HOMEPAGE="https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx" |
42 |
+SRC_URI="${SUPER_PN}-${MY_PV}.tar.xz" |
43 |
+ |
44 |
+LICENSE="AMD-GPU-PRO-EULA" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+ |
48 |
+RESTRICT="mirror fetch strip" |
49 |
+ |
50 |
+DEPEND="dev-util/patchelf" |
51 |
+RDEPEND="dev-libs/ocl-icd" |
52 |
+ |
53 |
+QA_PREBUILT="/opt/${SUPER_PN}/lib*/*" |
54 |
+ |
55 |
+S="${WORKDIR}/${SUPER_PN}-${MY_PV}" |
56 |
+ |
57 |
+pkg_nofetch() { |
58 |
+ local pkgver=$(get_version_component_range 1-2) |
59 |
+ einfo "Please download the AMDGPU-Pro Driver ${pkgver} for Ubuntu from" |
60 |
+ einfo " ${HOMEPAGE}" |
61 |
+ einfo "The archive should then be placed into ${DISTDIR}." |
62 |
+} |
63 |
+ |
64 |
+src_unpack() { |
65 |
+ default |
66 |
+ |
67 |
+ local libdrm_ver="2.4.70" |
68 |
+ local patchlevel=$(get_version_component_range 3) |
69 |
+ cd "${S}" || die |
70 |
+ unpack_deb opencl-${SUPER_PN}-icd_${MY_PV}_amd64.deb |
71 |
+ unpack_deb libdrm-${SUPER_PN}-amdgpu1_${libdrm_ver}-${patchlevel}_amd64.deb |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ cd "${S}/opt/${SUPER_PN}/lib/x86_64-linux-gnu" || die |
78 |
+ patchelf --set-rpath '$ORIGIN' libamdocl64.so || die "Failed to fix library rpath" |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ |
83 |
+ into "/opt/${SUPER_PN}" |
84 |
+ dolib opt/${SUPER_PN}/lib/x86_64-linux-gnu/* |
85 |
+ |
86 |
+ insinto /etc/OpenCL/vendors/ |
87 |
+ echo "/opt/${SUPER_PN}/$(get_libdir)/libamdocl64.so" > "${SUPER_PN}.icd" || die "Failed to generate ICD file" |
88 |
+ doins "${SUPER_PN}.icd" |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
93 |
+ ewarn "Please note that using proprietary OpenCL libraries together with the" |
94 |
+ ewarn "Open Source amdgpu stack is not officially supported by AMD. Do not ask them" |
95 |
+ ewarn "for support in case of problems with this package." |
96 |
+ ewarn "" |
97 |
+ ewarn "Furthermore, if you have the whole AMDGPU-Pro stack installed this package" |
98 |
+ ewarn "will almost certainly conflict with it. This might change once AMDGPU-Pro" |
99 |
+ ewarn "has become officially supported by Gentoo." |
100 |
+ fi |
101 |
+ |
102 |
+ elog "AMD OpenCL driver relies on dev-libs/ocl-icd to work. To enable it, please run" |
103 |
+ elog "" |
104 |
+ elog " eselect opencl set ocl-icd" |
105 |
+ elog "" |
106 |
+} |