openmp add to repo

This commit is contained in:
idriskalp
2020-01-23 19:38:49 +03:00
parent 67e2c7a5f7
commit eb950a9d61
3 changed files with 143 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
def setup():
shelltools.export("CC", "clang -fuse-ld=lld -rtlib=compiler-rt")
shelltools.export("CXX", "clang++ -fuse-ld=lld -rtlib=compiler-rt -stdlib=libc++")
options = "-DCMAKE_BUILD_TYPE=Release \
-DLIBOMP_ENABLE_ASSERTIONS=ON \
-DLIBOMP_ENABLE_SHARED=ON \
-DLIBOMP_USE_HIER_SCHED=ON \
"
if get.buildTYPE() == "emul32":
options = " -DOPENMP_LIBDIR_SUFFIX=32 \
"
else:
options = "-DOPENMP_LIBDIR_SUFFIX= \
"
cmaketools.configure(options)
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.remove("/usr/lib32/libgomp.so")
else:
pisitools.remove("/usr/lib/libgomp.so")
#pisitools.removeDir("/usr/share/gtk-doc")
pisitools.dodoc("CREDITS.txt", "LICENSE.txt", "README.rst")
+75
View File
@@ -0,0 +1,75 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>openmp</Name>
<Homepage>https://openmp.llvm.org/</Homepage>
<Packager>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<Summary>LLVM OpenMP runtime library</Summary>
<Description>openmp provides runtime for OpenMP by LLVM</Description>
<Archive sha1sum="b23687827cb69da01fb3ea1234b708ab604def22" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/openmp-9.0.1.src.tar.xz</Archive>
<BuildDependencies>
<Dependency>llvm</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>llvm-clang</Dependency>
<Dependency>lld</Dependency>
<Dependency>cmake</Dependency>
<Dependency>libc++-devel</Dependency>
<Dependency>libffi-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>openmp</Name>
<RuntimeDependencies>
<Dependency>llvm-libs</Dependency>
<Dependency>libc++</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>openmp-32bit</Name>
<Summary>openmp 32-bit libraries</Summary>
<PartOf>emul32</PartOf>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">openmp</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package>
<Name>openmp-devel</Name>
<Summary>Development files for openmp</Summary>
<RuntimeDependencies>
<Dependency release="current">openmp</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig/poppler.pc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-01-23</Date>
<Version>9.0.1</Version>
<Comment>First release</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>openmp</Name>
<Summary xml:lang="tr">LLVM OpenMP çalışma zamanı kitaplığı</Summary>
<Description xml:lang="tr">openmp, LLVM tarafından OpenMP çalışma zamanı kitaplıklarını içerir</Description>
</Source>
<Package>
<Name>openmp-32bit</Name>
<Summary xml:lang="tr">openmp 32-bit kitaplıkları</Summary>
</Package>
<Package>
<Name>openmp-devel</Name>
<Summary xml:lang="tr">openmp için geliştirme dosyaları</Summary>
</Package>
</PISI>