From nobody Fri Jun 21 11:15:55 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W5FCc0SyJz5NTZl; Fri, 21 Jun 2024 11:15:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W5FCb73PSz4X00; Fri, 21 Jun 2024 11:15:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718968556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xeaTHNmF079ISpVpxDHuCZv/naFlzQVHwiLCKXsmBEk=; b=KbQ4mk6WZZ0PnHWLdCf9xtKttfcRWdGU4N+FeAJtR+yVS9xDVOVa88gEQ6kWC1YLV8I0BS x4PMHCC+6aF+FpvfQCRoSEL8hrCPZ3BGKi7sn6/A3C7lAWao6o5wtfnBa6cISHB3ev+L1u imhBeDhqL44G0NuszyJY80T150IZUYN0/xZjLz7dmDuw+fPz9aYdUuvGSAZDoQf0MX+JxZ OY7uEgLImKx//PlZWAVxS9LVNHDkYwNtpgDMVQI2coMi9kXEhzx80W3xECEGF+NQ4sLtZ0 13CbsXybV+YWO3Oz3R2dsCa/kPYJxWomgffoDhk37mQb60laeDahAjFnRHhxfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718968556; a=rsa-sha256; cv=none; b=TqGY8qv5AX4GjjhOW5Q3Jomp43SPpojpbz/wpwyM6shFx46NN4IVheRAwqJleY+iRg1iH/ VpyDydTYfuuUrTlqIQ+TmF2YX/fjIVRd1oHD2T3xmjAhL3PZUiOCVe93Ii7PlD3IsdR9zi xmGn8/R9FSib19MvFLlTDZYYhlYVtkqWgZZMr+zHDwO/pEH5FOYN/DXR93O5TNEeqZtX2b 0lpfPB2X663kERSgG4X46hzSc2iJePVh6cGxQynOOTZk3Dx1Oz3cXDv7d/DInhlyZBXmaL bbvTkCYtkFov8ZGs6peakLFVG1VdQCNBMKHWnV+Y9y0LUioQrwzivvmxG8XHGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718968556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xeaTHNmF079ISpVpxDHuCZv/naFlzQVHwiLCKXsmBEk=; b=bmbSw4YXE6Jzcgd4oD/RZjh3CYv/5Vds9q6XdzOQxuvnBaEsCy+4cwjY/Ob2T3C8bvDnJv pWxzyHSkJZ0jqgfzUddVX32mKr0RKBJoBX4+cEGS+qhybyuRx1cImCZNn7BnfbIvWn7SRa BlqXr/7XVPXHJ+CTHkT0FE/UM6yfxHxjaJjYADRdglWT5D+7cBZAo/psMqJ1N6Wlj9wFmx DzXZcj3Qn8mt7Gu3/67KQSBtTlegt1bGbJXrYhXBxKgHGKVQzLGOhpOP4mqJzB9GK5RqJE eiDIDORTzWibZPDiVYLGVQKmNvrhluH75aD0yXCRDtC+4NWqUT0JqnfmDU2pKg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W5FCb6XYHz161t; Fri, 21 Jun 2024 11:15:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45LBFtJN025404; Fri, 21 Jun 2024 11:15:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45LBFt3m025401; Fri, 21 Jun 2024 11:15:55 GMT (envelope-from git) Date: Fri, 21 Jun 2024 11:15:55 GMT Message-Id: <202406211115.45LBFt3m025401@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 12594e1aee7b - main - math/mathex: new port, C++ library to parse/evaluate mathematical expressions List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 12594e1aee7b17507b85b8a0ee762a678b3ff79e Auto-Submitted: auto-generated The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=12594e1aee7b17507b85b8a0ee762a678b3ff79e commit 12594e1aee7b17507b85b8a0ee762a678b3ff79e Author: Thierry Thomas AuthorDate: 2024-06-21 09:22:25 +0000 Commit: Thierry Thomas CommitDate: 2024-06-21 11:15:52 +0000 math/mathex: new port, C++ library to parse/evaluate mathematical expressions Remark: upstream seems inactive, but MathEx is still used by Gmsh. --- math/Makefile | 1 + math/mathex/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++ math/mathex/distinfo | 3 +++ math/mathex/files/patch-makefile | 22 ++++++++++++++++++++ math/mathex/pkg-descr | 4 ++++ 5 files changed, 74 insertions(+) diff --git a/math/Makefile b/math/Makefile index 44e78e22da9a..de329683fee5 100644 --- a/math/Makefile +++ b/math/Makefile @@ -487,6 +487,7 @@ SUBDIR += m4rie SUBDIR += mate-calc SUBDIR += math77 + SUBDIR += mathex SUBDIR += mathgl SUBDIR += mathicsscript SUBDIR += mathmod diff --git a/math/mathex/Makefile b/math/mathex/Makefile new file mode 100644 index 000000000000..3de5bbbd8e5a --- /dev/null +++ b/math/mathex/Makefile @@ -0,0 +1,44 @@ +PORTNAME= mathex +DISTVERSION= 0.3-b +CATEGORIES= math science devel +MASTER_SITES= SF/sscilib/mathex + +MAINTAINER= thierry@FreeBSD.org +COMMENT= C++ library fo parse/evaluate mathematical expression +WWW= https://sscilib.sourceforge.net/ + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/license.txt + +USES= dos2unix zip +DOS2UNIX_FILES= makefile + +WRKSRC= ${WRKDIR}/${PORTNAME} +MAKEFILE= makefile +ALL_TARGET= ${PORTNAME} +USE_LDCONFIG= yes + +PLIST_FILES= ${PREFIX}/include/mathex.h \ + ${PREFIX}/lib/lib${PORTNAME}.so \ + ${PREFIX}/lib/lib${PORTNAME}.so.0 +PLIST_FILES+= ${PROGS:C|^|${PREFIX}/bin/|} + +PROGS= curvetest inttest tabletest userfunctest + +OPTIONS_DEFINE= EXAMPLES + +post-build: + (cd ${WRKSRC} && \ + ${CXX} ${LDFLAGS} -shared -o lib${PORTNAME}.so.0 -Wl,-soname,lib${PORTNAME}.so.0 ${PORTNAME}.o) + +do-install: + ${INSTALL_DATA} ${WRKSRC}/mathex.h ${STAGEDIR}${PREFIX}/include/ + ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/ + ${LN} -s lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so + +do-install-EXAMPLES-on: +.for p in ${PROGS} + ${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/ +.endfor + +.include diff --git a/math/mathex/distinfo b/math/mathex/distinfo new file mode 100644 index 000000000000..0d63b2aaf216 --- /dev/null +++ b/math/mathex/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1718957652 +SHA256 (mathex-0.3-b.zip) = 8b3ac4e7620e7ffe04deaae9562a37e1e1a375cf589eec06ee3e7a04ea5c9fcc +SIZE (mathex-0.3-b.zip) = 31441 diff --git a/math/mathex/files/patch-makefile b/math/mathex/files/patch-makefile new file mode 100644 index 000000000000..714e89ccb09a --- /dev/null +++ b/math/mathex/files/patch-makefile @@ -0,0 +1,22 @@ +--- makefile.orig 2024-06-21 08:45:06 UTC ++++ makefile +@@ -78,9 +78,9 @@ + ############################## + # current compiler settings # + ############################## +-CC = g++ +-CFLAGS = -Wall -ggdb -c -o +-LFLAGS = -ggdb -o ++CC = ${CXX} ++CFLAGS += -fPIC -c -o ++LFLAGS = ${LDFLAGS} -o + # for g++ link as C++. Thus, is not need to specify stdc++ + # LIBS = -lm -lstdc++ + LIBS = -lm +@@ -162,4 +162,4 @@ clear: + clear: + rm $(OBJECTS) + +-# end of makefile +\ No newline at end of file ++# end of makefile diff --git a/math/mathex/pkg-descr b/math/mathex/pkg-descr new file mode 100644 index 000000000000..5b11c45a3736 --- /dev/null +++ b/math/mathex/pkg-descr @@ -0,0 +1,4 @@ +MathEx is a C++ library to parse/evaluate mathematical expression. + +It is part of the SSCILIB (Small Scientific Library), a collection of small +library package to help development of scientific applications.