summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-02-04 11:17:33 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-02-04 11:17:33 +0000
commitef66dc7ab9018d20714d113835b0d945c6ddee73 (patch)
tree7fa880be54391a4e4ce8c540a70570d6d31f19d5 /dev-util/intel-ocl-sdk
parentAdd revbump that installs OpenCL related libraries in place that doesn't crea... (diff)
downloadgentoo-2-ef66dc7ab9018d20714d113835b0d945c6ddee73.tar.gz
gentoo-2-ef66dc7ab9018d20714d113835b0d945c6ddee73.tar.bz2
gentoo-2-ef66dc7ab9018d20714d113835b0d945c6ddee73.zip
Initial import
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/intel-ocl-sdk')
-rw-r--r--dev-util/intel-ocl-sdk/ChangeLog10
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-1.5.ebuild62
-rw-r--r--dev-util/intel-ocl-sdk/metadata.xml8
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-util/intel-ocl-sdk/ChangeLog b/dev-util/intel-ocl-sdk/ChangeLog
new file mode 100644
index 000000000000..80acd1ab5a16
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/intel-ocl-sdk
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/ChangeLog,v 1.1 2012/02/04 11:17:33 xarthisius Exp $
+
+*intel-ocl-sdk-1.5 (04 Feb 2012)
+
+ 04 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org>
+ +intel-ocl-sdk-1.5.ebuild, +metadata.xml:
+ Initial import
+
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-1.5.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-1.5.ebuild
new file mode 100644
index 000000000000..3c97df5e1b66
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-1.5.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/intel-ocl-sdk-1.5.ebuild,v 1.1 2012/02/04 11:17:33 xarthisius Exp $
+
+EAPI=4
+
+MY_PN=${PN//-/_}
+MY_P=${MY_PN}_${PV}_x64
+
+inherit rpm multilib
+
+INTEL_CL=/usr/$(get_libdir)/OpenCL/vendors/intel/
+
+DESCRIPTION="Intel's implementation of the OpenCL standard optimized for Intel processors."
+HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/"
+SRC_URI="http://software.intel.com/file/38734/${MY_P}.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 -x86"
+
+#sys-devel/clang
+#dev-libs/boost:1.46
+RDEPEND="app-admin/eselect-opencl
+ dev-cpp/tbb
+ sys-process/numactl"
+DEPEND=""
+
+RESTRICT="mirror"
+QA_EXECSTACK="${INTEL_CL/\//}libcpu_device.so
+ ${INTEL_CL/\//}libOclCpuBackEnd.so
+ ${INTEL_CL/\//}libtask_executor.so"
+QA_PREBUILT="${INTEL_CL}*"
+
+S=${WORKDIR}
+
+src_unpack() {
+ default
+ rpm_unpack ./${MY_P}.rpm
+}
+
+src_prepare() {
+ cat <<- EOF > "${S}"/intelocl64.icd
+ ${INTEL_CL}/libintelocl.so
+ EOF
+}
+
+src_install() {
+ insinto /etc/OpenCL/vendors
+ doins intelocl64.icd
+ # things that are left out: llc, ioc
+ insinto ${INTEL_CL}
+ doins -r usr/include
+
+ insopts -m 755
+ doins usr/lib64/libOpenCL.so
+ pushd usr/lib64/OpenCL/vendors/intel &> /dev/null
+ rm -f libboost* libtbb*
+ doins *.so *rtl *pch
+ popd &> /dev/null
+}
diff --git a/dev-util/intel-ocl-sdk/metadata.xml b/dev-util/intel-ocl-sdk/metadata.xml
new file mode 100644
index 000000000000..6629da3fa528
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+</pkgmetadata>