From 644b6ab65b72cadccd511b81bedc33a242104c80 Mon Sep 17 00:00:00 2001 From: miqlas Date: Thu, 27 Apr 2017 07:49:39 +0200 Subject: [PATCH] armadillo: new recipe (#1303) --- sci-libs/armadillo/armadillo-7.800.2.recipe | 92 +++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 sci-libs/armadillo/armadillo-7.800.2.recipe diff --git a/sci-libs/armadillo/armadillo-7.800.2.recipe b/sci-libs/armadillo/armadillo-7.800.2.recipe new file mode 100644 index 000000000..581c3d343 --- /dev/null +++ b/sci-libs/armadillo/armadillo-7.800.2.recipe @@ -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 +}