Date: Thu, 8 Feb 2018 01:13:21 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r461195 - head/math/coinmp Message-ID: <201802080113.w181DL7P052519@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg (src committer) Date: Thu Feb 8 01:13:21 2018 New Revision: 461195 URL: https://svnweb.freebsd.org/changeset/ports/461195 Log: math/coinmp: Add an option for Fortran. It can be convenient for performance to enable blas/lapack, which necessarilly involves using the fortran interface. Leave it OFF by default since it can interfere with some important consumers like Apache OpenOffice. Use the standard TEST_TARGET while here. No need to bump the portversion as this doesn't affect the package. PR: 219261 Approved by: cpm Modified: head/math/coinmp/Makefile Modified: head/math/coinmp/Makefile ============================================================================== --- head/math/coinmp/Makefile Thu Feb 8 00:59:50 2018 (r461194) +++ head/math/coinmp/Makefile Thu Feb 8 01:13:21 2018 (r461195) @@ -22,14 +22,19 @@ USES= libtool pathfix pkgconfig tar:tgz USE_LDCONFIG= yes CXXFLAGS+= -ffast-math -OPTIONS_DEFINE= DEBUG DOCS GLPK +OPTIONS_DEFINE= DEBUG DOCS FORTRAN GLPK +FORTRAN_DESCR= Use BLAS/LAPACK with the fortran interface GLPK_DESC= GNU Linear Programming Kit support PORTDOCS= * DEBUG_CXXFLAGS= -fomit-frame-pointer +FORTRAN_USES= fortran blaslapack +FORTRAN_CONFIGURE_ON= --with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \ + --with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" + GLPK_LIB_DEPENDS= libglpk.so:math/glpk GLPK_CONFIGURE_ON= --with-gmpl-incdir=${LOCALBASE}/include \ --with-gmpl-lib="-L${LOCALBASE}/lib -lglpk" @@ -38,6 +43,9 @@ GLPK_CONFIGURE_OFF= --disable-glpk-libcheck STRIP_FILES= libCoinUtils libOsi libOsiClp libOsiCommonTests libClp libClpSolver \ libCgl libCbc libCbcSolver libOsiCbc libCoinMP +TEST_TARGET= unitTest +TEST_WRKSRC= ${WRKSRC}/${PORTNAME} + post-patch:: @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \ -e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \ @@ -52,9 +60,5 @@ post-install: .for filename in ${STRIP_FILES} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${filename}.so.* .endfor - -check regression-test test: build - ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \ - ${MAKE_ARGS} test -C ${WRKSRC} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802080113.w181DL7P052519>