aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-06-28 00:00:25 +0200
committerAndreas Schäfer <gentryx@gmx.de>2013-06-28 00:00:25 +0200
commit919b0432ea9cae6554dd5fa9bfab9723fad07a6a (patch)
tree2c2e490acd3bc6059c5e17a75627d57cc864cbff /dev-util/amdapp/amdapp-2.8.ebuild
parentremoved superfluous lines from patches (diff)
downloadsci-919b0432ea9cae6554dd5fa9bfab9723fad07a6a.tar.gz
sci-919b0432ea9cae6554dd5fa9bfab9723fad07a6a.tar.bz2
sci-919b0432ea9cae6554dd5fa9bfab9723fad07a6a.zip
integrate AMD OpenCL libs into Gentoo infrastructure
Diffstat (limited to 'dev-util/amdapp/amdapp-2.8.ebuild')
-rw-r--r--dev-util/amdapp/amdapp-2.8.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-util/amdapp/amdapp-2.8.ebuild b/dev-util/amdapp/amdapp-2.8.ebuild
index f002d0782..6308615a6 100644
--- a/dev-util/amdapp/amdapp-2.8.ebuild
+++ b/dev-util/amdapp/amdapp-2.8.ebuild
@@ -4,6 +4,10 @@
EAPI=5
+inherit multilib
+
+AMD_CL=usr/$(get_libdir)/OpenCL/vendors/amd/
+
X86_AT="AMD-APP-SDK-v${PV}-lnx32.tgz"
AMD64_AT="AMD-APP-SDK-v${PV}-lnx64.tgz"
@@ -51,13 +55,17 @@ src_unpack() {
}
src_compile() {
- use examples && emake
+ use examples && make -j1
}
src_install() {
dodir /opt/AMDAPP
cp -R "${S}/"* "${ED}/opt/AMDAPP" || die "Install failed!"
+ dodir "${AMD_CL}"
+ dosym "/opt/AMDAPP/lib/`arch`/libOpenCL.so" "${AMD_CL}"
+ dosym "/opt/AMDAPP/lib/`arch`/libOpenCL.so.1" "${AMD_CL}"
+
insinto /etc/OpenCL/vendors/
doins ../etc/OpenCL/vendors/*
}