blob: 4862826f2302b70308d15b3815aca4e8a52564fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PORTNAME= boolector
DISTVERSION= 3.2.1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Satisfiability Modulo Theories (SMT) solver
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= cadical>0:math/cadical
LIB_DEPENDS= libbtor2parser.so:math/btor2tools \
libminisat.so:math/minisat \
libpicosat.so:math/picosat
USES= cmake:noninja compiler:c++11-lang # ninja fails to build tests
USE_GITHUB= yes
GH_ACCOUNT= Boolector
CMAKE_ON= BUILD_SHARED_LIBS
do-test: # tests assume that python-3.7 and bash are installed
@${FIND} ${WRKDIR} -name "*.py" \
| ${XARGS} ${REINPLACE_CMD} -e 's|#!/usr/bin/env python$$|#!${LOCALBASE}/bin/python3.7| ; s|#!/usr/bin/env python3$$|#!${LOCALBASE}/bin/python3.7|'
@${FIND} ${WRKDIR} -name "*.sh" \
| ${XARGS} ${REINPLACE_CMD} 's|#!/bin/bash$$|#!${LOCALBASE}/bin/bash|'
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|