mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
armadillo: bump to 9.880.3 (#5061)
This commit is contained in:
committed by
GitHub
parent
c926357c2c
commit
f3ddc1b9d1
@@ -11,7 +11,7 @@ COPYRIGHT="2008-2019 Conrad Sanderson
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/arma/armadillo-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="a481e1dc880b7cb352f8a28b67fe005dc1117d4341277f12999a2355d40d7599"
|
||||
CHECKSUM_SHA256="900f3e8d35d8b722217bed979fa618faf6f3e4f56964c887a1fce44c3d4c4b9f"
|
||||
SOURCE_DIR="armadillo-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
@@ -64,6 +64,12 @@ BUILD_PREREQUIRES="
|
||||
defineDebugInfoPackage armadillo$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 "$_"
|
||||
@@ -99,7 +105,12 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
#make test
|
||||
# Armadillo provides no tests through cmake AFAIK
|
||||
true
|
||||
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