1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/math/muparser/Makefile
Nicola Vitale 55fb5874fc
math/muparser: update to 2.3.4
- Use PLIST_SUB to remove hard-coded version of the program
- Reorder variables in Makefile
- Fix value of LICENSE_FILE
2022-11-18 15:31:01 +01:00

36 lines
823 B
Makefile

PORTNAME= muparser
PORTVERSION= 2.3.4
DISTVERSIONPREFIX= v
CATEGORIES= math devel
MAINTAINER= nivit@FreeBSD.org
COMMENT= Mathematical expressions parser library written in C++
WWW= https://beltoforion.de/en/muparser/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= beltoforion
USE_LDCONFIG= yes
.if !exists(/usr/include/omp.h)
CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=OFF
.endif
CMAKE_OFF= ENABLE_SAMPLES
PLIST_SUB= MUPARSER_VERSION=${MUPARSER_VERSION}
OPTIONS_DEFINE= EXAMPLES
EXAMPLES_PORTEXAMPLES= *
MUPARSER_VERSION= ${PORTVERSION}
post-patch:
${SED} -i.bak -e 's/%%MUPARSER_VERSION%%/${MUPARSER_VERSION}/' ${WRKSRC}/docs/Doxyfile
post-install-EXAMPLES-on:
cd ${WRKSRC} && ${COPYTREE_SHARE} samples ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>