mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
armadillo, bump to 15.0.3, cleanup old ones (#13014)
This commit is contained in:
@@ -11,7 +11,7 @@ COPYRIGHT="2008-2020 Conrad Sanderson
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/arma/armadillo-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="81f9d5f86276746a016c84d52baf421cfc35bbad682a2b9beff6f9bafd0a7675"
|
||||
CHECKSUM_SHA256="9f55ec10f0a91fb6479ab4ed2b37a52445aee917706a238d170b5220c022fe43"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -1,113 +0,0 @@
|
||||
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-2020 Conrad Sanderson
|
||||
2008-2016 National ICT Australia (NICTA)
|
||||
2017-2020 Arroyo Consortium
|
||||
2017-2020 Data61, CSIRO"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/arma/armadillo-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="89fdd898bf6bff75f6efc3a301817e4ede752b9a80927fb07ee358b13e353922"
|
||||
SOURCE_DIR="armadillo-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
armadillo10$secondaryArchSuffix = $portVersion
|
||||
lib:libarmadillo$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libarpack$secondaryArchSuffix
|
||||
lib:libhdf5$secondaryArchSuffix
|
||||
lib:liblapack$secondaryArchSuffix
|
||||
lib:libopenblas$secondaryArchSuffix
|
||||
lib:libsuperlu$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
armadillo10${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libarmadillo$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
armadillo10$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 armadillo10$secondaryArchSuffix \
|
||||
"$libDir"/libarmadillo.so.$libVersion
|
||||
|
||||
PATCH()
|
||||
{
|
||||
# Enable some optional features
|
||||
sed --regexp-extended -i '/ARMA_USE_(SUPERLU|ARPACK)/s/^\/\///g' include/armadillo_bits/config.hpp
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs \
|
||||
-DDETECT_HDF5=ON \
|
||||
-DBUILD_SHARED_LIBS=ON -L
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build 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()
|
||||
{
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build
|
||||
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$sourceDir/include
|
||||
|
||||
sed -i "s|LIB_FLAGS = -larmadillo|LIB_FLAGS = -lopenblas -llapack -larpack -lsuperlu -larmadillo -L$sourceDir/build|g" tests/Makefile
|
||||
|
||||
make -C tests all $jobArgs
|
||||
|
||||
./tests/main
|
||||
}
|
||||
@@ -1,99 +0,0 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/arma/armadillo-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="c961c6b13c72bb047d80fdfbbfadb2d910f73767c9c1070221eb16168aa48a2d"
|
||||
SOURCE_DIR="armadillo-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
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
|
||||
"
|
||||
|
||||
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
|
||||
|
||||
PATCH()
|
||||
{
|
||||
# Enable some optional features
|
||||
sed --regexp-extended -i '/ARMA_USE_(SUPERLU|ARPACK)/s/^\/\///g' include/armadillo_bits/config.hpp
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd "$_"
|
||||
|
||||
cmake .. \
|
||||
-DDETECT_HDF5=ON \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
rm -rf $dataDir/Armadillo/
|
||||
|
||||
prepareInstalledDevelLib libarmadillo
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
rm -rf $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build
|
||||
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$sourceDir/include
|
||||
|
||||
sed -i "s|LIB_FLAGS = -larmadillo|LIB_FLAGS = -lopenblas -llapack -larpack -lsuperlu -larmadillo -L$sourceDir/build|g" tests/Makefile
|
||||
|
||||
make -C tests all $jobArgs
|
||||
|
||||
./tests/main
|
||||
}
|
||||
Reference in New Issue
Block a user