aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-05-15 09:03:41 +0200
committerAndreas Schäfer <gentryx@gmx.de>2013-05-15 09:03:41 +0200
commit037d14433e5b1c29a9cb21f88af35093e1e28046 (patch)
tree669e9aaee6b5ce58239f52283880d64a2f2bedc4 /dev-util/amdapp/amdapp-2.8.ebuild
parentMerge /usr/local/portage/andis_overlay (diff)
downloadsci-037d14433e5b1c29a9cb21f88af35093e1e28046.tar.gz
sci-037d14433e5b1c29a9cb21f88af35093e1e28046.tar.bz2
sci-037d14433e5b1c29a9cb21f88af35093e1e28046.zip
adding ebuild for AMD APP
Diffstat (limited to 'dev-util/amdapp/amdapp-2.8.ebuild')
-rw-r--r--dev-util/amdapp/amdapp-2.8.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/amdapp/amdapp-2.8.ebuild b/dev-util/amdapp/amdapp-2.8.ebuild
new file mode 100644
index 000000000..9d02b0b2d
--- /dev/null
+++ b/dev-util/amdapp/amdapp-2.8.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+X86_AT="AMD-APP-SDK-v${PV}-lnx32.tgz"
+AMD64_AT="AMD-APP-SDK-v${PV}-lnx64.tgz"
+
+MY_P="AMD-APP-SDK-v2.8-RC-lnx64"
+
+DESCRIPTION="AMD Accelerated Parallel Processing (APP) SDK"
+HOMEPAGE="http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk"
+SRC_URI="
+ amd64? ( ${AMD64_AT} )
+ x86? ( ${X86_AT} )"
+LICENSE="AMD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="examples"
+
+RDEPEND="
+ app-admin/eselect-opengl
+ sys-devel/llvm
+ sys-devel/gcc
+ media-libs/mesa
+ media-libs/freeglut
+ || ( dev-util/opencl-headers dev-util/nvidia-cuda-toolkit >=x11-drivers/ati-drivers-11.12[opencl] )
+ examples? ( media-libs/glew )
+ app-admin/eselect-opencl"
+DEPEND="
+ ${RDEPEND}
+ dev-lang/perl
+ dev-util/patchelf
+ !<dev-util/amdstream-2.6
+ sys-apps/fakeroot"
+
+RESTRICT="mirror strip"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ default_src_unpack
+ unpack ./${MY_P}.tgz
+ unpack ./icd-registration.tgz
+}
+
+src_compile() {
+ if use examples; then
+ emake || die "Make failed!"
+ fi
+}
+
+src_install() {
+ dodir /opt/AMDAPP
+ cp -R "${S}/"* "${D}/opt/AMDAPP" || die "Install failed!"
+
+ insinto /etc/OpenCL/vendors/
+ doins ../etc/OpenCL/vendors/*
+}
+
+pkg_nofetch() {
+ einfo "AMD doesn't provide direct download links. Please download"
+ einfo "${ARCHIVE} from ${HOMEPAGE}"
+}