summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/gsl/APKBUILD29
1 files changed, 27 insertions, 2 deletions
diff --git a/user/gsl/APKBUILD b/user/gsl/APKBUILD
index 62b117d16..880ec5b70 100644
--- a/user/gsl/APKBUILD
+++ b/user/gsl/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gsl
pkgver=2.7.1
-pkgrel=0
+pkgrel=1
pkgdesc="Modern numerical library for C and C++"
url="https://www.gnu.org/software/gsl/gsl.html"
arch="all"
@@ -14,8 +14,33 @@ source="https://ftp.gnu.org/gnu/gsl/gsl-$pkgver.tar.gz
gsl-2.4-portable.patch
"
+prepare() {
+ default_prepare
+
+ case "$CTARGET_ARCH" in
+ pmmx) #763 (applies to this entire block)
+ override="multifit_nlinear multilarge_nlinear";
+ for k in $override; do
+ sed -i $k/Makefile.in \
+ -e '/^CFLAGS = /s/$/ -O0/g' \
+ ;
+ done
+ skipthis="spmatrix";
+ for k in $skipthis; do
+ sed -i $k/Makefile.in \
+ -e '/^TESTS = /d' \
+ ;
+ done
+ ;;
+ esac
+}
+
build() {
- [ $CTARGET_ARCH != "ppc" ] || export ac_cv_c_ieee_interface=unknown
+ case "$CTARGET_ARCH" in
+ ppc) export ac_cv_c_ieee_interface=unknown;
+ ;;
+ esac
+
./configure \
--build=$CBUILD \
--host=$CHOST \