void-packages/srcpkgs/armadillo/template

33 lines
920 B
Bash

# Template file for 'armadillo'
pkgname=armadillo
version=9.900.2
revision=1
build_style=cmake
configure_args="-DDETECT_HDF5=$(vopt_if hdf5 ON OFF)"
hostmakedepends="pkg-config"
makedepends="openblas-devel superlu-devel $(vopt_if hdf5 hdf5-devel)"
short_desc="C++ linear algebra library"
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
license="Apache-2.0"
homepage="http://arma.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
checksum=d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05
build_options="hdf5"
desc_option_hdf5="HDF5 support"
# hd5 is nocross
if [ -z "$CROSS_BUILD" ]; then
build_options_default="hdf5"
fi
armadillo-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove /usr/share
vmove /usr/lib/pkgconfig
}
}