aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-08-30 18:24:38 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-31 18:25:39 +0000
commita269918b65bac5dff8e3dfe571c86468e42a9470 (patch)
tree568f42234e4eaf903319ac866adacf23154de64e
parent789bca0028bf8ecf72d8cbcd20bec19d8bcba476 (diff)
downloadaports-a269918b65bac5dff8e3dfe571c86468e42a9470.tar.gz
aports-a269918b65bac5dff8e3dfe571c86468e42a9470.tar.bz2
aports-a269918b65bac5dff8e3dfe571c86468e42a9470.tar.xz
testing/openmp: new aport
https://openmp.llvm.org LLVM OpenMP Runtime Library Fixes #11193
-rw-r--r--testing/openmp/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/openmp/APKBUILD b/testing/openmp/APKBUILD
new file mode 100644
index 0000000000..d0d3378ce0
--- /dev/null
+++ b/testing/openmp/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=openmp
+pkgver=10.0.1
+pkgrel=0
+pkgdesc="LLVM OpenMP Runtime Library"
+options="!check" # Missing llvm-lit
+url="https://openmp.llvm.org"
+arch="all !s390x" # LIBOMP_ARCH = UnknownArchitecture
+license="Apache-2.0"
+makedepends="cmake perl elfutils-dev libffi-dev"
+subpackages="$pkgname-dev"
+source="https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/openmp-$pkgver.src.tar.xz"
+builddir="$srcdir/$pkgname-$pkgver.src"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBOMP_INSTALL_ALIASES=OFF \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ $CMAKE_CROSSOPTS
+ make -C build
+
+}
+
+package() {
+ DESTDIR="$pkgdir" make -C build install
+ rm -f "$pkgdir"/usr/lib/libarcher_static.a
+}
+
+sha512sums="5b6f6487feaabd2a18ef2bbb1a5f86bb567e264f9fdf56805cfdd3f65f36f21e7c1392ba5170fafb52a395fc1606b277233beba3df31dc2ab825ef8924e7a05a openmp-10.0.1.src.tar.xz"