forked from Lainports/freebsd-ports
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cryptominisat
|
|
DISTVERSION= 5.6.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= math python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= arrowd@FreeBSD.org
|
|
COMMENT= Bindings to CryptoMiniSat (a SAT solver)
|
|
|
|
LICENSE= MIT LGPL21
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/../LICENSE.txt
|
|
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE.txt
|
|
|
|
LIB_DEPENDS= libcryptominisat5.so:math/cryptominisat
|
|
|
|
USES= compiler:c++11-lib python
|
|
USE_PYTHON= autoplist distutils
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= msoos
|
|
|
|
WRKSRC_SUBDIR= python
|
|
|
|
PYDISTUTILS_BUILDTARGET= build_ext --include-dirs=${LOCALBASE}/include
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|@PROJECT_VERSION@|${PORTVERSION}|' \
|
|
-e 's|$${CMAKE_C_COMPILER}|${CC}|' \
|
|
-e 's|$${CMAKE_CXX_COMPILER}|${CXX}|' \
|
|
-e 's|$${PY_C_CONFIG}||' \
|
|
-e 's|$${PY_LD_CONFIG}||' \
|
|
-e 's|$${CMS_FULL_VERSION}|${PORTVERSION}|' \
|
|
-e 's|$${APPLE}||' ${WRKSRC}/setup.py.in
|
|
${CP} ${WRKSRC}/setup.py.in ${WRKSRC}/setup.py
|
|
${CP} ${WRKSRC}/src/pycryptosat.cpp.in ${WRKSRC}/src/pycryptosat.cpp
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pycryptosat.so
|
|
|
|
.include <bsd.port.mk>
|