commit:     ad29d580a2cbf4dc172bc8e2d931d93f422b22b8
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sun Feb  1 11:33:59 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Feb  1 11:33:59 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ad29d580

dev-util/amdapp: Bump to 2.9 and fix 32bit

---
 dev-util/amdapp/ChangeLog         |  8 +++-
 dev-util/amdapp/amdapp-2.9.ebuild | 87 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+), 1 deletion(-)

diff --git a/dev-util/amdapp/ChangeLog b/dev-util/amdapp/ChangeLog
index 85df99a..6b46c97 100644
--- a/dev-util/amdapp/ChangeLog
+++ b/dev-util/amdapp/ChangeLog
@@ -1,6 +1,12 @@
 # ChangeLog for dev-util/amdapp
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*amdapp-2.9 (01 Feb 2015)
+
+  01 Feb 2015; Marius Brehler <[email protected]>
+  +amdapp-2.9.ebuild:
+  Version bump and fix 32bit build
+
   14 Nov 2014; Christoph Junghans <[email protected]> amdapp-2.8.ebuild:
   switch to virtual/opencl

diff --git a/dev-util/amdapp/amdapp-2.9.ebuild 
b/dev-util/amdapp/amdapp-2.9.ebuild
new file mode 100644
index 0000000..d981d2c
--- /dev/null
+++ b/dev-util/amdapp/amdapp-2.9.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit multilib
+
+X86_AT="AMD-APP-SDK-v${PV}-lnx32.tgz"
+AMD64_AT="AMD-APP-SDK-v${PV}-lnx64.tgz"
+
+MY_P_AMD64="AMD-APP-SDK-v${PV}-RC-lnx64"
+MY_P_AMD32="AMD-APP-SDK-v${PV}-RC-lnx32"
+MY_P="AMD-APP-SDK-v${PV}-RC"
+
+DESCRIPTION="AMD Accelerated Parallel Processing (APP) SDK"
+HOMEPAGE="http://developer.amd.com/tools-and-sdks/opencl-zone/\
+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
+       !<dev-util/amdstream-2.6
+       sys-devel/llvm
+       sys-devel/gcc
+       media-libs/mesa
+       media-libs/freeglut
+       virtual/opencl
+       examples? ( media-libs/glew )
+       app-admin/eselect-opencl"
+DEPEND="
+       ${RDEPEND}
+       dev-lang/perl
+       dev-util/patchelf
+       sys-apps/fakeroot"
+
+RESTRICT="mirror strip"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_nofetch() {
+       einfo "AMD doesn't provide direct download links. Please download"
+       einfo "${ARCHIVE} from ${HOMEPAGE}"
+}
+
+src_unpack() {
+       default
+
+       cd "${WORKDIR}" || die
+
+       if use amd64 || use amd64-linux ; then
+               unpack ./${MY_P_AMD64}.tgz
+               mv -f "${MY_P_AMD64}" "${MY_P}" || die
+       else
+               unpack ./${MY_P_X86}.tgz
+               mv -f "${MY_P_X86}" "${MY_P}" || die
+       fi
+
+       unpack ./icd-registration.tgz
+}
+
+src_prepare() {
+       AMD_CL=usr/$(get_libdir)/OpenCL/vendors/amd/
+}
+
+src_compile() {
+       MAKEOPTS+=" -j1"
+       use examples && cd samples/opencl && emake
+}
+
+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/*
+}

Reply via email to