mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
giac: update to 1.9.0.29.
Also: use openblas instead of lapack when available.
This commit is contained in:
parent
05c11c9e05
commit
dc692b9132
2 changed files with 28 additions and 24 deletions
|
@ -1,20 +0,0 @@
|
||||||
ANYARG patch
|
|
||||||
|
|
||||||
diff --git a/src/pari.cc b/src/pari.cc
|
|
||||||
index 76ce8e1..50d08ab 100644
|
|
||||||
--- a/src/pari.cc
|
|
||||||
+++ b/src/pari.cc
|
|
||||||
@@ -40,6 +40,13 @@ using namespace std;
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBPARI
|
|
||||||
|
|
||||||
+// Anyarg disappeared from PARI 2.15.0
|
|
||||||
+#ifdef __cplusplus
|
|
||||||
+# define ANYARG ...
|
|
||||||
+#else
|
|
||||||
+# define ANYARG
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#ifdef HAVE_PTHREAD_H
|
|
||||||
#include <pthread.h>
|
|
||||||
#endif
|
|
|
@ -1,11 +1,13 @@
|
||||||
# Template file for 'giac'
|
# Template file for 'giac'
|
||||||
pkgname=giac
|
pkgname=giac
|
||||||
version=1.9.0.27
|
version=1.9.0.29
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-micropy --disable-quickjs"
|
configure_args="--disable-micropy --disable-quickjs"
|
||||||
makedepends="fltk-devel gmp-devel gsl-devel lapack-devel
|
hostmakedepends="automake gettext-devel libtool pkg-config"
|
||||||
libjpeg-turbo-devel libpng-devel readline-devel mpfr-devel pari-devel"
|
makedepends="fltk-devel gmp-devel gsl-devel libjpeg-turbo-devel
|
||||||
|
libpng-devel readline-devel mpfr-devel pari-devel
|
||||||
|
$(vopt_if openblas 'openblas-devel' 'lapack-devel')"
|
||||||
depends="desktop-file-utils hicolor-icon-theme"
|
depends="desktop-file-utils hicolor-icon-theme"
|
||||||
short_desc="Free computer algebra system"
|
short_desc="Free computer algebra system"
|
||||||
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||||
|
@ -13,11 +15,33 @@ license="GPL-3.0-or-later"
|
||||||
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
|
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
|
||||||
changelog="https://www-fourier.ujf-grenoble.fr/~parisse/install_en#new"
|
changelog="https://www-fourier.ujf-grenoble.fr/~parisse/install_en#new"
|
||||||
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
|
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
|
||||||
checksum=c5d222fbff5db2a0a560b4e106ce88dd13d109ecb21570a939b8b3b87521d5e0
|
checksum=f6351572cad5f2331faab9a7ca6678bc869695a6c5f69a42baaed50e56790b0e
|
||||||
|
|
||||||
# need more than 4*65536 stack, see try_parse() in gen.cc line 11812
|
# need more than 4*65536 stack, see try_parse() in gen.cc line 11812
|
||||||
LDFLAGS="-Wl,-z,stack-size=2097152"
|
LDFLAGS="-Wl,-z,stack-size=2097152"
|
||||||
|
|
||||||
|
build_options="openblas"
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64*|i686*|aarch64*|armv[67]*|ppc64*)
|
||||||
|
# Prefer accelerated routines where available
|
||||||
|
build_options_default="openblas"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
if [ "$build_option_openblas" ]; then
|
||||||
|
export BLAS_LIBS=-lopenblas
|
||||||
|
export BLAS_CFLAGS=-I/usr/include/openblas
|
||||||
|
export LAPACK_LIBS=-lopenblas
|
||||||
|
export LAPACK_CFLAGS=-I/usr/include/openblas
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
# remove a binary that works only for x86_64 host
|
# remove a binary that works only for x86_64 host
|
||||||
# the binary will be rebuilt using host compiler
|
# the binary will be rebuilt using host compiler
|
||||||
|
|
Loading…
Add table
Reference in a new issue