Files
haikuports/sci-libs/armadillo/armadillo-8.200.1.recipe
2017-10-22 11:22:08 +02:00

95 lines
2.2 KiB
Bash

SUMMARY="A C++ linear algebra library"
DESCRIPTION="The library provides efficient classes for vectors, matrices and \
cubes, as well as 200+ associated functions (eg. contiguous and non-contiguous \
submatrix views). Various matrix decompositions are provided through \
integration with LAPACK, or one of its high performance drop-in replacements."
HOMEPAGE="http://arma.sourceforge.net/"
COPYRIGHT="2008-2017 Conrad Sanderson
2008-2016 National ICT Australia (NICTA)
2017 Arroyo Consortium
2017 Data61, CSIRO"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/arma/files/armadillo-$portVersion.tar.xz"
CHECKSUM_SHA256="9d041975db0e92c4be019a70e961bcbb78f7167c7d36ef432d940f9c54949110"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
PROVIDES="
armadillo$secondaryArchSuffix = $portVersion
lib:libarmadillo$secondaryArchSuffix = $portVersion compat >= 7.800.2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libhdf5$secondaryArchSuffix
lib:liblapack$secondaryArchSuffix
lib:libopenblas$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
armadillo${secondaryArchSuffix}_devel = $portVersion
devel:libarmadillo$secondaryArchSuffix = $portVersion compat >= 7.800.2
"
REQUIRES_devel="
armadillo$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libhdf5$secondaryArchSuffix
devel:liblapack$secondaryArchSuffix
devel:libopenblas$secondaryArchSuffix
devel:libsuperlu$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:strip$secondaryArchSuffix
"
BUILD()
{
mkdir -p build && cd "$_"
cmake .. \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DDETECT_HDF5=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
-DCMAKE_INSTALL_DATADIR=$libDir
make $jobArgs
}
INSTALL()
{
cd build
make install
strip $libDir/lib*
mkdir -p $libDir/cmake/
cp -r $libDir/Armadillo/CMake/. $libDir/cmake/.
rm -rf $libDir/Armadillo/
prepareInstalledDevelLib libarmadillo
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
#make test
# Armadillo provides no tests through cmake AFAIK
true
}