Date: Sat, 8 Oct 2016 09:01:53 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423497 - head/math/tvmet Message-ID: <201610080901.u9891rPF086375@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Sat Oct 8 09:01:53 2016 New Revision: 423497 URL: https://svnweb.freebsd.org/changeset/ports/423497 Log: - Switch to options helpers Modified: head/math/tvmet/Makefile Modified: head/math/tvmet/Makefile ============================================================================== --- head/math/tvmet/Makefile Sat Oct 8 08:24:42 2016 (r423496) +++ head/math/tvmet/Makefile Sat Oct 8 09:01:53 2016 (r423497) @@ -13,36 +13,30 @@ COMMENT= Tiny Vector and Matrix template 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 - -.if ${PORT_OPTIONS:MDEBUG} -CXXFLAGS+= -DTVMET_DEBUG -.else -CXXFLAGS+= -DTVMET_OPTIMIZE -.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 + +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} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610080901.u9891rPF086375>