Files
haikuports/sci-libs/cln/cln-1.3.4.recipe
fbrosson e60201f5fa ginac & cln: fix cln 1.3.4, update ginac 1.6.5, add ginac 1.6.7. (#559)
sci-libs/cln:

* REQUIRES_devel was set to libcln$secondaryArchSuffix instead of
  cln$secondaryArchSuffix, therefore preventing both the installation
  of cln_devel and its use in chrooted builds of ginac.
* Drop the recipe for version 1.3.2 (which was really old.)
* Change cmd:gcc to cmd:g++ in BUILD_PREREQUIRES.
* On x86_gcc2 using x86 as secondary arch, install pi in bin/ instead
  of bin/x86/.
* Do not use $portVersion as version of lib:libcln. Instead, use the
  libs' real version. This change is safe since the only package wich
  needs libcln is ginac and it is being updated in this very commit.

sci-mathematics/ginac:

* Fix versioned dependency on libcln for ginac-1.6.5.
* On x86_gcc2 using x86 2nd arch, do not install runtimes in bin/x86/
  but in bin/.
* Add ginac-1.6.7.
2016-04-17 21:30:37 +00:00

74 lines
1.7 KiB
Bash

SUMMARY="A C++ library for efficient computations with arbitrary precision numbers"
DESCRIPTION="CLN stands for Class Library for Numbers and is a library for \
high-performance numeric computations with arbitrary precision. It is \
implemented in C++ for high efficiency, type safety and nice syntax and \
supports a wide range of types and functions that operate on them. It is \
highly optimized in terms of both efficiency and speed and provides great \
interoperability."
HOMEPAGE="http://www.ginac.de/CLN/"
COPYRIGHT="1988-2008 Bruno Haible
2000-2014 Richard Kreckel
2008-2010 Alexei Sheplyakov"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://www.ginac.de/CLN/cln-$portVersion.tar.bz2"
CHECKSUM_SHA256="2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748"
PATCHES="cln-$portVersion.patch"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
cln$secondaryArchSuffix = $portVersion
lib:libcln$secondaryArchSuffix = 6.0.4 compat >= 6
cmd:pi$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
cln${secondaryArchSuffix}_devel = $portVersion
devel:libcln$secondaryArchSuffix = 6.0.4 compat >= 6
"
REQUIRES_devel="
cln$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:make
cmd:g++$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/*.la
prepareInstalledDevelLib libcln
fixPkgconfig
packageEntries devel \
$developDir
}