--- Makefile 2014-07-17 13:14:23.000000000 +0200 +++ Makefile 2014-07-17 21:18:21.000000000 +0200 @@ -3,6 +3,7 @@ PORTNAME= CoinMP PORTVERSION= 1.7.6 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.coin-or.org/download/source/CoinMP/ @@ -22,14 +23,15 @@ INSTALL_TARGET= install-strip CONFIGURE_ARGS+= PKG_CONFIG_PATH=${STAGEDIR}${PREFIX}/libdata/pkgconfig -OPTIONS_DEFINE= DEBUG DOCS +OPTIONS_DEFINE= DEBUG DOCS GLPK + +GLPK_DESC= GNU Linear Programming Kit support PORTDOCS= * .include .if ${PORT_OPTIONS:MGLPK} -BROKEN = the GLPK option requires math/glpk headers that are not currently installed by that port CONFIGURE_ARGS+= --with-gmpl-incdir=${LOCALBASE}/include \ --with-gmpl-lib="-L${LOCALBASE}/lib -lglpk" LIB_DEPENDS+= libglpk.so:${PORTSDIR}/math/glpk @@ -43,14 +45,10 @@ .endif post-patch:: - @${REINPLACE_CMD} -e \ + @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ - ${WRKSRC}/Clp/Makefile.in ${WRKSRC}/Osi/Makefile.in \ - ${WRKSRC}/Cbc/Makefile.in ${WRKSRC}/Cgl/Makefile.in \ - ${WRKSRC}/CoinUtils/Makefile.in ${WRKSRC}/CoinMP/Makefile.in \ - ${WRKSRC}/Data/Sample/Makefile.in - @${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \ - ${WRKSRC}/CoinMP/Makefile.in + -e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \ + -e 's|addlibs_DATA = examples/Makefile examples/example.c||g' post-install: ${MV} ${STAGEDIR}${PREFIX}/share/coin/doc ${STAGEDIR}${DOCSDIR}