void-packages/srcpkgs/armadillo/template
Piotr Wójcik f30ab5e473 armadillo: remove absolute paths from headers
It was #define ARMA_SUPERLU_INCLUDE_DIR /usr/arm-linux-gnueabihf/usr/include/
before. Absolute paths can't match usage of same package in both
cross and native environment at same time, let alone expansion of
'linux' macro. As all headers are installed into standard location,
relative path works.
Not suitable to upstream.
2020-07-27 19:50:23 +02:00

31 lines
918 B
Bash

# Template file for 'armadillo'
pkgname=armadillo
version=9.700.2
revision=3
build_style=cmake
configure_args="-DDETECT_HDF5=$(vopt_if hdf5 ON OFF)"
hostmakedepends="pkg-config openblas-devel"
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=923f2b48974f707c9da3176aab8d370e8003de23277c17ca0e49fdf97fac08bd
build_options="hdf5"
desc_option_hdf5="HDF5 support"
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
}
}