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
+24 -14
View File
@@ -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()