summaryrefslogtreecommitdiff
path: root/math/muparser/Makefile
blob: 52285e44da55fcedc3830efd2691a595d2803711 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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>