From 50724c331e174c8d4823db8400d0fe8ead129667 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Tue, 3 Jan 2023 10:46:08 +0300 Subject: [PATCH] opencl-icd update and rebuild with hpp headers. --- x11/misc/opencl-icd/actions.py | 38 +++++---- x11/misc/opencl-icd/pspec.xml | 138 +++++++++++++++++++-------------- 2 files changed, 102 insertions(+), 74 deletions(-) mode change 100755 => 100644 x11/misc/opencl-icd/actions.py mode change 100755 => 100644 x11/misc/opencl-icd/pspec.xml diff --git a/x11/misc/opencl-icd/actions.py b/x11/misc/opencl-icd/actions.py old mode 100755 new mode 100644 index 8b5e07e816..5a91e483ed --- a/x11/misc/opencl-icd/actions.py +++ b/x11/misc/opencl-icd/actions.py @@ -1,31 +1,41 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # -# Copyright 2009 TUBITAK/UEKAE -# Licensed under the GNU General Public License, version 2. -# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt +from pisi.actionsapi import cmaketools from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get def setup(): - pisitools.insinto("/usr/include/CL", "OpenCL-Headers-2020.12.18/CL/*") - shelltools.export("CFLAGS", "-I%s/usr/include -O2") - shelltools.export("CXXFLAGS", "-I%s/usr/include -O2") - pisitools.cflags.add("-fcommon") - autotools.autoreconf("-vfi") + shelltools.export("CFLAGS", "-I%s/usr/include -O2") + shelltools.export("CXXFLAGS", "-I%s/usr/include -O2") + pisitools.cflags.add("-fcommon") + shelltools.system("./bootstrap") - autotools.configure() + autotools.configure() + + shelltools.cd("OpenCL-Headers-2021.06.30") + cmaketools.configure("-DCMAKE_BUILD_TYPE=Release") + + shelltools.cd("../OpenCL-CLHPP-2.0.15") + cmaketools.configure("-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF") def build(): - autotools.make() - + autotools.make() + def check(): - autotools.make("check") + autotools.make("check") def install(): - autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dodoc("NEWS") - pisitools.dodoc("COPYING","NEWS", "README") + shelltools.cd("OpenCL-Headers-2021.06.30") + cmaketools.install() + + shelltools.cd("../OpenCL-CLHPP-2.0.15") + cmaketools.install() diff --git a/x11/misc/opencl-icd/pspec.xml b/x11/misc/opencl-icd/pspec.xml old mode 100755 new mode 100644 index dc0f3b56bb..c40d2f299a --- a/x11/misc/opencl-icd/pspec.xml +++ b/x11/misc/opencl-icd/pspec.xml @@ -1,68 +1,86 @@ - - opencl-icd - https://github.com/OCL-dev/ocl-icd - - Mathias Freire - mathiasfreire45@gmail.com - - BSD-2-Clause - library - OpenCL ICD loader library - OpenCL is a royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices. - https://github.com/OCL-dev/ocl-icd/archive/v2.2.14.tar.gz - - https://github.com/KhronosGroup/OpenCL-Headers/archive/v2020.12.18.tar.gz - - ruby - - + + opencl-icd + https://github.com/OCL-dev/ocl-icd + + Mathias Freire + mathiasfreire45@gmail.com + + Apach-2 + BSD-2-Clause + library + OpenCL ICD loader library + OpenCL is a royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices. + + https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v2.3.1.tar.gz + + + https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v2.0.15.tar.gz + + + https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v2021.06.30.tar.gz + + + cmake + ruby + + python3 + + - - opencl-icd - - /usr/lib - /usr/share/man - /usr/share/doc - - + + opencl-icd + + /usr/lib + /usr/share/man + /usr/share/doc + + - - opencl-icd-32bit - emul32 - emul32 - - /usr/lib32 - - + + opencl-icd-32bit + emul32 + emul32 + + /usr/lib32 + + - - opencl-icd-devel - - opencl-icd - - - /usr/include - /usr/lib/pkgconfig - - + + opencl-icd-devel + + opencl-icd + + + /usr/include + /usr/lib/pkgconfig + /usr/share/cmake + + - - - 2021-01-28 - 2.2.14 - Version bump. - Mustafa Cinasal - muscnsl@gmail.com - - - 2019-11-15 - 2.2.12 - First Release - Idris Kalp - idriskalp@gmail.com - - + + + 2023-01-02 + 2.3.1 + Version bump. + fury + uglyside@yandex.ru + + + 2021-01-28 + 2.2.14 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + + + 2019-11-15 + 2.2.12 + First Release + Idris Kalp + idriskalp@gmail.com + +