aboutsummaryrefslogtreecommitdiff
path: root/math/muparser/Makefile
blob: 979eaae0c1af058f13b00f1ac9b8783ef981937a (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	muparser
# Date created:		2006-02-14
# Whom:			Nicola Vitale	<nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=	muparser
PORTVERSION=	2.2.0
CATEGORIES=	math devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
DISTNAME=	${PORTNAME}_v${PORTVERSION:S/./_/g}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Mathematical expressions parser library written in C++

LICENSE=	MIT

USES=	pathfix
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--enable-shared=no
.if defined(NOPORTEXAMPLES)
CONFIGURE_ARGS+=	--enable-samples=no
.endif
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+=	--docdir=${DOCSDIR}
.endif
USE_GMAKE=	yes
USE_ZIP=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=	-fPIC
.endif

# taken from audio/taglib
post-patch:
	@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
		${WRKSRC}/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR} && \
	cd ${WRKSRC}/docs/html && \
	${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR} && \
	cd ${WRKSRC}/samples && \
	${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>