freebsd-ports/math/muparser/Makefile
Jason E. Hale 6c2d9007d5 - Update to 2.2.5
- Fetch from Github (Sourceforge files no longer available)
- Use USES=dos2unix to convert header files
- Remove DOCS option (all html docs were replaced with a single html page
  that just redirects to the muparser homepage)
- Add DOXYGEN option to build API documentation
- Use options target helpers
- configure script already supplies -fPIC -DPIC where needed, so remove it
  from the port Makefile
- Add LICENSE_FILE
- Move USES upward, group OPTIONS stuff together

Changes:	http://beltoforion.de/article.php?a=muparser&hl=en&p=release_notes

PR:		216090
Submitted by:	jhale
Approved by:	maintainer timeout (7 weeks)
2017-03-07 00:06:43 +00:00

54 lines
1.3 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= muparser
PORTVERSION= 2.2.5
DISTVERSIONPREFIX= v
CATEGORIES= math devel
MAINTAINER= nivit@FreeBSD.org
COMMENT= Mathematical expressions parser library written in C++
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/License.txt
USE_GITHUB= yes
GH_ACCOUNT= beltoforion
USES= dos2unix pathfix
USE_LDCONFIG= yes
ALL_TARGET= lib
GNU_CONFIGURE= yes
# otherwise it fails to build when the EXAMPLES option is ON
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOXYGEN EXAMPLES
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \
dot:graphics/graphviz
DOXYGEN_ALL_TARGET= documentation
DOXYGEN_PORTDOCS= *
# PORTDOCS macro won't work if NOPORTDOCS is defined or if DOCS is disabled
DOXYGEN_IMPLIES= DOCS
.undef NOPORTDOCS
EXAMPLES_CONFIGURE_ENABLE= samples
EXAMPLES_ALL_TARGET= samples
post-patch:
@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
${WRKSRC}/Makefile.in
post-install-DOXYGEN-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/samples/example1 && \
${INSTALL_PROGRAM} example1 ${STAGEDIR}${EXAMPLESDIR} && \
${INSTALL_DATA} example1.cpp ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>