mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
muparser: new recipe/patch file (#1349)
This commit is contained in:
committed by
Jérôme Duval
parent
975c11a6ff
commit
e12730f240
68
dev-cpp/muparser/muparser-2.2.5.recipe
Normal file
68
dev-cpp/muparser/muparser-2.2.5.recipe
Normal file
@@ -0,0 +1,68 @@
|
||||
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="!x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
muparser$secondaryArchSuffix = $portVersion
|
||||
lib:libmuparser$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
muparser${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmuparser$secondaryArchSuffix = $portVersion compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
muparser$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp `finddir B_SYSTEM_DATA_DIRECTORY`/libtool/config/config.guess build/autoconf/
|
||||
cp `finddir B_SYSTEM_DATA_DIRECTORY`/libtool/config/config.sub build/autoconf/
|
||||
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
|
||||
}
|
||||
25
dev-cpp/muparser/patches/muparser-2.2.5.patchset
Normal file
25
dev-cpp/muparser/patches/muparser-2.2.5.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From 6026d6149088809c41bac1702a96d739c80a9564 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Wed, 17 May 2017 17:57:23 +0200
|
||||
Subject: fix -nostart issue for gcc5
|
||||
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 1a16abd..c7da732 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -6075,6 +6075,11 @@ fi
|
||||
SHARED_LD_CXX="${LD} -nostart -o"
|
||||
;;
|
||||
|
||||
+ *-*-haiku* )
|
||||
+ SHARED_LD_CC="${CC} -shared -o"
|
||||
+ SHARED_LD_CXX="${CXX} -shared -o"
|
||||
+ ;;
|
||||
+
|
||||
*-*-irix* )
|
||||
if test "x$GCC" != "xyes"; then
|
||||
PIC_FLAG="-KPIC"
|
||||
--
|
||||
2.7.0
|
||||
|
||||
Reference in New Issue
Block a user