From owner-svn-ports-all@freebsd.org Sat Oct 8 09:01:54 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAAE5BEDCAF; Sat, 8 Oct 2016 09:01:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AD8BD42; Sat, 8 Oct 2016 09:01:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9891rfF086376; Sat, 8 Oct 2016 09:01:53 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9891rPF086375; Sat, 8 Oct 2016 09:01:53 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201610080901.u9891rPF086375@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sat, 8 Oct 2016 09:01:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423497 - head/math/tvmet X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2016 09:01:54 -0000 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 +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} \