Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
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 parser
library written in C++. It works by transforming a mathematical
expression into bytecode and precalculating constant parts of the expression.
+26
View File
@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.7 2013/04/06 14:58:20 rodent Exp $
#
DISTNAME= muparser_v2_2_2
# The "200" is nonsense, but we had a revision "134" before.
PKGNAME= muparser-200.2.2.2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=muparser/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://muparser.sourceforge.net/
COMMENT= Parser for mathematical expressions
LICENSE= mit
MAKE_JOBS_SAFE= no
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
#USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= build/autoconf/muparser.pc.in
do-test:
cd ${WRKSRC}/samples/example1 && ${ECHO} quit | LD_LIBRARY_PATH=../../lib ./example1
.include "../../mk/bsd.pkg.mk"
+19
View File
@@ -0,0 +1,19 @@
@comment $NetBSD: PLIST,v 1.3 2012/08/15 17:38:49 drochner Exp $
include/muParser.h
include/muParserBase.h
include/muParserBytecode.h
include/muParserCallback.h
include/muParserDLL.h
include/muParserDef.h
include/muParserError.h
include/muParserFixes.h
include/muParserInt.h
include/muParserStack.h
include/muParserTemplateMagic.h
include/muParserTest.h
include/muParserToken.h
include/muParserTokenReader.h
lib/libmuparser.so
lib/libmuparser.so.2
lib/libmuparser.so.2.2.2
lib/pkgconfig/muparser.pc
+13
View File
@@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.2 2012/08/15 17:38:49 drochner Exp $
BUILDLINK_TREE+= muparser
.if !defined(MUPARSER_BUILDLINK3_MK)
MUPARSER_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.muparser+= muparser>=130
BUILDLINK_ABI_DEPENDS.muparser+= muparser>=200
BUILDLINK_PKGSRCDIR.muparser?= ../../math/muparser
.endif # MUPARSER_BUILDLINK3_MK
BUILDLINK_TREE+= -muparser
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2012/11/16 01:04:43 joerg Exp $
SHA1 (muparser_v2_2_2.zip) = 830383b1bcfa706be5a6ac8b7ba43f32f16a1497
RMD160 (muparser_v2_2_2.zip) = efcaea175523b2e7b3e0d2abaf1ee8767d142da3
Size (muparser_v2_2_2.zip) = 1508675 bytes
SHA1 (patch-aa) = ce9187280bdaf5c00765723b01412b232fcbe4d7
SHA1 (patch-src_muParserTest.cpp) = da3e3b3916cdc158513ef40dda8c10ddf8c87840
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.2 2011/12/16 17:16:11 marino Exp $
--- configure.orig 2010-09-04 13:01:39.000000000 +0000
+++ configure
@@ -6733,7 +6733,7 @@ $as_echo "$bakefile_cv_gcc31" >&6; }
SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
fi
- if test "x$GCC" == "xyes"; then
+ if test "x$GCC" = "xyes"; then
PIC_FLAG="-dynamic -fPIC"
fi
if test "x$XLCC" = "xyes"; then
@@ -7301,6 +7301,7 @@ EOF
;;
powerpc-apple-macos* | \
+ *-*-dragonfly* | \
*-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
*-*-mirbsd* | \
*-*-sunos4* | \
@@ -7343,7 +7344,7 @@ EOF
case "${BAKEFILE_HOST}" in
*-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
- *-*-k*bsd*-gnu | *-*-mirbsd* )
+ *-*-dragonfly* | *-*-k*bsd*-gnu | *-*-mirbsd* )
if test "x$SUNCXX" = "xyes"; then
SONAME_FLAG="-h "
else
@@ -0,0 +1,37 @@
$NetBSD: patch-src_muParserTest.cpp,v 1.1 2012/11/16 01:04:43 joerg Exp $
--- src/muParserTest.cpp.orig 2012-11-14 13:35:12.000000000 +0000
+++ src/muParserTest.cpp
@@ -1292,25 +1292,25 @@ namespace mu
// Test copy constructor
std::vector<mu::Parser> vParser;
vParser.push_back(*(p1.get()));
- mu::Parser p2 = vParser[0]; // take parser from vector
+ mu::Parser p2a = vParser[0]; // take parser from vector
// destroy the originals from p2
vParser.clear(); // delete the vector
p1.reset(0);
- fVal[2] = p2.Eval();
+ fVal[2] = p2a.Eval();
// Test assignement operator
// additionally disable Optimizer this time
- mu::Parser p3;
- p3 = p2;
- p3.EnableOptimizer(false);
- fVal[3] = p3.Eval();
+ mu::Parser p3a;
+ p3a = p2a;
+ p3a.EnableOptimizer(false);
+ fVal[3] = p3a.Eval();
// Test Eval function for multiple return values
// use p2 since it has the optimizer enabled!
int nNum;
- value_type *v = p2.Eval(nNum);
+ value_type *v = p2a.Eval(nNum);
fVal[4] = v[nNum-1];
}
catch(std::exception &e)