public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dane Smith" <c1pher@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/c1pher:master commit in: dev-util/ati-stream-sdk/files/, dev-util/ati-stream-sdk/
Date: Wed, 23 Feb 2011 14:48:39 +0000 (UTC)	[thread overview]
Message-ID: <9d9658e5df18e814af358393c5cf8cf5e720fa06.c1pher@gentoo> (raw)

commit:     9d9658e5df18e814af358393c5cf8cf5e720fa06
Author:     Dane Smith <c1pher <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 23 14:44:00 2011 +0000
Commit:     Dane Smith <c1pher <AT> gentoo <DOT> org>
CommitDate: Wed Feb 23 14:44:00 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/c1pher.git;a=commit;h=9d9658e5

Attempt #2.

---
 dev-util/ati-stream-sdk/Manifest                   |    2 +
 .../ati-stream-sdk/ati-stream-sdk-2.3-r1.ebuild    |   72 ++++++++++++++++++++
 dev-util/ati-stream-sdk/files/Makefile             |   65 ++++++++++++++++++
 3 files changed, 139 insertions(+), 0 deletions(-)

diff --git a/dev-util/ati-stream-sdk/Manifest b/dev-util/ati-stream-sdk/Manifest
index b114817..048078b 100644
--- a/dev-util/ati-stream-sdk/Manifest
+++ b/dev-util/ati-stream-sdk/Manifest
@@ -1,4 +1,6 @@
+AUX Makefile 1741 RMD160 de6d4123c6e990c930fd1fc5c6ebd79569000f8b SHA1 819430cc79c3784f140110871ec067869edff5a6 SHA256 725ebe9c0fb678c02c61b644c1678c39ff79f1c6d53fe9e3632bdbc7a806f3a4
 DIST ati-stream-sdk-v2.3-lnx32.tgz 49912168 RMD160 07c045de3118531472672e9ef7b3763cb32f7d68 SHA1 972bdbe6942e52411a2f041720348e857f17c388 SHA256 07fd15a51a678c4378767f61466daf9da21d0bab6088a97a70136dd8c976aca6
 DIST ati-stream-sdk-v2.3-lnx64.tgz 78659015 RMD160 57af36f62e590ae54cb9d43b880735979b77466c SHA1 43c94e5126563fe3fa4cb92fb6dd20f12864a86d SHA256 f92537d1fc306af0bff1441af4669bf2fa668654b12d9fb53a3a872dc8826cad
+EBUILD ati-stream-sdk-2.3-r1.ebuild 1538 RMD160 3502b693551666c4ba3ccff46f6fe3102ab24427 SHA1 4045b9d514c9d848ad5d20e6769f227ad98535b3 SHA256 3d635640e522688b0ff096c7b644a52c5e60f2577c6f796d1fa9cef4737d07de
 EBUILD ati-stream-sdk-2.3.ebuild 1902 RMD160 3223fecbf191d822e896965ba63be3ebb2475d1e SHA1 b30d65c95630319b86c0b7a4fe5cd22323379093 SHA256 1f55cff88074875c4867fd52441fd266fbc3ab96016865f93eb21a4a07598948
 MISC metadata.xml 301 RMD160 1ef0179dbe53f24768e976ab60f6ae0e8ca9e672 SHA1 fba668cb8711ac2bcc6b7bfc113a1a513c69b0be SHA256 55f555e646e9d04c8975a736b9a5b3f1d8ea110446c18e988a3b884d0dca33b7

diff --git a/dev-util/ati-stream-sdk/ati-stream-sdk-2.3-r1.ebuild b/dev-util/ati-stream-sdk/ati-stream-sdk-2.3-r1.ebuild
new file mode 100644
index 0000000..a09eb35
--- /dev/null
+++ b/dev-util/ati-stream-sdk/ati-stream-sdk-2.3-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils multilib
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Enable compiling code and loading it on ATI/AMD GPU"
+HOMEPAGE="http://developer.amd.com/GPU/ATISTREAMSDK/Pages/default.aspx"
+SRC_URI=" \
+	amd64? ( http://download2-developer.amd.com/amd/Stream20GA/${MY_P}-lnx64.tgz ) \
+	x86? ( http://download2-developer.amd.com/amd/Stream20GA/${MY_P}-lnx32.tgz )"
+
+LICENSE="AMD GPL-1 as-is"
+SLOT="0"
+KEYWORDS=""
+IUSE="examples doc multilib"
+RESTRICT="strip fetch"
+RDEPEND="media-libs/freeglut
+	x11-drivers/ati-drivers
+	examples? ( media-libs/glew )"
+
+QA_EXECSTACK="opt/${PN}/lib*/libatiocl??.so"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_nofetch() {
+	ewarn "Proprietary software. Download at"
+	ewarn "http://developer.amd.com/gpu/AMDAPPSDK/downloads/Pages/default.aspx"
+	ewarn "and move it to distfiles"
+}
+
+src_unpack() {
+	default_src_unpack
+
+	mv ${MY_P}-lnx* ${MY_P} || die
+	cp "${FILESDIR}"/Makefile ${MY_P}/ || die
+}
+
+src_compile() { true; }
+
+src_install() {
+	local DEST=/opt/${PN}
+
+	rm include/GL/{glext.h,glut.h} || die
+
+	if use amd64; then
+		emake DESTDIR=${D} ARCH="amd64" install;
+	else
+		emake DESTDIR=${D} install-x86;
+	fi
+
+	cat > "${T}/99${PN}" << EOF
+PATH=${DEST}/bin
+ROOTPATH=${DEST}/bin
+LDPATH=${DEST}/$(get_libdir)
+EOF
+	doenvd "${T}/99${PN}"
+
+	if use examples; then
+		insinto ${DEST}/exmaples
+		doins -r samples/* || die
+		insinto ${DEST}
+		doins -r make || die
+	fi
+
+	if use doc; then
+		dodoc docs/opencl/*
+	fi
+}

diff --git a/dev-util/ati-stream-sdk/files/Makefile b/dev-util/ati-stream-sdk/files/Makefile
new file mode 100644
index 0000000..f226f4b
--- /dev/null
+++ b/dev-util/ati-stream-sdk/files/Makefile
@@ -0,0 +1,65 @@
+DESTDIR=
+PREFIX=$(DESTDIR)/opt/
+LIBDIR=$(PREFIX)lib/
+BINDIR=$(PREFIX)bin/
+INCDIR=$(PREFIX)include/
+
+INSTALLBIN=install
+INSTALLDAT=install -m0644
+INSTALLDIR=install -d
+MKDIR=mkdir -p
+
+ARCH:=x86
+BINFILES=bin/x86$(DSUFX)/clc 
+LIBFILES=lib/x86$(DSUFX)/libOpenCL.so lib/x86$(DSUFX)/libatiolc$(SUFX).so lib/x86$(DSUFX)/libGLEW.so lib/gpu/builtins-7xx.bc lib/gpu/builtins-evergreen.bc lib/gpu/builtins-gpucommon.bc lib/x86$(DSUFX)/builtins-x86$(DSUFX).bc
+INCDIRS=include/CL include/GL include/OVDecode
+INCFILES=include/cal*.h
+
+ifeq ($(ARCH),amd64)
+DSUFX=_64
+SUFX=64
+else
+DSUFX=
+SUFX=32
+endif
+
+install:
+	test -z "$(BINDIR)" || $(MKDIR) "$(BINDIR)"
+	test -z "$(LIBDIR)" || $(MKDIR) "$(LIBDIR)"
+	test -z "$(INCDIR)" || $(MKDIR) "$(INCDIR)"
+	@list='$(BINFILES)'; for f in $$list; do\
+		if test -f $$f; then\
+			f1=`basename $$f`;\
+			echo "$(INSTALLBIN) $$f $(BINDIR)$$f1";\
+			$(INSTALLBIN) "$$f" "$(BINDIR)$$f1" || exit 1;\
+		else :; fi;\
+	done
+	@list='$(LIBFILES)'; for f in $$list; do\
+		if test -f $$f; then\
+			f1=`echo $$f | sed -e 's|lib/||g' -e 's|x86*/||g'`;\
+			base=`basename $$f1`;\
+			dir=`echo $$f1 | sed -e "s|$$base||g"`;\
+			test -z "$(LIBDIR)$$dir" || $(MKDIR) "$(LIBDIR)$$dir";\
+			echo "$(INSTALLBIN) $$f $(LIBDIR)$$f1";\
+			$(INSTALLBIN) "$$f" "$(LIBDIR)$$f1" || exit 1;\
+		else :; fi;\
+	done
+	@list='$(INCDIRS)'; for f in $$list; do\
+		if test -d $$f; then\
+			f1=`basename $$f`;\
+			echo "$(INSTALLDIR) $$f $(INCDIR)$$f1";\
+			$(INSTALLDIR) $$f $(INCDIR)$$f1 || exit 1;\
+		else :; fi;\
+	done
+	@list='$(INCFILES)'; for f in $$list; do\
+		if test -f $$f; then\
+			f1=`basename $$f`;\
+			echo "$(INSTALLDAT) $$f $(INCDIR)$$f1";\
+			$(INSTALLDAT) $$f $(INCDIR)$$f1 || exit 1;\
+		else :; fi;\
+	done
+
+install-examples:
+
+install-doc:
+



             reply	other threads:[~2011-02-23 14:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 14:48 Dane Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-23 14:54 [gentoo-commits] dev/c1pher:master commit in: dev-util/ati-stream-sdk/files/, dev-util/ati-stream-sdk/ Dane Smith
2011-02-23 15:58 Dane Smith
2011-02-23 16:02 Dane Smith
2011-02-23 16:34 Dane Smith
2011-02-23 17:52 Dane Smith
2011-02-23 18:05 Dane Smith
2011-02-23 18:21 Dane Smith
2011-02-23 18:46 Dane Smith
2011-02-24 15:03 Dane Smith
2011-02-24 15:09 Dane Smith
2011-02-24 15:15 Dane Smith
2011-02-24 15:27 Dane Smith
2011-02-24 15:48 Dane Smith
2011-02-24 15:58 Dane Smith
2011-02-24 16:43 Dane Smith
2011-02-24 19:12 Dane Smith
2011-02-24 19:24 Dane Smith
2011-02-24 19:46 Dane Smith
2011-02-24 19:50 Dane Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d9658e5df18e814af358393c5cf8cf5e720fa06.c1pher@gentoo \
    --to=c1pher@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox