From owner-svn-ports-all@freebsd.org Mon Aug 15 09:01:09 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 26596BBAE24; Mon, 15 Aug 2016 09:01:09 +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 D512D185E; Mon, 15 Aug 2016 09:01:08 +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 u7F918Br059431; Mon, 15 Aug 2016 09:01:08 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7F918uK059430; Mon, 15 Aug 2016 09:01:08 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201608150901.u7F918uK059430@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 15 Aug 2016 09:01:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420218 - head/math/crlibm 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.22 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: Mon, 15 Aug 2016 09:01:09 -0000 Author: amdmi3 Date: Mon Aug 15 09:01:07 2016 New Revision: 420218 URL: https://svnweb.freebsd.org/changeset/ports/420218 Log: - Add LICENSE_FILE - Switch to USES=localbase - Switch to new test framework - Switch to options helpers Modified: head/math/crlibm/Makefile Modified: head/math/crlibm/Makefile ============================================================================== --- head/math/crlibm/Makefile Mon Aug 15 07:32:06 2016 (r420217) +++ head/math/crlibm/Makefile Mon Aug 15 09:01:07 2016 (r420218) @@ -16,47 +16,39 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Correctly-rounded mathematics library LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/COPYING.LIB +USES= localbase GNU_CONFIGURE= yes +TEST_TARGET= check -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= TEST DOCS -OPTIONS_DEFAULT= TEST -TEST_DESC= Include all test capabilities (requires MPFR) +PORTDOCS= ${DISTFILES:C|\:.*||:M*.pdf} + +OPTIONS_DEFINE= EXTRA_TEST DOCS +OPTIONS_DEFAULT= EXTRA_TEST + +EXTRA_TEST_DESC= Include all test capabilities (requires MPFR) +EXTRA_TEST_LIB_DEPENDS= libmpfr.so:math/mpfr \ + libgmp.so:math/gmp +EXTRA_TEST_CONFIGURE_ENABLE= mpfr .include + .if make(makesum) || ${PORT_OPTIONS:MDOCS} -DISTFILES+= crlibm-1.0beta3.pdf:2,4 tripledoubleprocedures-1.0beta3.pdf:3,4 +DISTFILES+= crlibm-1.0beta3.pdf:2,4 tripledoubleprocedures-1.0beta3.pdf:3,4 .endif -post-patch: - @${REINPLACE_CMD} -e 's/\($$(AM_CFLAGS)\) \($$(CFLAGS)\)/\2 \1/' \ - ${WRKSRC}/tests/Makefile.in - .if !empty(MACHINE_CPU:Msse2) CFLAGS+= -msse2 -mfpmath=sse CONFIGURE_ARGS+= --enable-sse2 .endif -.if ${PORT_OPTIONS:MTEST} -CONFIGURE_ARGS+= --enable-mpfr -LIB_DEPENDS+= libmpfr.so:math/mpfr -.else -CONFIGURE_ARGS+= --disable-mpfr -.endif - -check regression-test test: build - @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ - ${MAKE_ARGS} check - -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= ${DISTFILES:C|\:.*||:M*.pdf} +post-patch: + @${REINPLACE_CMD} -e 's/\($$(AM_CFLAGS)\) \($$(CFLAGS)\)/\2 \1/' \ + ${WRKSRC}/tests/Makefile.in -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - @cd ${_DISTDIR}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} - -.endif + cd ${_DISTDIR} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include