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
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')
-rw-r--r--dev-util/amdapp/Manifest2
-rw-r--r--dev-util/amdapp/amdapp-2.8.ebuild65
-rw-r--r--dev-util/amdapp/metadata.xml15
3 files changed, 82 insertions, 0 deletions
diff --git a/dev-util/amdapp/Manifest b/dev-util/amdapp/Manifest
new file mode 100644
index 000000000..447c48c73
--- /dev/null
+++ b/dev-util/amdapp/Manifest
@@ -0,0 +1,2 @@
+DIST AMD-APP-SDK-v2.8-lnx32.tgz 72959001 SHA256 bfd53e90430fab6ddc6e0a6e2327d36047f21616be33ba36361007ccc111396d SHA512 2d1a5a6e45902b0e0f1d979392ca2c4d57d262389cec419852266d61297bc78b8a64a44840e20066b902ff9ea483ffbc9bcdc89e81df74069ed5a0e5aac4260a WHIRLPOOL ef7fed002b1a9f558007d32939184347379a51d46d122f8a512fc6af964c81657ec4533aa99b3c0dfe4868814329aa3cd6ae4825a801c8cbab40cddb05cfb63b
+DIST AMD-APP-SDK-v2.8-lnx64.tgz 111248454 SHA256 207a971227d4492b7da4961f3fb278131c1a438f31afc535205ac956c5acd1e7 SHA512 c8893e5abf804c14d79f6529d8894fba9cfdc83e5f096273108eb55720127418b5f3f6d6000965159ac784574670bf5c82aa458deb609cdbc3ddc7499c0a0968 WHIRLPOOL 885c1584c04948393477b3f9cd97c0273732a5913bdec7570aeed547b79bda178fa15c2042cd38dba1b9e3d0166b1a5998c5939b6136c0e3370a636794d6d809
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}"
+}
diff --git a/dev-util/amdapp/metadata.xml b/dev-util/amdapp/metadata.xml
new file mode 100644
index 000000000..870080c35
--- /dev/null
+++ b/dev-util/amdapp/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <longdescription>
+ AMD Accelerated Parallel Processing (APP) is an SDK which includes
+ the Bolt libraries and an OpenCL implementation for AMD's CPUs and GPUs.
+ </longdescription>
+ <maintainer>
+ <email>gentryx@gmx.de</email>
+ </maintainer>
+ <use>
+ <flag name='examples'>Build the OpenCL example programs</flag>
+ </use>
+</pkgmetadata>