void-packages/srcpkgs/armadillo/template

38 lines
1 KiB
Bash
Raw Normal View History

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