1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/math/muparser/Makefile
Nicola Vitale acce372296 - Update to 2.2.3
- Use options helpers
- Build/install dynamic library instead of the static one
- Add options DOCS and EXAMPLES
- Set MAKE_JOBS_UNSAFE, otherwise the port fails to build
  when the option EXAMPLES is ON (it tries to compile/link
  example1 while the library is not yet built/deployed)
- Remove build-dependency by devel/gmake
- Add support for stage dir
- Fix format of WWW line in pkg-descr

Release Notes:  http://muparser.beltoforion.de/mup_intro.html#idRelNote
2014-07-07 02:42:22 +00:00

55 lines
1.2 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= muparser
PORTVERSION= 2.2.3
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
ALL_TARGET= lib
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR}
EXAMPLES_CONFIGURE_ENABLE= samples
EXAMPLES_ALL_TARGET= samples
GNU_CONFIGURE= yes
# 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
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
post-patch:
@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
${WRKSRC}/Makefile.in
post-install:
@${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})
.endif
.include <bsd.port.post.mk>