0
0
Fork 0
haikuports/dev-cpp/muparser/muparser-2.2.5.recipe

68 lines
1.7 KiB
Bash

SUMMARY="Mathematical expressions parser library"
DESCRIPTION="Many applications require the parsing of mathematical \
expressions. The main objective of this library is to provide a fast \
and easy way of doing this. muParser is an extensible high performance \
math expression parser library written in C++. It works by transforming \
a mathematical expression into bytecode and precalculating constant parts \
of the expression."
HOMEPAGE="http://beltoforion.de/article.php?a=muparser"
COPYRIGHT="2016 Ingo Berg"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/beltoforion/muparser/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0666ef55da72c3e356ca85b6a0084d56b05dd740c3c21d26d372085aa2c6e708"
PATCHES="muparser-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
muparser$secondaryArchSuffix = $portVersion
lib:libmuparser$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
muparser${secondaryArchSuffix}_devel = $portVersion
devel:libmuparser$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
muparser$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
runConfigure ./configure --disable-samples
make $jobArgs
}
INSTALL()
{
#make install #keeps installing the include folder in ./self
mkdir -p $includeDir $libDir/pkgconfig
cp -r include/* $includeDir
cp lib/libmuparser.so $libDir
cp build/autoconf/muparser.pc $libDir/pkgconfig
prepareInstalledDevelLib libmuparser
fixPkgconfig
packageEntries devel \
$developDir
}