aboutsummaryrefslogtreecommitdiffstats
path: root/community/suitesparse/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/suitesparse/APKBUILD')
-rw-r--r--community/suitesparse/APKBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/community/suitesparse/APKBUILD b/community/suitesparse/APKBUILD
index 00fbc2afb9..9e697ffc98 100644
--- a/community/suitesparse/APKBUILD
+++ b/community/suitesparse/APKBUILD
@@ -6,10 +6,9 @@ pkgver=5.6.0
pkgrel=2
pkgdesc="A collection of sparse matrix libraries"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
-# mips64 blocked by openblas
-arch="all !mips64"
+arch="all"
license="GPL-3.0-only"
-depends_dev="openblas-dev lapack-dev"
+depends_dev="lapack-dev"
makedepends="$depends_dev cmake m4"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v$pkgver.tar.gz
@@ -18,6 +17,16 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/DrTimothyAldenDavis/SuiteSpa
"
builddir="$srcdir/$_pkgname-$pkgver"
+case "$CARCH" in
+ mips*)
+ makedepends="$makedepends blas-dev"
+ _blas='BLAS=-lblas'
+ ;;
+ *)
+ makedepends="$makedepends openblas-dev"
+ ;;
+esac
+
prepare() {
# Do not include the Partition module and METIS (it's optional and
# Julia doesn't need it).
@@ -28,15 +37,13 @@ prepare() {
}
build() {
- #BLAS=-lblas
- make library \
+ make library $_blas \
CMAKE_OPTIONS="-DCMAKE_INSTALL_LIBDIR=$pkgdir/usr/lib \
-DCMAKE_INSTALL_INCLUDEDIR=$pkgdir/usr/include"
}
package() {
- #BLAS=-lblas \
- make install \
+ make install $_blas \
INSTALL="$pkgdir"/usr \
INSTALL_INCLUDE="$pkgdir"/usr/include/"$pkgname" \
INSTALL_DOC="$pkgdir"/usr/share/doc/"$pkgname" \