summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2017-07-25 17:10:19 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-07-25 19:05:26 +0200
commit9de4b57c875ef8ac195fb41ecc263ec8058efbbd (patch)
tree3adc6eed1d2f455ab8c95f0e6de3d55b79f1eb78
parentb30f8d56700e32cabe1b79157a00f69d624736f5 (diff)
downloadhardware-9de4b57c875ef8ac195fb41ecc263ec8058efbbd.tar.gz
hardware-9de4b57c875ef8ac195fb41ecc263ec8058efbbd.tar.xz
opencl-headers: version bump to 2.2_p20170629
Change-Id: I09735163c4e76913c7a674a9ab43193de6d0ffc3 Reviewed-on: https://galileo.mailstation.de/gerrit/9630 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Timo Gurr <tgurr@exherbo.org>
-rw-r--r--packages/dev-libs/opencl-headers/opencl-headers-2.1-r2.exheres-033
-rw-r--r--packages/dev-libs/opencl-headers/opencl-headers-2.2_p20170629.exheres-039
2 files changed, 39 insertions, 33 deletions
diff --git a/packages/dev-libs/opencl-headers/opencl-headers-2.1-r2.exheres-0 b/packages/dev-libs/opencl-headers/opencl-headers-2.1-r2.exheres-0
deleted file mode 100644
index 72214e2..0000000
--- a/packages/dev-libs/opencl-headers/opencl-headers-2.1-r2.exheres-0
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2016 Wouter van Kesteren <woutershep@gmail.com>
-# Distributed under the terms of the GNU General Public License v2
-
-MY_DOWNLOADS=(
- opencl.h cl_platform.h cl.h cl_ext.h cl_egl.h cl_dx9_media_sharing.h
- cl_d3d10.h cl_d3d11.h cl_gl.h cl_gl_ext.h cl.hpp cl2.hpp
-)
-
-SUMMARY="Khronos's OpenCL headers"
-HOMEPAGE="https://www.khronos.org/registry/cl/"
-DOWNLOADS="$(
- for MY_DOWNLOAD in "${MY_DOWNLOADS[@]}"; do
- echo "${HOMEPAGE}/api/${PV}/${MY_DOWNLOAD} -> ${PNV}-${MY_DOWNLOAD}"
- done
-)"
-
-LICENCES="MIT"
-SLOT="0"
-PLATFORMS="~amd64"
-MYOPTIONS=""
-DEPENDENCIES="
- built-against:
- x11-dri/mesa [[ note = [ cl_egl.h includes EGL/egl.h ] ]]
-"
-
-WORK=${WORKBASE}
-
-src_install() {
- insinto /usr/$(exhost --target)/include/CL
- for MY_DOWNLOAD in "${MY_DOWNLOADS[@]}"; do
- newins "${FETCHEDDIR}/${PNV}-${MY_DOWNLOAD}" "${MY_DOWNLOAD}"
- done
-}
diff --git a/packages/dev-libs/opencl-headers/opencl-headers-2.2_p20170629.exheres-0 b/packages/dev-libs/opencl-headers/opencl-headers-2.2_p20170629.exheres-0
new file mode 100644
index 0000000..d96b4e3
--- /dev/null
+++ b/packages/dev-libs/opencl-headers/opencl-headers-2.2_p20170629.exheres-0
@@ -0,0 +1,39 @@
+# Copyright 2016 Wouter van Kesteren <woutershep@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+CL_HPP_VER=2.0.10
+OCL12_COMPAT=2.1
+
+require github [ user=KhronosGroup project=OpenCL-Headers tag=eb3d1cfd7202d5cd9078dfaf6f0fd0df8ba14b1e ]
+
+SUMMARY="Khronos's OpenCL (Open Computing Language) header files"
+HOMEPAGE="https://www.khronos.org/registry/cl"
+DOWNLOADS+="
+ https://github.com/KhronosGroup/OpenCL-CLHPP/releases/download/v${CL_HPP_VER}/cl2.hpp -> ${PNV}-cl2.hpp
+ ${HOMEPAGE}/api/${OCL12_COMPAT}/cl.hpp -> ${PNV}-cl.hpp
+"
+
+LICENCES="MIT"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+DEPENDENCIES="
+ built-against:
+ x11-dri/mesa [[ note = [ cl_egl.h includes EGL/egl.h ] ]]
+"
+
+src_install() {
+ insinto /usr/$(exhost --target)/include/CL
+ doins opencl$(ever delete_all $(ever range 1-2))/CL/*.h
+
+ # OpenCL C++ Bindings
+ newins "${FETCHEDDIR}"/${PNV}-cl2.hpp cl2.hpp
+
+ # OCL 1.2 compatibility
+ newins "${FETCHEDDIR}"/${PNV}-cl.hpp cl.hpp
+
+ # We're not interested in Direct3D things
+ edo rm "${IMAGE}"/usr/$(exhost --target)/include/CL/cl_{dx9_media_sharing{,_intel},d3d10,d3d11}.h
+}
+