* Adding amd-stream 1st attempt, need to fix unpacking

This commit is contained in:
grimmlin 2009-01-30 16:58:47 +00:00
parent 35a5e3bfd4
commit e835dd7d07
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,4 @@
AUX 99amdstream 68 RMD160 7b84d3862b10e7d4403701a00db6c087b503a919 SHA1 8e92922eeedac472f8436ecc0a3f0b620477ada2 SHA256 f0f2db26068a7e2c20ec7ce5932ca2eea70ccefc099300b6deea6d4e2b4e4f0c
DIST amdstream-1.3.0_beta-lnx32.tar.gzip 20609837 RMD160 86891a26db8c1f7c56ca813515b0643c6522426e SHA1 7e31ea7ff250a148069064bb41f94a454428da48 SHA256 a980815ca7e0673cda6002cd80cf5a1d579189e2c59a551645561cd78a8b448a
DIST amdstream-1.3.0_beta-lnx64.tar.gzip 21379454 RMD160 09ba3c5b0dda950949de32f8ff3f08e053d76e18 SHA1 2925231ac58de12717dbd3c3246c8250e9484cf9 SHA256 82e371d4af462b31c9b99b7be45b9280a7e0ba2cd13d954d3bee4a44111f7fc5
EBUILD amd-stream-sdk-1.3.0_beta.ebuild 1756 RMD160 81c19cae489d0ebc4db2f2d470fe275ee7bbcc5a SHA1 a6ce21d1ed14f2a7486ba69b2cde9c631cf52f34 SHA256 d605bd678e2a5e985a46a6f4b7017989500257881f3b5d86922eb9414897c2d3

View file

@ -0,0 +1,57 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Enable compiling code and loading it on ATI/AMD GPU"
HOMEPAGE="http://ati.amd.com/technology/streamcomputing/sdkdwnld.htm"
SRC_URI="amd64? ( http://www2.ati.com/sdkdwnld/amdstream-${PV}-lnx64.tar.gzip )
x86? ( http://www2.ati.com/sdkdwnld/amdstream-${PV}-lnx32.tar.gzip )"
LICENSE="AMD GPL-1 as-is"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND=">=x11-drivers/ati-drivers-8.561"
src_unpack() {
tar -zxf ${A}
cd ${WORKDIR}
if use x86; then
einfo "Unpacking AMD-Cal"
dd if=${WORKDIR}/amdstream-cal-${PV}.i386.run of=${WORKDIR}/amdcal.tar.gz bs=1 skip=16384 >& /dev/null
einfo "Unpacking AMD-Brook"
dd if=${WORKDIR}/amdstream-brook-${PV}.i386.run of=${WORKDIR}/amdbrook.tar.gz bs=1 skip=16384 >& /dev/null
else
einfo "Unpacking AMD-Cal"
dd if=${WORKDIR}/amdstream-cal-${PV}.x86_64.run of=${WORKDIR}/amdcal.tar.gz bs=1 skip=16384 >& /dev/null
einfo "Unpacking AMD-Brook"
dd if=${WORKDIR}/amdstream-brook-${PV}.x86_64.run of=${WORKDIR}/amdbrook.tar.gz bs=1 skip=16384 >& /dev/null
fi
einfo "Converting rpm to tar"
mkdir AMD-Cal
tar xvf amdcal.tar.gz -C AMD-Cal >& /dev/null
mkdir AMD-Brook
tar xvf amdbrook.tar.gz -C AMD-Brook >& /dev/null
cd ${WORKDIR}/AMD-Cal
rpm2tar amdstream-cal-${PV}-1.*.rpm
cd ${WORKDIR}/AMD-Brook
rpm2tar amdstream-brook-${PV}-1.*.rpm
}
src_install() {
einfo "Installing AMD-Cal"
tar xvf ${WORKDIR}/AMD-Cal/amdstream-cal-${PV}-1.*.tar -C ${D}/
einfo "Installing AMD-Brook"
tar xvf ${WORKDIR}/AMD-Brook/amdstream-brook-${PV}-1.*.tar -C ${D}/
newenvd "${FILESDIR}/99amdstream" 99amdstream || die "Failed to install env file."
}

View file

@ -0,0 +1,2 @@
PATH=/usr/local/amdbrook/sdk/bin
LDPATH=/usr/local/amdbrook/sdk/lib