diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-10-08 17:01:53 +0800 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-10-08 17:01:53 +0800 |
commit | a6720787dc526a709340f0e5fbca687e821c79b4 (patch) | |
tree | ab0693f6fb05c65202f556790748006675097ea3 /math/tvmet | |
parent | eb967efbb2301ce4234a3121eea788444e140a66 (diff) | |
download | freebsd-ports-gnome-a6720787dc526a709340f0e5fbca687e821c79b4.tar.gz freebsd-ports-gnome-a6720787dc526a709340f0e5fbca687e821c79b4.tar.zst freebsd-ports-gnome-a6720787dc526a709340f0e5fbca687e821c79b4.zip |
- Switch to options helpers
Diffstat (limited to 'math/tvmet')
-rw-r--r-- | math/tvmet/Makefile | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/math/tvmet/Makefile b/math/tvmet/Makefile index 79e388b6e79c..60fe8086a010 100644 --- a/math/tvmet/Makefile +++ b/math/tvmet/Makefile @@ -13,36 +13,30 @@ COMMENT= Tiny Vector and Matrix template library LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS_DEFINE= CPPUNIT DEBUG DOCS EXAMPLES - USES= gmake tar:bzip2 libtool GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cxx=${CXX} -.include <bsd.port.options.mk> +OPTIONS_DEFINE= CPPUNIT DEBUG DOCS EXAMPLES -.if ${PORT_OPTIONS:MCPPUNIT} -LIB_DEPENDS+= libcppunit.so:devel/cppunit -CONFIGURE_ARGS+= --with-cppunit-prefix=${LOCALBASE} -.else -CONFIGURE_ENV+= ac_cv_path_CPPUNIT_CONFIG=no -.endif +CPPUNIT_LIB_DEPENDS= libcppunit.so:devel/cppunit +CPPUNIT_CONFIGURE_ON= --with-cppunit-prefix=${LOCALBASE} +CPPUNIT_CONFIGURE_ENV_OFF= ac_cv_path_CPPUNIT_CONFIG=no -.if ${PORT_OPTIONS:MDEBUG} -CXXFLAGS+= -DTVMET_DEBUG -.else -CXXFLAGS+= -DTVMET_OPTIMIZE -.endif +DEBUG_CXXFLAGS= -DTVMET_DEBUG +DEBUG_CXXFLAGS_OFF= -DTVMET_OPTIMIZE post-patch: @${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for ext in dox cc css h png (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.${ext} \ ${STAGEDIR}${DOCSDIR}) .endfor + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for ext in cc (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.${ext} \ |