forked from Lainports/freebsd-ports
math/topcom: Add option SOPLEX
It fixes build in the presence of the SoPlex package. Reported by: Philipp Ost <bsd@philippost.de>
This commit is contained in:
parent
2f7a6aed9b
commit
577873f6aa
1 changed files with 11 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= topcom
|
||||
DISTVERSION= 0.17.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://www.rambau.wm.uni-bayreuth.de/Software/
|
||||
DISTNAME= ${PORTNAME:tu}-${DISTVERSION}
|
||||
|
|
@ -21,6 +22,13 @@ LDFLAGS+= -lgmp -lgmpxx -lcddgmp
|
|||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= SOPLEX # SOPLEX shouldn't be made default because SoPlex's license prevents packaging.
|
||||
|
||||
SOPLEX_DESC= Build with SoPlex linear programming problem solver
|
||||
SOPLEX_CXXFLAGS= -I${LOCALBASE}/include/soplex
|
||||
SOPLEX_LIB_DEPENDS= libsoplex.so:math/SoPlex
|
||||
SOPLEX_BROKEN= not compatible with SoPlex-5.0.2 - missing header, reported to the upstream author vie e-mail
|
||||
|
||||
post-extract:
|
||||
@${RM} -r ${WRKSRC}/external
|
||||
|
||||
|
|
@ -31,4 +39,7 @@ post-patch:
|
|||
s|\.\./external/lib/libgmp\.a|${LOCALBASE}/lib/libgmp.so| ; \
|
||||
s|\.\./external/lib/libgmpxx\.a|${LOCALBASE}/lib/libgmpxx.so|'
|
||||
|
||||
post-patch-SOPLEX-off:
|
||||
@${REINPLACE_CMD} -e 's|AC_CHECK_LIB(soplex,|AC_CHECK_LIB(soplex_disabled,|' ${WRKSRC}/configure.ac
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue