Date: Mon, 15 Aug 2016 09:01:08 +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: r420218 - head/math/crlibm Message-ID: <201608150901.u7F918uK059430@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk> + .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 <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608150901.u7F918uK059430>