mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
106 lines
3.1 KiB
Bash
106 lines
3.1 KiB
Bash
SUMMARY="A general purpose formula parser and interpreter"
|
|
DESCRIPTION="Ixion is a general purpose formula parser & interpreter that can \
|
|
calculate multiple named targets, or \"cells\".
|
|
The cells can be referenced from each other, and the library takes care \
|
|
of resolving their dependencies automatically upon calculation. The caller \
|
|
can run the calculation routine either in a single-threaded mode, or \
|
|
a multi-threaded mode. The library also supports re-calculations where the \
|
|
contents of one or more cells have been modified since the last calculation, \
|
|
and a partial calculation of only the affected cells need to be calculated."
|
|
HOMEPAGE="https://gitlab.com/ixion/ixion"
|
|
COPYRIGHT="Kohei Yoshida et al."
|
|
LICENSE="MPL v2.0"
|
|
REVISION="1"
|
|
SOURCE_URI="https://kohei.us/files/ixion/src/libixion-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="6ad1384fcf813083c6d981a16b2643c953f9bac4c2caf1ed1682921d9b69ed91"
|
|
SOURCE_DIR="libixion-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
boostMinimumVersion=1.65.0
|
|
|
|
soVersion="${portVersion%.*}"
|
|
|
|
PROVIDES="
|
|
ixion$secondaryArchSuffix = $portVersion
|
|
cmd:ixion_formula_tokenizer$secondaryArchSuffix = $portVersion
|
|
cmd:ixion_parser$secondaryArchSuffix = $portVersion
|
|
cmd:ixion_sorter$secondaryArchSuffix = $portVersion
|
|
lib:libixion_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_filesystem$secondaryArchSuffix >= $boostMinimumVersion
|
|
lib:libboost_program_options$secondaryArchSuffix >= $boostMinimumVersion
|
|
lib:libboost_system$secondaryArchSuffix >= $boostMinimumVersion
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
ixion${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libixion_$soVersion$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
ixion$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_filesystem$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_program_options$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libboost_system$secondaryArchSuffix >= $boostMinimumVersion
|
|
devel:libz$secondaryArchSuffix
|
|
devel:mdds >= 1.4
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage ixion$secondaryArchSuffix \
|
|
"$binDir"/ixion-formula-tokenizer \
|
|
"$binDir"/ixion-parser \
|
|
"$binDir"/ixion-sorter \
|
|
"$libDir"/libixion-$soVersion.so.0.0.0
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's/-ldl//g' configure.ac
|
|
sed -i 's/-pthread//g' configure.ac
|
|
sed -i 's#$with_boost/include#$with_boost/headers#g' m4/boost.m4
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
BOOST_ROOT="$portPackageLinksDir"/devel~libboost_program_options/develop
|
|
runConfigure ./configure --enable-python=no
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/libixion-$soVersion.la
|
|
|
|
prepareInstalledDevelLib libixion-$soVersion
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
LIBRARY_PATH="$sourceDir/src/libixion/.libs${LIBRARY_PATH:+:$LIBRARY_PATH}" \
|
|
make check
|
|
}
|