ports/math/muparser/Makefile
Piotr Kubaj 89f069812e math/muparser: fix build on armv7
Same issue as on powerpc.
2021-11-20 15:07:28 +00:00

37 lines
701 B
Makefile

# Created by: Nicola Vitale <nivit@email.it>
PORTNAME= muparser
PORTVERSION= 2.3.2
DISTVERSIONPREFIX= v
CATEGORIES= math devel
MAINTAINER= nivit@FreeBSD.org
COMMENT= Mathematical expressions parser library written in C++
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/License.txt
USES= cmake
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= beltoforion
OPTIONS_DEFINE= EXAMPLES
CMAKE_OFF= ENABLE_SAMPLES
EXAMPLES_PORTEXAMPLES= *
.include <bsd.port.options.mk>
.if ${ARCH} == armv7 || ${ARCH} == powerpc
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.endif
post-install-EXAMPLES-on:
cd ${WRKSRC} && ${COPYTREE_SHARE} samples ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>