1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

math/coinmp: some fixes

- Clean-up Makefile
- Fix stage-qa error
- Unbreak GLPK option

PR:		187487
Submitted by:	cjpugmed@gmail.com (maintainer)
This commit is contained in:
Kurt Jaeger 2014-07-17 19:55:37 +00:00
parent 56c1f1bb44
commit d71b24a67a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362163

View File

@ -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 @@ USE_LDCONFIG= yes
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 <bsd.port.options.mk>
.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 @@ CXXFLAGS+= -fomit-frame-pointer
.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}