2017-05-07 12:33:24 +02:00
|
|
|
# Template file for 'armadillo'
|
|
|
|
pkgname=armadillo
|
2018-02-24 19:10:42 +01:00
|
|
|
version=8.400.0
|
2018-04-17 21:28:46 +02:00
|
|
|
revision=2
|
2017-05-07 12:33:24 +02:00
|
|
|
build_style=cmake
|
2017-08-01 11:31:41 +02:00
|
|
|
hostmakedepends="pkg-config openblas-devel"
|
2017-05-07 12:33:24 +02:00
|
|
|
makedepends="openblas-devel superlu-devel"
|
|
|
|
short_desc="C++ linear algebra library"
|
|
|
|
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://arma.sourceforge.net/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
|
2018-02-24 19:10:42 +01:00
|
|
|
checksum=5cb6bc2f457a9d6a0758cfb15c418d48289909daccd79d0e428452029285dd9b
|
2017-08-01 11:31:41 +02:00
|
|
|
|
|
|
|
# automatically link to openblas (so you just have to compile with
|
|
|
|
# "-larmadillo" instead of "-larmadillo -lopenblas")
|
|
|
|
configure_args="-DLAPACK_LIBRARY=/usr/lib/libopenblas.so"
|
|
|
|
|
|
|
|
build_options="hdf5"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="hdf5"
|
|
|
|
fi
|
|
|
|
makedepends+=" $(vopt_if hdf5 hdf5-devel)"
|
|
|
|
configure_args+=" $(vopt_if hdf5 -DDETECT_HDF5=ON)"
|
2017-05-07 12:33:24 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
armadillo-devel_package() {
|
|
|
|
depends="${makedepends}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove "/usr/share"
|
|
|
|
}
|
|
|
|
}
|