43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'armadillo'
|
|
pkgname=armadillo
|
|
version=14.0.2
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DOPENBLAS_PROVIDES_LAPACK=true
|
|
-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="https://arma.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
|
|
checksum=248e2535fc092add6cb7dea94fc86ae1c463bda39e46fd82d2a7165c1c197dff
|
|
|
|
build_options="hdf5"
|
|
desc_option_hdf5="HDF5 support"
|
|
|
|
# hdf5 is nocross
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="hdf5"
|
|
fi
|
|
|
|
post_install() {
|
|
# Strip cross prefix from default header paths in config.hpp
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -e "s@${XBPS_CROSS_BASE}/@/@" \
|
|
-i "${DESTDIR}/usr/include/armadillo_bits/config.hpp"
|
|
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
|
|
}
|
|
}
|