summaryrefslogtreecommitdiff
path: root/dev-util/intel-ocl-sdk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/intel-ocl-sdk
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/intel-ocl-sdk')
-rw-r--r--dev-util/intel-ocl-sdk/Manifest5
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild70
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild82
-rw-r--r--dev-util/intel-ocl-sdk/metadata.xml15
4 files changed, 172 insertions, 0 deletions
diff --git a/dev-util/intel-ocl-sdk/Manifest b/dev-util/intel-ocl-sdk/Manifest
new file mode 100644
index 000000000000..ab0a4210ca1f
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/Manifest
@@ -0,0 +1,5 @@
+DIST intel_sdk_for_ocl_applications_2012_x64.tgz 28302946 BLAKE2B 991fe387c3bb0ce572db9bb6856141eedf8e3ba1b1d6f50e5ef9166047d610bbef49e72e44618d3761dc5cb828537a14dc7b66256968943238808a620a8533ef SHA512 6974dd67d8292400f1d0c80fd137f39290fe7dcab5146b9f0613ae48484f84e1b523f710dcc07c8600919ce01ab2dd91ab0e2d693e3723ffa9a744fcc52151dd
+DIST intel_sdk_for_ocl_applications_2014_ubuntu_4.4.0.117_x64.tgz 105808431 BLAKE2B 58b9bdf1979c070757beff7abaa2b16d43993e7dd4aeda05843facd556f25f3c695a6b2de4745890ce6b7b1a5cee1113b62ffae4059aad49a462d28d6d3461c3 SHA512 c0f65bf4d9b894f11076995744d32aef983e01b40472028e411c7be6b9117ef8b260b9abe46d6e936333aca525f98f81aaca2ab3e093ccefb09f525a3646d7e9
+EBUILD intel-ocl-sdk-2.0.31360.ebuild 1444 BLAKE2B 840ce46bd4e9cf54e91a58e2f4385ec7940fa62991342969970431f0d7cb015bb8f08eaebf2e8f96ab996fa544113f4cf2e9b60952a3732870221cbf8dd5362f SHA512 a5c5875f45bc572131cf9b6b4fa0b5f819fac2795a60a8ebcf459c0735337752f7ed367efabbe7a95b7744b97a8766c03bbdcd7a813c6a8d9b6d491bbf3ea36d
+EBUILD intel-ocl-sdk-4.4.0.117-r1.ebuild 2189 BLAKE2B 5be44e0d2491f98cb8cf4aae5b07a9976ad5c2d1b4d650f3a76184e51480ee5c18a7bba2b919f9f6d812e358245c73aa95b3ec377ac831b871f594679486c432 SHA512 695252305d781e6b61250096a8e84fc04a82d154472b90571d3a3609a64219825bd0a7723afbe6929342825f397099a82a571f68758ec0d0d6432312ea9d648d
+MISC metadata.xml 670 BLAKE2B c3c011abaeab5730cfdc09bc89715eed709910246767fbe5b3c406189911e85ce4f2870740be95f6d1ecb9a0a3d9abeb932774de05742d275c77f1634c1754e9 SHA512 2ef3994dd0dc9ce67b02ea1d5bf5326a8dcbbe21c6a6c452376551cb803825c4cbb721b226c128bfb758b5fb6faf1d04f25c2be2929961888244f861543a78f6
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild
new file mode 100644
index 000000000000..fdf2132e3533
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_P=${PN//-/_}_2012_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://registrationcenter.intel.com/irc_nas/2563/intel_sdk_for_ocl_applications_2012_x64.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="tools"
+KEYWORDS="amd64 -x86"
+
+RDEPEND="app-eselect/eselect-opencl
+ dev-cpp/tbb
+ sys-process/numactl
+ tools? (
+ sys-devel/llvm
+ >=virtual/jre-1.6
+ )"
+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() {
+ # Remove unnecessary and bundled stuff
+ rm -rf ${INTEL_CL}/{docs,version.txt,llc}
+ rm -f ${INTEL_CL}/libboost*.so
+ rm -f ${INTEL_CL}/libtbb*
+ if ! use tools; then
+ rm -rf usr/bin
+ rm -f ${INTEL_CL}/{ioc64,ioc.jar}
+ rm -f ${INTEL_CL}/libboost*
+ fi
+}
+
+src_install() {
+ doins -r etc
+
+ insinto ${INTEL_CL}
+ doins -r usr/include
+
+ insopts -m 755
+ newins usr/$(get_libdir)/libOpenCL.so libOpenCL.so.1
+ dosym libOpenCL.so.1 ${INTEL_CL}/libOpenCL.so
+
+ doins ${INTEL_CL}/*
+}
+
+pkg_postinst() {
+ eselect opencl set --use-old intel
+}
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild
new file mode 100644
index 000000000000..9310497d34a5
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit rpm multilib
+
+DESCRIPTION="Intel's implementation of the OpenCL standard"
+HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/"
+SRC_URI="http://registrationcenter.intel.com/irc_nas/4181/intel_sdk_for_ocl_applications_2014_ubuntu_${PV}_x64.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="android +system-tbb system-clang +system-boost"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror"
+
+RDEPEND="app-eselect/eselect-opencl
+ sys-process/numactl
+ system-tbb? ( >=dev-cpp/tbb-4.2.20131118 )
+ system-clang? ( =sys-devel/clang-3.4* )
+ system-boost? ( >=dev-libs/boost-1.52.0:= )
+"
+DEPEND=""
+
+S=${WORKDIR}/intel_sdk_for_ocl_applications_2014_ubuntu_${PV}_x64/
+INTEL_CL=opt/intel/opencl-1.2-${PV}
+INTEL_VENDOR_DIR=usr/$(get_libdir)/OpenCL/vendors/intel/
+
+QA_PREBUILT="${INTEL_OCL}/*"
+
+src_unpack() {
+ default
+
+ PKGS="base devel intel-cpu intel-devel"
+
+ use android && PKGS="$PKGS intel-devel-android"
+
+ for PKG in ${PKGS}; do
+ FILENAME="opencl-1.2-${PKG}-4.4.0.117-1.x86_64.deb"
+ einfo "Extracting \"${FILENAME}\"..."
+ ar x "${S}/$FILENAME" || die
+ unpack ./data.tar.gz
+ done
+}
+
+src_prepare() {
+ # Remove bundled stuff
+ if use system-boost; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libboost*.so*
+ fi
+ if use system-clang; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libclang*
+ fi
+ if use system-tbb; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libtbb*
+ fi
+}
+
+src_install() {
+ insinto /etc/OpenCL/vendors/
+ doins "${WORKDIR}/${INTEL_CL}"/etc/intel64.icd
+
+ insinto /"${INTEL_CL}"/lib64
+ insopts -m 755
+ doins "${WORKDIR}/${INTEL_CL}"/lib64/*
+
+ insinto /"${INTEL_CL}"/bin
+ doins "${WORKDIR}"/"${INTEL_CL}"/bin/*
+
+ # TODO put this somewhere
+ # doins ${INTEL_CL}/eclipse-plug-in/OpenCL_SDK_0.1.0.jar
+
+ dodir "${INTEL_VENDOR_DIR}"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so" "${INTEL_VENDOR_DIR}/libOpenCL.so"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1" "${INTEL_VENDOR_DIR}/libOpenCL.so.1"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1.2" "${INTEL_VENDOR_DIR}/libOpenCL.so.1.2"
+}
+
+pkg_postinst() {
+ eselect opencl set --use-old intel
+}
diff --git a/dev-util/intel-ocl-sdk/metadata.xml b/dev-util/intel-ocl-sdk/metadata.xml
new file mode 100644
index 000000000000..2b3e89f60bca
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <use>
+ <flag name="android">Install android related files</flag>
+ <flag name="tools">Install Intel Offline Compiler</flag>
+ <flag name="system-boost">Use system boost (dev-libs/boost) instead of bundled one</flag>
+ <flag name="system-clang">Use system clang (sys-devel/clang) instead of bundled one</flag>
+ <flag name="system-tbb">Use system Thread Building Blocks (dev-cpp/tbb) instead of bundled one</flag>
+ </use>
+</pkgmetadata>