void-packages/srcpkgs/armadillo/template
maxice8 6b21056ec7 armadillo: update to 8.300.2.
Closes: #9994 [via git-merge-pr]
2017-12-22 09:40:08 +01:00

38 lines
1 KiB
Bash

# Template file for 'armadillo'
pkgname=armadillo
version=8.300.2
revision=1
build_style=cmake
hostmakedepends="pkg-config openblas-devel"
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"
checksum=b41886f4b4ec8eab2b97088834974e5479f2e2075e01859832d6516db77e655f
# 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)"
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"
}
}