From eb950a9d6125c9e93aae2fd9e0b76ed7a4b8aa7c Mon Sep 17 00:00:00 2001 From: idriskalp Date: Thu, 23 Jan 2020 19:38:49 +0300 Subject: [PATCH] openmp add to repo --- programming/misc/openmp/actions.py | 50 ++++++++++++++++ programming/misc/openmp/pspec.xml | 75 ++++++++++++++++++++++++ programming/misc/openmp/translations.xml | 18 ++++++ 3 files changed, 143 insertions(+) create mode 100644 programming/misc/openmp/actions.py create mode 100644 programming/misc/openmp/pspec.xml create mode 100644 programming/misc/openmp/translations.xml diff --git a/programming/misc/openmp/actions.py b/programming/misc/openmp/actions.py new file mode 100644 index 0000000000..7acdabd413 --- /dev/null +++ b/programming/misc/openmp/actions.py @@ -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") diff --git a/programming/misc/openmp/pspec.xml b/programming/misc/openmp/pspec.xml new file mode 100644 index 0000000000..6a687d5a17 --- /dev/null +++ b/programming/misc/openmp/pspec.xml @@ -0,0 +1,75 @@ + + + + + openmp + https://openmp.llvm.org/ + + Idris Kalp + idriskalp@gmail.com + + MIT + library + LLVM OpenMP runtime library + openmp provides runtime for OpenMP by LLVM + https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/openmp-9.0.1.src.tar.xz + + llvm + llvm-libs + llvm-clang + lld + cmake + libc++-devel + libffi-devel + + + + + openmp + + llvm-libs + libc++ + + + /usr/lib + /usr/share/doc + + + + + openmp-32bit + openmp 32-bit libraries + emul32 + emul32 + + openmp + + + /usr/lib32 + + + + + openmp-devel + Development files for openmp + + openmp + + + /usr/include + /usr/lib/pkgconfig + /usr/lib32/pkgconfig/poppler.pc + + + + + + + 2020-01-23 + 9.0.1 + First release + Idris Kalp + idriskalp@gmail.com + + + \ No newline at end of file diff --git a/programming/misc/openmp/translations.xml b/programming/misc/openmp/translations.xml new file mode 100644 index 0000000000..2fae14a7cd --- /dev/null +++ b/programming/misc/openmp/translations.xml @@ -0,0 +1,18 @@ + + + + openmp + LLVM OpenMP çalışma zamanı kitaplığı + openmp, LLVM tarafından OpenMP çalışma zamanı kitaplıklarını içerir + + + + openmp-32bit + openmp 32-bit kitaplıkları + + + + openmp-devel + openmp için geliştirme dosyaları + +