.
This commit is contained in:
@@ -4,19 +4,45 @@
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
|
||||
|
||||
def setup():
|
||||
shelltools.system("python ./configure.py --prefix=/usr")
|
||||
|
||||
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
shelltools.system("chmod +x clang32")
|
||||
options = "-DLLVM_CLANG='%s/%s-%s/clang32' \
|
||||
-DLLVM_CONFIG='/usr/bin/llvm-config-32' \
|
||||
" % (get.workDIR(), get.srcNAME(), get.srcVERSION())
|
||||
else:
|
||||
options = "-DLLVM_CLANG='/usr/bin/clang' \
|
||||
-DLLVM_CONFIG='/usr/bin/llvm-config' \
|
||||
"
|
||||
|
||||
cmaketools.configure(options)
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.domove("/usr/share/clc/", "%s" %libdir)
|
||||
pisitools.domove("/usr/share/pkgconfig/libclc.pc", "%s/pkgconfig" % libdir)
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
shelltools.system("sed -i 's/\/usr\/share/\/usr\/lib32/' %s/usr/lib32/pkgconfig/libclc.pc" % get.installDIR())
|
||||
else:
|
||||
shelltools.system("sed -i 's/\/usr\/share/\/usr\/lib/' %s/usr/lib/pkgconfig/libclc.pc" % get.installDIR())
|
||||
|
||||
#pisitools.removeDir("/usr/share/clc")
|
||||
pisitools.removeDir("/usr/share/pkgconfig")
|
||||
|
||||
pisitools.dodoc("LICENSE*", "README*")
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/clang -m32 $@
|
||||
@@ -12,12 +12,15 @@
|
||||
<IsA>library</IsA>
|
||||
<Summary>Library requirements of the OpenCL C programming language</Summary>
|
||||
<Description>Library requirements of the OpenCL C programming language</Description>
|
||||
<Archive sha1sum="a9574c191c68d85f419f66a45fc811da63460cea" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libclc-r375507.tar.xz</Archive>
|
||||
<Archive sha1sum="7bb5c4b2cd35f163a19fdf326231570e1abb1c90" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libclc-10.0.0_20200215.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>llvm</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
<Dependency>llvm-clang-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="clang32">clang32</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
@@ -30,7 +33,16 @@
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
|
||||
<Package>
|
||||
<Name>libclc-32bit</Name>
|
||||
<BuildType>emul32</BuildType>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libclc-devel</Name>
|
||||
<Summary>Development files for libclc</Summary>
|
||||
@@ -40,13 +52,14 @@
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="library">/usr/lib32/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-01-05</Date>
|
||||
<Version>9.0.1_375507</Version>
|
||||
<Date>2020-03-26</Date>
|
||||
<Version>10.0.0_20200215</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>İdris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
|
||||
Reference in New Issue
Block a user