aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2018-05-28 03:22:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-04 05:33:23 +0000
commit3a1104ba09d75ffbc849cccf59ee1a619e04cde6 (patch)
treed7e360b5a135baf02594e57025d6c79db72d4837 /community
parent1f7dc26742f12f6bc08e86c39551b0a3c0d27252 (diff)
downloadaports-3a1104ba09d75ffbc849cccf59ee1a619e04cde6.tar.bz2
aports-3a1104ba09d75ffbc849cccf59ee1a619e04cde6.tar.xz
community/openblas: upgrade to 0.3.0, enable s390x
Diffstat (limited to 'community')
-rw-r--r--community/openblas/APKBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/community/openblas/APKBUILD b/community/openblas/APKBUILD
index 5168717d3b..0258a880b2 100644
--- a/community/openblas/APKBUILD
+++ b/community/openblas/APKBUILD
@@ -3,12 +3,11 @@
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=openblas
_pkgname=OpenBLAS
-pkgver=0.2.19
-pkgrel=3
+pkgver=0.3.0
+pkgrel=0
pkgdesc="A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK"
url="http://www.openblas.net"
-# does not build yet on s390x
-arch="all !s390x"
+arch="all"
license="BSD"
depends=""
depends_dev="gfortran"
@@ -35,17 +34,18 @@ _flags="USE_OPENMP=0
NO_AFFINITY=1"
case "$CARCH" in
ppc64le) _flags="$_flags NUM_THREADS=64";; # POWER machines are big
-*64) _flags="$_flags NUM_THREADS=32";; # match kernel's CONFIG_NR_CPUS
+*64|s390x) _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
+[ "${CARCH%%_64*}" = "x86" ] && _flags="$_flags DYNAMIC_ARCH=1" || _flags="$_flags DYNAMIC_ARCH=0"
case "$CARCH" in
-x86*) _flags="$_flags TARGET=core2 DYNAMIC_ARCH=1";;
-armhf) _flags="$_flags TARGET=ARMV7 DYNAMIC_ARCH=0";;
-aarch64) _flags="$_flags TARGET=ARMV8 DYNAMIC_ARCH=0";;
-ppc64le) _flags="$_flags TARGET=POWER8 DYNAMIC_ARCH=0";;
-*) _flags="$_flags DYNAMIC_ARCH=0";;
+x86*) _flags="$_flags TARGET=core2";;
+armhf) _flags="$_flags TARGET=ARMV7";;
+aarch64) _flags="$_flags TARGET=ARMV8";;
+ppc64le) _flags="$_flags TARGET=POWER8";;
+s390x) _flags="$_flags TARGET=ZARCH_GENERIC";;
esac
# Flags for ILP64 variant.
@@ -103,4 +103,4 @@ ilp64() {
mv "$pkgdir"/usr/lib/libopenblas64_* "$subpkgdir"/usr/lib/
}
-sha512sums="7081a8540b8037c0d4d6db0ec4b51277856c0e0f4e2575671984e5deb3482102da8936c43691087c8475d67070f89ac6925e4867ead60802aa2a29e8517e7495 openblas-0.2.19.tar.gz"
+sha512sums="6a982d2adc13febc162d5c0077cedc116c771409ee1dbb651da6a073e5f6a439e1d0eba0349b3b2e506b274d3014adbf48fc96625ed942a61a54a0c936576b89 openblas-0.3.0.tar.gz"