arpack-ng: update to 3.8.0.
Instead of using standard BLAS (package blas), use OpenBLAS (package openblas) if available for the target architecture. Right now the only package depending on arpack-ng is Octave and it uses OpenBLAS by default, so I see no reason to use the slower standard BLAS on platforms where OpenBLAS is available. Also move headers into the -devel package.
This commit is contained in:
parent
8122d8a0b1
commit
d1d08555e1
2 changed files with 20 additions and 1123 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,17 +1,31 @@
|
||||||
# Template file for 'arpack-ng'
|
# Template file for 'arpack-ng'
|
||||||
pkgname=arpack-ng
|
pkgname=arpack-ng
|
||||||
version=3.7.0
|
version=3.8.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake libtool gcc-fortran pkg-config"
|
hostmakedepends="automake libtool gcc-fortran pkg-config"
|
||||||
makedepends="lapack-devel eigen"
|
makedepends="eigen"
|
||||||
short_desc="Collection of Fortran77 subroutines"
|
short_desc="Collection of Fortran77 subroutines"
|
||||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/opencollab/arpack-ng"
|
homepage="https://github.com/opencollab/arpack-ng"
|
||||||
changelog="https://raw.githubusercontent.com/opencollab/arpack-ng/master/CHANGES"
|
changelog="https://raw.githubusercontent.com/opencollab/arpack-ng/master/CHANGES"
|
||||||
distfiles="https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz"
|
distfiles="https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz"
|
||||||
checksum=972e3fc3cd0b9d6b5a737c9bf6fd07515c0d6549319d4ffb06970e64fa3cc2d6
|
checksum=ada5aeb3878874383307239c9235b716a8a170c6d096a6625bfd529844df003d
|
||||||
|
|
||||||
|
# As of 2021-01-03 arpack-ng is only used by octave which includes openblas as
|
||||||
|
# its BLAS implementation. So if openblas is available for XBPS_TARGET_MACHINE,
|
||||||
|
# use it and if not fall back to regular blas.
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
# List of supported architectures copied from openblas.
|
||||||
|
armv[67]*|aarch64*|i686*|x86_64*|ppc64*)
|
||||||
|
makedepends+=" openblas-devel"
|
||||||
|
configure_args=" --with-blas=openblas --with-lapack=openblas"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
makedepends+=" blas-devel lapack-devel"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
@ -25,8 +39,9 @@ arpack-ng-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.a"
|
vmove usr/lib/cmake
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove usr/include/arpack
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue