amath: update to 1.8.5, fix build on x86_gcc2, fix TEST. (#2915)

This commit is contained in:
rainlance
2018-08-17 16:19:53 +02:00
committed by fbrosson
parent 344c179850
commit 218e3462ad

View File

@@ -4,14 +4,14 @@ IEEE 754 calculations with 15 significant digits, calculations with real and \
complex numbers, variables and user defined functions, logarithmic and exponential \
functions, trigonometric and hyperbolic function and selected mathematical \
constants and rounding functions."
HOMEPAGE="https://amath.innolan.net"
COPYRIGHT="2014-2017 Carsten Sonne Larsen"
HOMEPAGE="https://amath.innolan.net/"
COPYRIGHT="2014-2018 Carsten Sonne Larsen"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="http://dist2.innolan.net/amath-$portVersion.tar.gz"
CHECKSUM_SHA256="2bb005c96429eaf6cd61a7e774e4e2fc1cbf89a2137f68ae741cb8691623c574"
CHECKSUM_SHA256="ed77eb2a367a7462a0d13dc7d2188deb7464f59c166bdc346c3abcd9c0a4e31c"
ARCHITECTURES="x86 x86_gcc2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
amath = $portVersion
@@ -29,9 +29,16 @@ BUILD_PREREQUIRES="
cmd:make
"
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
PATCH()
{
sed -i -e 's/^\(gcclib="-lstdc++\)"$/\1.r4"/;' configure
}
fi
BUILD()
{
./configure --without-stdc++ LDFLAGS=-lbe
./configure LDFLAGS=-lbe
make static $jobArgs
}
@@ -44,5 +51,6 @@ INSTALL()
TEST()
{
make test
LIBRARY_PATH="$sourceDir/src/lib:$sourceDir/src/cplex:$sourceDir/src/real:$sourceDir/src/clib${LIBRARY_PATH:+:$LIBRARY_PATH}" \
"$sourceDir"/amath --test
}