mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
106 lines
2.5 KiB
Bash
106 lines
2.5 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-2019 Conrad Sanderson
|
|
2008-2016 National ICT Australia (NICTA)
|
|
2017-2019 Arroyo Consortium
|
|
2017-2019 Data61, CSIRO"
|
|
LICENSE="Apache v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://downloads.sourceforge.net/arma/armadillo-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="362541af7eb7f343bff893a3ac11fbb2c5cfc5966f0b6ed67f7f2779f5d256b4"
|
|
SOURCE_DIR="armadillo-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
armadillo9$secondaryArchSuffix = $portVersion
|
|
lib:libarmadillo$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libarpack$secondaryArchSuffix
|
|
lib:libhdf5$secondaryArchSuffix
|
|
lib:liblapack$secondaryArchSuffix
|
|
lib:libopenblas$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
armadillo9${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libarmadillo$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
armadillo9$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_devel="
|
|
armadillo${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libarpack$secondaryArchSuffix
|
|
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:sed
|
|
"
|
|
|
|
defineDebugInfoPackage armadillo9$secondaryArchSuffix \
|
|
"$libDir"/libarmadillo.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd "$_"
|
|
|
|
cmake .. \
|
|
-DDETECT_HDF5=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
$cmakeDirArgs
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
mkdir -p $libDir/cmake/
|
|
cp -r $dataDir/Armadillo/CMake/. $libDir/cmake/.
|
|
rm -rf $dataDir/Armadillo/
|
|
|
|
prepareInstalledDevelLib libarmadillo
|
|
|
|
sed -i "1i prefix=$prefix" \
|
|
$libDir/pkgconfig/armadillo.pc
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
#make test
|
|
# Armadillo provides no tests through cmake AFAIK
|
|
true
|
|
}
|