mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
armadillo: new recipe (#1303)
This commit is contained in:
92
sci-libs/armadillo/armadillo-7.800.2.recipe
Normal file
92
sci-libs/armadillo/armadillo-7.800.2.recipe
Normal file
@@ -0,0 +1,92 @@
|
||||
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-2016 Conrad Sanderson
|
||||
2008-2016 National ICT Australia (NICTA)"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/arma/files/armadillo-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="efd70600ab6f30449d90a3e58ff7499937985209bb0a03ce4e322474dbf11fe3"
|
||||
|
||||
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 \
|
||||
-DINSTALL_INCLUDE_DIR=$includeDir \
|
||||
-DINSTALL_DATA_DIR=$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
|
||||
}
|
||||
Reference in New Issue
Block a user