diff options
author | Alan Alberghini <414N@slacky.it> | 2011-10-21 11:36:28 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-22 10:17:10 -0200 |
commit | 75fc744de07234ea2746dc46e160e9efcddc72d5 (patch) | |
tree | 1ef3760b311cfa2ebf84edbefceece0671bd142e | |
parent | 96fc7f0a9b803b830bc1bf37eb06ed193c83fcf0 (diff) |
development/amd-app-sdk: Added (AMD Accelerated Parallel Processing SDK)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
-rw-r--r-- | development/amd-app-sdk/README | 16 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk.SlackBuild | 116 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk.info | 10 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk32.csh | 5 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk32.sh | 5 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk64.csh | 5 | ||||
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk64.sh | 5 | ||||
-rw-r--r-- | development/amd-app-sdk/slack-desc | 19 |
8 files changed, 181 insertions, 0 deletions
diff --git a/development/amd-app-sdk/README b/development/amd-app-sdk/README new file mode 100644 index 000000000000..b3a485aa7817 --- /dev/null +++ b/development/amd-app-sdk/README @@ -0,0 +1,16 @@ +AMD APP (formerly ATI Stream) technology is a set of advanced hardware and +software technologies that enable AMD graphics processing cores (GPU), working +in concert with the system's x86 cores (CPU), to accelerate many applications +beyond just graphics. + +This is AMD's impementation of OpenCL on top of Radeon hardware. You'll need a +compatible card and recent Catalyst drivers. See +http://developer.amd.com/sdks/AMDAPPSDK/pages/DriverCompatibility.aspx +for a complete list of requirements. + +NOTES: + +This package is compatible only with x86 and x86_64 architectures. + +The download links point to a license agreement page. If you agree to that +license, you'll then be able to download the files. diff --git a/development/amd-app-sdk/amd-app-sdk.SlackBuild b/development/amd-app-sdk/amd-app-sdk.SlackBuild new file mode 100644 index 000000000000..6fde5d7e0db5 --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk.SlackBuild @@ -0,0 +1,116 @@ +#!/bin/sh + +# Slackware build script for amd-app-sdk + +# Copyright (c) 2011 Alan Alberghini <414N@slacky.it> +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED AS IS'' AND ANY EXPRESSED OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# ----------------------------------------------------------------------------- +# +# Build history: +# +# 1 - Initial release. + +PRGNAM=amd-app-sdk +INT_NAME=AMD-APP-SDK +VERSION=${VERSION:-2.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on or use supplied ARCH +# (only x86 and x86_64 are supported) +TESTARCH=${ARCH:-`uname -m`} +case "$TESTARCH" in + x86|i*86) ARCH=x86; BITNESS=32 ;; + x86_64) ARCH=x86_64; BITNESS=64 ;; + *) echo "$ARCH architecture not supported. Please specify a supported ARCH (x86 or x86_64)." + exit 1 ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +ARCHIVE_NAME="AMD-APP-SDK-v$VERSION-lnx${BITNESS}" + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $ARCHIVE_NAME +tar xvf $CWD/$ARCHIVE_NAME.tgz +cd $ARCHIVE_NAME + +# If we're packaging a 64 bit package, let's remove all 32 bit parts first (no multilib). +# RFC: should all these files really be removed, given that the user already downloaded them in the +# source tarball, which comes multilib by itself? + +if [ ${ARCH} = x86_64 ] +then + find . -type d -name x86 -depth -exec rm -r {} \; +fi + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# Create output directories and copy everything inside /opt + +mkdir -p $PKG/opt/$PRGNAM $PKG/etc/profile.d $PKG/usr/doc/$PRGNAM-$VERSION + +mv * $PKG/opt/$PRGNAM + +# Install the icd registration tarball into $PKG root + +( cd $PKG && tar xf $PKG/opt/$PRGNAM/icd-registration.tgz ) + +# Copy the profile scripts in their final location... + +if [ ${ARCH} = x86 ] +then + install -m0755 $CWD/amd-app-sdk32.sh $PKG/etc/profile.d + install -m0755 $CWD/amd-app-sdk32.csh $PKG/etc/profile.d +else + install -m0755 $CWD/amd-app-sdk64.sh $PKG/etc/profile.d + install -m0755 $CWD/amd-app-sdk64.csh $PKG/etc/profile.d +fi + +chown -R root:root $PKG/etc + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION + +# Link documentation and samples from /opt +ln -sf /opt/$PRGNAM/docs/opencl $PKG/usr/doc/$PRGNAM-$VERSION +ln -sf /opt/$PRGNAM/samples $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/amd-app-sdk/amd-app-sdk.info b/development/amd-app-sdk/amd-app-sdk.info new file mode 100644 index 000000000000..d2b07b83dc17 --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk.info @@ -0,0 +1,10 @@ +PRGNAM="amd-app-sdk" +VERSION="2.4" +HOMEPAGE="http://developer.amd.com/sdks/AMDAPPSDK/Pages/default.aspx" +DOWNLOAD="http://developer.amd.com/Downloads/AMD-APP-SDK-v2.4-lnx32.tgz" +MD5SUM="f7b1c093136ee922f6e1a752949e92ef" +DOWNLOAD_x86_64="http://developer.amd.com/Downloads/AMD-APP-SDK-v2.4-lnx64.tgz" +MD5SUM_x86_64="23f141a07401ce2d617082460cf18ee0" +MAINTAINER="Alan Alberghini" +EMAIL="414N@slacky.it" +APPROVED="Erik Hanson" diff --git a/development/amd-app-sdk/amd-app-sdk32.csh b/development/amd-app-sdk/amd-app-sdk32.csh new file mode 100644 index 000000000000..e12b01e51562 --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk32.csh @@ -0,0 +1,5 @@ +#!/bin/sh + +setenv AMDAPPSDKROOT /opt/amd-app-sdk +setenv AMDAPPSDKSAMPLESROOT /opt/amd-app-sdk +setenv LD_LIBRARY_PATH ${AMDAPPSDKROOT}/lib/x86:${LD_LIBRARY_PATH} diff --git a/development/amd-app-sdk/amd-app-sdk32.sh b/development/amd-app-sdk/amd-app-sdk32.sh new file mode 100644 index 000000000000..878cd793c42f --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk32.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export AMDAPPSDKROOT=/opt/amd-app-sdk +export AMDAPPSDKSAMPLESROOT=/opt/amd-app-sdk +export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86:${LD_LIBRARY_PATH} diff --git a/development/amd-app-sdk/amd-app-sdk64.csh b/development/amd-app-sdk/amd-app-sdk64.csh new file mode 100644 index 000000000000..0f93ba0b6ea5 --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk64.csh @@ -0,0 +1,5 @@ +#!/bin/sh + +setenv AMDAPPSDKROOT /opt/amd-app-sdk +setenv AMDAPPSDKSAMPLESROOT /opt/amd-app-sdk +setenv LD_LIBRARY_PATH ${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH} diff --git a/development/amd-app-sdk/amd-app-sdk64.sh b/development/amd-app-sdk/amd-app-sdk64.sh new file mode 100644 index 000000000000..877bec391a85 --- /dev/null +++ b/development/amd-app-sdk/amd-app-sdk64.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +export AMDAPPSDKROOT=/opt/amd-app-sdk +export AMDAPPSDKSAMPLESROOT=/opt/amd-app-sdk +export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH} diff --git a/development/amd-app-sdk/slack-desc b/development/amd-app-sdk/slack-desc new file mode 100644 index 000000000000..372f98f65496 --- /dev/null +++ b/development/amd-app-sdk/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |----handy-ruler--------------------------------------------------------| +amd-app-sdk: amd-app-sdk (AMD Accelerated Parallel Processing SDK) +amd-app-sdk: +amd-app-sdk: The AMD APP Software Development Kit (SDK) is a complete development +amd-app-sdk: platform created by AMD to allow you to quickly and easily develop +amd-app-sdk: applications accelerated by AMD APP technology. The SDK allows you to +amd-app-sdk: develop your applications in a high-level language, OpenCL. +amd-app-sdk: +amd-app-sdk: Homepage: +amd-app-sdk: http://developer.amd.com/sdks/AMDAPPSDK/Pages/default.aspx +amd-app-sdk: +amd-app-sdk: |