79 lines
2.0 KiB
Bash
79 lines
2.0 KiB
Bash
SUMMARY="A C++ library to combine symbolic manipulation with numeric computations"
|
|
DESCRIPTION="GiNaC (which is a recursive acronym for GiNaC is Not a CAS) was \
|
|
specifically developed to replace the Maple CAS as an engine for xloops. It is \
|
|
a C++ library and attempts to bring the features of a typical CAS to the C++ \
|
|
language itself. By doing that, it enables symbolic manipulation to be used in \
|
|
existing numeric software written in C++."
|
|
HOMEPAGE="https://www.ginac.de/"
|
|
COPYRIGHT="1999-2016 Johannes Gutenberg University Mainz, Germany"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.ginac.de/ginac-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="cea5971b552372017ea654c025adb44d5f1b3e3ce0a739da2fe95189572b85db"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
else
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
ginac$secondaryArchSuffix = $portVersion
|
|
lib:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
|
|
cmd:ginac_excompiler$commandSuffix = $portVersion
|
|
cmd:ginsh$commandSuffix = $portVersion
|
|
cmd:viewgar$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcln$secondaryArchSuffix >= 6
|
|
lib:libreadline$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
ginac${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
|
|
"
|
|
REQUIRES_devel="
|
|
ginac$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcln$secondaryArchSuffix >= 6
|
|
devel:libreadline$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:diff
|
|
cmd:make
|
|
cmd:python >= 2.7
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libginac
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|