From c887dd1e0e505a3586328cb1a9206c6f3efafb2f Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 8 Feb 2018 01:13:21 +0000 Subject: 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 --- math/coinmp/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'math') diff --git a/math/coinmp/Makefile b/math/coinmp/Makefile index 4764cdfce7b1..9a3112468c4f 100644 --- a/math/coinmp/Makefile +++ b/math/coinmp/Makefile @@ -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' \ @@ -53,8 +61,4 @@ post-install: ${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 -- cgit