2015-05-05 23:54:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-01-06 15:07:05 +01:00
|
|
|
PORTNAME= cryptominisat
|
2020-10-19 16:59:18 +02:00
|
|
|
DISTVERSION= 5.8.0
|
2015-05-05 23:54:29 +02:00
|
|
|
CATEGORIES= math python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2018-06-17 22:36:22 +02:00
|
|
|
MAINTAINER= arrowd@FreeBSD.org
|
2016-01-06 15:07:05 +01:00
|
|
|
COMMENT= Bindings to CryptoMiniSat (a SAT solver)
|
2015-05-05 23:54:29 +02:00
|
|
|
|
2018-06-17 22:36:22 +02:00
|
|
|
LICENSE= MIT LGPL21
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE_LGPL21= ${WRKSRC}/../LICENSE.txt
|
|
|
|
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE.txt
|
2015-05-05 23:54:29 +02:00
|
|
|
|
2016-09-01 15:25:49 +02:00
|
|
|
LIB_DEPENDS= libcryptominisat5.so:math/cryptominisat
|
2015-05-05 23:54:29 +02:00
|
|
|
|
2018-06-17 22:36:22 +02:00
|
|
|
USES= compiler:c++11-lib python
|
2015-05-05 23:54:29 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
2016-01-06 15:07:05 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
|
|
|
|
GH_ACCOUNT= msoos
|
|
|
|
|
2015-05-05 23:54:29 +02:00
|
|
|
WRKSRC_SUBDIR= python
|
|
|
|
|
2016-01-06 15:07:05 +01:00
|
|
|
post-patch:
|
2018-06-17 22:36:22 +02:00
|
|
|
${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}||' \
|
2019-02-23 17:31:47 +01:00
|
|
|
-e 's|$${CMS_FULL_VERSION}|${PORTVERSION}|' \
|
2018-06-17 22:36:22 +02:00
|
|
|
-e 's|$${APPLE}||' ${WRKSRC}/setup.py.in
|
2016-01-06 15:07:05 +01:00
|
|
|
${CP} ${WRKSRC}/setup.py.in ${WRKSRC}/setup.py
|
2019-02-23 17:31:47 +01:00
|
|
|
${CP} ${WRKSRC}/src/pycryptosat.cpp.in ${WRKSRC}/src/pycryptosat.cpp
|
2015-05-05 23:54:29 +02:00
|
|
|
|
|
|
|
post-install:
|
2016-01-06 15:07:05 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pycryptosat.so
|
2015-05-05 23:54:29 +02:00
|
|
|
|
2016-01-06 15:07:05 +01:00
|
|
|
.include <bsd.port.mk>
|