aboutsummaryrefslogtreecommitdiffstats
path: root/community/openblas
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-09-11 11:15:57 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-09-11 11:16:36 +0200
commit45b4814c26eb87bb25438a6d2e1490e53bac1eaa (patch)
tree1dfa8b07289ed3f1a4e5f3e8cc9c70c29dd0bdfc /community/openblas
parentc78ee4be2a6fd878bfd678a65798cfc1c0425ad8 (diff)
downloadaports-45b4814c26eb87bb25438a6d2e1490e53bac1eaa.tar.gz
aports-45b4814c26eb87bb25438a6d2e1490e53bac1eaa.tar.bz2
aports-45b4814c26eb87bb25438a6d2e1490e53bac1eaa.tar.xz
community/openblas: enable for aarch64 without -ilp64
https://github.com/xianyi/OpenBLAS/issues/956#issuecomment-246162047
Diffstat (limited to 'community/openblas')
-rw-r--r--community/openblas/APKBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/community/openblas/APKBUILD b/community/openblas/APKBUILD
index 62d39d596f..5d4e70d959 100644
--- a/community/openblas/APKBUILD
+++ b/community/openblas/APKBUILD
@@ -7,35 +7,34 @@ pkgver=0.2.19
pkgrel=0
pkgdesc="A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK"
url="http://www.openblas.net"
-arch="all !aarch64"
+arch="all"
license="BSD"
depends=""
depends_dev="gfortran"
makedepends="$depends_dev perl linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::http://github.com/xianyi/$_pkgname/archive/v$pkgver.tar.gz
- "
+source="$pkgname-$pkgver.tar.gz::http://github.com/xianyi/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+
_builddir64="$builddir-64"
+# ILP64 is not supported on aarch64 (https://github.com/xianyi/OpenBLAS/issues/956)
+_ilp64=false
+if [ "$CARCH" = "x86_64" ]; then
+ subpackages="$subpackages $pkgname-ilp64"
+ _ilp64=true
+fi
+
# USE_OPENMP=0: see GCC bug 60035
# NO_AFFINITY: don't expect to work on musl, also breaks R and not
# recommended for Julia
_flags="USE_OPENMP=0
NO_LAPACK=0
MAJOR_VERSION=3
- NO_AFFINITY=1
- "
+ NO_AFFINITY=1"
case "$CARCH" in
-x86_64 | aarch64)
- subpackages="$subpackages $pkgname-ilp64"
- _flags="$_flags NUM_THREADS=32" # match kernel's CONFIG_NR_CPUS
- _ilp64=true
-;;
-*)
- _flags="$_flags NUM_THREADS=8" # 32bit machines usually have less cores
- _ilp64=false
-;;
+*64) _flags="$_flags NUM_THREADS=32";; # match kernel's CONFIG_NR_CPUS
+*) _flags="$_flags NUM_THREADS=8";; # 32bit machines usually have less cores
esac
# DYNAMIC_ARCH is supported on x86* only, see https://github.com/xianyi/OpenBLAS/issues/709
@@ -91,7 +90,7 @@ package() {
ilp64() {
pkgdesc="$pkgdesc (ILP64)"
- arch="x86_64 aarch64"
+ arch="x86_64"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libopenblas64_* "$subpkgdir"/usr/lib/