From 158c70cfd5ae3a1c651b919232e267a08e7955a3 Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 11 Dec 2009 19:53:57 +0000 Subject: add muparser-130, a parser for mathematical expressions --- math/muparser/DESCR | 5 +++++ math/muparser/Makefile | 24 ++++++++++++++++++++++++ math/muparser/PLIST | 16 ++++++++++++++++ math/muparser/buildlink3.mk | 12 ++++++++++++ math/muparser/distinfo | 7 +++++++ math/muparser/patches/patch-aa | 13 +++++++++++++ math/muparser/patches/patch-ab | 15 +++++++++++++++ 7 files changed, 92 insertions(+) create mode 100644 math/muparser/DESCR create mode 100644 math/muparser/Makefile create mode 100644 math/muparser/PLIST create mode 100644 math/muparser/buildlink3.mk create mode 100644 math/muparser/distinfo create mode 100644 math/muparser/patches/patch-aa create mode 100644 math/muparser/patches/patch-ab (limited to 'math') diff --git a/math/muparser/DESCR b/math/muparser/DESCR new file mode 100644 index 00000000000..e961c1257d1 --- /dev/null +++ b/math/muparser/DESCR @@ -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. diff --git a/math/muparser/Makefile b/math/muparser/Makefile new file mode 100644 index 00000000000..f3f52c5c0a7 --- /dev/null +++ b/math/muparser/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/12/11 19:53:57 drochner Exp $ +# + +DISTNAME= muparser_v130 +PKGNAME= muparser-130 +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=muparser/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://muparser.sourceforge.net/ +COMMENT= Parser for mathematical expressions + +WRKSRC= ${WRKDIR}/muparser +GNU_CONFIGURE= yes +#USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ +PKG_DESTDIR_SUPPORT= user-destdir + +PKGCONFIG_OVERRIDE+= build/autoconf/muparser.pc.in + +do-test: + cd ${WRKSRC}/samples/example1 && echo quit | ./example1 + +.include "../../mk/bsd.pkg.mk" diff --git a/math/muparser/PLIST b/math/muparser/PLIST new file mode 100644 index 00000000000..05c0b74bff8 --- /dev/null +++ b/math/muparser/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/12/11 19:53:57 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/muParserTest.h +include/muParserToken.h +include/muParserTokenReader.h +lib/libmuparser.so +lib/pkgconfig/muparser.pc diff --git a/math/muparser/buildlink3.mk b/math/muparser/buildlink3.mk new file mode 100644 index 00000000000..8053dc21697 --- /dev/null +++ b/math/muparser/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/12/11 19:53:57 drochner Exp $ + +BUILDLINK_TREE+= muparser + +.if !defined(MUPARSER_BUILDLINK3_MK) +MUPARSER_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.muparser+= muparser>=130 +BUILDLINK_PKGSRCDIR.muparser?= ../../math/muparser +.endif # MUPARSER_BUILDLINK3_MK + +BUILDLINK_TREE+= -muparser diff --git a/math/muparser/distinfo b/math/muparser/distinfo new file mode 100644 index 00000000000..aee933f865e --- /dev/null +++ b/math/muparser/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/12/11 19:53:57 drochner Exp $ + +SHA1 (muparser_v130.tar.gz) = 8411b189b05317d836c92b02b267f7be5bc08611 +RMD160 (muparser_v130.tar.gz) = 489b781756e018bbe2976ab16d8962106a2ccf0f +Size (muparser_v130.tar.gz) = 820801 bytes +SHA1 (patch-aa) = 9f41e839d382c2b7e8a3b4c0880f345355c3950a +SHA1 (patch-ab) = 73aca637f676bcf19cd6ae29baddf07e449bf78e diff --git a/math/muparser/patches/patch-aa b/math/muparser/patches/patch-aa new file mode 100644 index 00000000000..aa9243af6a6 --- /dev/null +++ b/math/muparser/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/12/11 19:53:57 drochner Exp $ + +--- configure.orig 2009-02-11 20:06:56.000000000 +0100 ++++ configure +@@ -5075,7 +5075,7 @@ echo "${ECHO_T}$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 diff --git a/math/muparser/patches/patch-ab b/math/muparser/patches/patch-ab new file mode 100644 index 00000000000..6cc5b1a8a76 --- /dev/null +++ b/math/muparser/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/12/11 19:53:57 drochner Exp $ + +--- Makefile.in.orig 2009-12-11 15:24:06.000000000 +0000 ++++ Makefile.in +@@ -192,8 +192,8 @@ COND_USE_SOSYMLINKS_1___muParser_dll___s + all: $(__muParser_lib___depname) $(__muParser_dll___depname) $(__example1___depname) + + install: all $(__install_muParser_lib___depname) $(__install_muParser_lib_headers___depname) $(__install_muParser_dll___depname) $(__install_muParser_dll_headers___depname) +- $(INSTALL_DIR) $(libdir)/pkgconfig +- $(INSTALL_DATA) build/autoconf/muparser.pc $(libdir)/pkgconfig ++ $(INSTALL_DIR) $(DESTDIR)$(libdir)/pkgconfig ++ $(INSTALL_DATA) build/autoconf/muparser.pc $(DESTDIR)$(libdir)/pkgconfig + + uninstall: $(__uninstall_muParser_lib___depname) $(__uninstall_muParser_lib_headers___depname) $(__uninstall_muParser_dll___depname) $(__uninstall_muParser_dll_headers___depname) + -- cgit v1.2.3