2013-09-20 22:55:04 +02:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-02-15 17:58:32 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= muparser
|
2014-07-07 04:42:22 +02:00
|
|
|
PORTVERSION= 2.2.3
|
2006-02-15 17:58:32 +01:00
|
|
|
CATEGORIES= math devel
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
|
2012-01-23 22:58:58 +01:00
|
|
|
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/g}
|
2006-02-15 17:58:32 +01:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-02-15 17:58:32 +01:00
|
|
|
COMMENT= Mathematical expressions parser library written in C++
|
|
|
|
|
2012-01-23 22:58:58 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2014-07-07 04:42:22 +02:00
|
|
|
ALL_TARGET= lib
|
|
|
|
|
|
|
|
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR}
|
|
|
|
|
|
|
|
EXAMPLES_CONFIGURE_ENABLE= samples
|
|
|
|
EXAMPLES_ALL_TARGET= samples
|
|
|
|
|
2006-02-15 17:58:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2014-07-07 04:42:22 +02:00
|
|
|
# otherwise it fails to build when the EXAMPLES option is ON
|
|
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USES= pathfix zip
|
|
|
|
|
2009-08-22 00:23:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2006-02-15 17:58:32 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
2008-07-12 19:04:57 +02:00
|
|
|
post-install:
|
2014-07-07 04:42:22 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/docs/html && \
|
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/samples/example1 && \
|
|
|
|
${INSTALL_PROGRAM} example1 ${STAGEDIR}${EXAMPLESDIR} && \
|
|
|
|
${INSTALL_DATA} example1.cpp ${STAGEDIR}${EXAMPLESDIR})
|
2008-07-12 19:04:57 +02:00
|
|
|
.endif
|
|
|
|
|
2009-08-22 00:23:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|