opencl-icd update and rebuild with hpp headers.

This commit is contained in:
4fury-c3440d8
2023-01-03 10:46:08 +03:00
parent 955f21a761
commit 50724c331e
2 changed files with 102 additions and 74 deletions
Executable → Regular
+23 -13
View File
@@ -1,31 +1,41 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright 2009 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 3.
# Licensed under the GNU General Public License, version 2. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import autotools from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import get from pisi.actionsapi import get
def setup(): def setup():
pisitools.insinto("/usr/include/CL", "OpenCL-Headers-2020.12.18/CL/*") shelltools.export("CFLAGS", "-I%s/usr/include -O2")
shelltools.export("CFLAGS", "-I%s/usr/include -O2") shelltools.export("CXXFLAGS", "-I%s/usr/include -O2")
shelltools.export("CXXFLAGS", "-I%s/usr/include -O2") pisitools.cflags.add("-fcommon")
pisitools.cflags.add("-fcommon") shelltools.system("./bootstrap")
autotools.autoreconf("-vfi")
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(): def build():
autotools.make() autotools.make()
def check(): def check():
autotools.make("check") autotools.make("check")
def install(): 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()
Executable → Regular
+78 -60
View File
@@ -1,68 +1,86 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd"> <!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI> <PISI>
<Source> <Source>
<Name>opencl-icd</Name> <Name>opencl-icd</Name>
<Homepage>https://github.com/OCL-dev/ocl-icd</Homepage> <Homepage>https://github.com/OCL-dev/ocl-icd</Homepage>
<Packager> <Packager>
<Name>Mathias Freire</Name> <Name>Mathias Freire</Name>
<Email>mathiasfreire45@gmail.com</Email> <Email>mathiasfreire45@gmail.com</Email>
</Packager> </Packager>
<License>BSD-2-Clause</License> <License>Apach-2</License>
<IsA>library</IsA> <License>BSD-2-Clause</License>
<Summary>OpenCL ICD loader library</Summary> <IsA>library</IsA>
<Description>OpenCL is a royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices.</Description> <Summary>OpenCL ICD loader library</Summary>
<Archive sha1sum="30c8817d54582d3cc26dd4fa0a0c1d408847de05" type="targz">https://github.com/OCL-dev/ocl-icd/archive/v2.2.14.tar.gz</Archive> <Description>OpenCL is a royalty-free standard for cross-platform, parallel programming of modern processors found in personal computers, servers and handheld/embedded devices.</Description>
<!-- <Archive sha1sum="67aaa4264084ae0551f1f3045998e78b217ee37d" type="tarxz" target="ocl-icd-2.2.14">https://sourceforge.net/projects/pisilinux/files/source/OpenCL-Headers-2.1.tar.xz</Archive> --> <Archive sha1sum="2466775f66ad1febda29615f6701411cc48e4efe" type="targz">
<Archive sha1sum="11bb1a594bec203b78184d934257e91c9e68084a" type="targz" target="ocl-icd-2.2.14">https://github.com/KhronosGroup/OpenCL-Headers/archive/v2020.12.18.tar.gz</Archive> https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v2.3.1.tar.gz
<BuildDependencies> </Archive>
<Dependency>ruby</Dependency> <Archive sha1sum="d1b8b405eda94e6166a31ba91ab8b0a759e12a99" type="targz" target="ocl-icd-2.3.1">
</BuildDependencies> https://github.com/KhronosGroup/OpenCL-CLHPP/archive/refs/tags/v2.0.15.tar.gz
</Source> </Archive>
<Archive sha1sum="66226403b631dc3c320d761a5a0e2c36ef5304f5" type="targz" target="ocl-icd-2.3.1">
https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v2021.06.30.tar.gz
</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>ruby</Dependency>
<!-- <Dependency>doxygen</Dependency> -->
<Dependency>python3</Dependency>
</BuildDependencies>
</Source>
<Package> <Package>
<Name>opencl-icd</Name> <Name>opencl-icd</Name>
<Files> <Files>
<Path fileType="library">/usr/lib</Path> <Path fileType="library">/usr/lib</Path>
<Path fileType="man">/usr/share/man</Path> <Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path> <Path fileType="doc">/usr/share/doc</Path>
</Files> </Files>
</Package> </Package>
<Package> <Package>
<Name>opencl-icd-32bit</Name> <Name>opencl-icd-32bit</Name>
<BuildType>emul32</BuildType> <BuildType>emul32</BuildType>
<PartOf>emul32</PartOf> <PartOf>emul32</PartOf>
<Files> <Files>
<Path fileType="library">/usr/lib32</Path> <Path fileType="library">/usr/lib32</Path>
</Files> </Files>
</Package> </Package>
<Package> <Package>
<Name>opencl-icd-devel</Name> <Name>opencl-icd-devel</Name>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency release="current">opencl-icd</Dependency> <Dependency release="current">opencl-icd</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="header">/usr/include</Path> <Path fileType="header">/usr/include</Path>
<Path fileType="config">/usr/lib/pkgconfig</Path> <Path fileType="data">/usr/lib/pkgconfig</Path>
</Files> <Path fileType="data">/usr/share/cmake</Path>
</Package> </Files>
</Package>
<History> <History>
<Update release="2"> <Update release="3">
<Date>2021-01-28</Date> <Date>2023-01-02</Date>
<Version>2.2.14</Version> <Version>2.3.1</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name> <Name>fury</Name>
<Email>muscnsl@gmail.com</Email> <Email>uglyside@yandex.ru</Email>
</Update> </Update>
<Update release="1"> <Update release="2">
<Date>2019-11-15</Date> <Date>2021-01-28</Date>
<Version>2.2.12</Version> <Version>2.2.14</Version>
<Comment>First Release</Comment> <Comment>Version bump.</Comment>
<Name>Idris Kalp</Name> <Name>Mustafa Cinasal</Name>
<Email>idriskalp@gmail.com</Email> <Email>muscnsl@gmail.com</Email>
</Update> </Update>
</History> <Update release="1">
<Date>2019-11-15</Date>
<Version>2.2.12</Version>
<Comment>First Release</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
</History>
</PISI> </PISI>