diff --git a/math/Makefile b/math/Makefile index 744598647931..51bf24e648f2 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1201,6 +1201,7 @@ SUBDIR += the-algorithms-c++ SUBDIR += timbl SUBDIR += tiny-bignum-c + SUBDIR += tinyexpr SUBDIR += tinymt SUBDIR += tlapack SUBDIR += tmv diff --git a/math/tinyexpr/Makefile b/math/tinyexpr/Makefile new file mode 100644 index 000000000000..25f9ba86e7a8 --- /dev/null +++ b/math/tinyexpr/Makefile @@ -0,0 +1,28 @@ +PORTNAME= tinyexpr +DISTVERSION= g20221120 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tiny expression parser/compiler/evaluation engine for math expressions +WWW= https://codeplea.com/tinyexpr + +LICENSE= MIT + +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= codeplea +GH_TAGNAME= 74804b8 + +PLIST_FILES= include/${PORTNAME}.h \ + lib/lib${PORTNAME}.so + +do-build: + @cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -fPIC ${LDFLAGS} -Wl,-soname,lib${PORTNAME}.so -shared -lm -o lib${PORTNAME}.so ${PORTNAME}.c + +do-install: + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib + +.include diff --git a/math/tinyexpr/distinfo b/math/tinyexpr/distinfo new file mode 100644 index 000000000000..d96ad9f62d10 --- /dev/null +++ b/math/tinyexpr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703899688 +SHA256 (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = dbf1da2ac35fd71f381e5fbdd2d20955fd77e452138c55b6961412e8a18f0f09 +SIZE (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = 38145 diff --git a/math/tinyexpr/pkg-descr b/math/tinyexpr/pkg-descr new file mode 100644 index 000000000000..652861d3eae3 --- /dev/null +++ b/math/tinyexpr/pkg-descr @@ -0,0 +1,2 @@ +TinyExpr is a very small parser and evaluation library for evaluating math +expressions from C. It's open-source, free, and is extremely easy to use.