mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 16:07:38 -04:00
math/tinyexpr: New port: Tiny expression parser/compiler/evaluation engine for math expressions
This commit is contained in:
parent
add1ba90ee
commit
4c859788ed
4 changed files with 34 additions and 0 deletions
|
@ -1201,6 +1201,7 @@
|
||||||
SUBDIR += the-algorithms-c++
|
SUBDIR += the-algorithms-c++
|
||||||
SUBDIR += timbl
|
SUBDIR += timbl
|
||||||
SUBDIR += tiny-bignum-c
|
SUBDIR += tiny-bignum-c
|
||||||
|
SUBDIR += tinyexpr
|
||||||
SUBDIR += tinymt
|
SUBDIR += tinymt
|
||||||
SUBDIR += tlapack
|
SUBDIR += tlapack
|
||||||
SUBDIR += tmv
|
SUBDIR += tmv
|
||||||
|
|
28
math/tinyexpr/Makefile
Normal file
28
math/tinyexpr/Makefile
Normal file
|
@ -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 <bsd.port.mk>
|
3
math/tinyexpr/distinfo
Normal file
3
math/tinyexpr/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1703899688
|
||||||
|
SHA256 (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = dbf1da2ac35fd71f381e5fbdd2d20955fd77e452138c55b6961412e8a18f0f09
|
||||||
|
SIZE (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = 38145
|
2
math/tinyexpr/pkg-descr
Normal file
2
math/tinyexpr/pkg-descr
Normal file
|
@ -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.
|
Loading…
Add table
Reference in a new issue