cmake isn't a default build system for Gecode. Test targets are missing there, and at least one problem produces a wrong result when Gecode is built with cmake (zebra_inverse.mzn).
39 lines
837 B
Makefile
39 lines
837 B
Makefile
PORTNAME= minizinc
|
|
DISTVERSION= 2.5.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= math lang
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Constraint modeling language
|
|
|
|
LICENSE= MPL20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
CONFLICTS_BUILD= CoinMP
|
|
|
|
LIB_DEPENDS= libCbc.so:math/cbc \
|
|
libCgl.so:math/cgl \
|
|
libgecodekernel.so:math/gecode \
|
|
libOsiClp.so:math/clp
|
|
|
|
USES= bison cmake compiler:c++11-lang
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= MiniZinc
|
|
GH_PROJECT= libminizinc
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
|
|
CXXFLAGS+= -DFREEBSD_MZN_STDLIB_DIR="\\\"${DATADIR}\\\""
|
|
|
|
OPTIONS_DEFINE= WITH_SCIP
|
|
|
|
WITH_SCIP_DESC= Build with the SCIP optimizer
|
|
WITH_SCIP_CMAKE_BOOL= USE_SCIP
|
|
WITH_SCIP_LIB_DEPENDS= libscip.so:math/SCIP/
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|string std_lib_dir;|string std_lib_dir = "${DATADIR}";|' ${WRKSRC}/mzn2doc.cpp
|
|
|
|
.include <bsd.port.mk>
|