mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-08 02:15:08 +00:00
bd9a7a4930
Approved by: portmgr (blanket)
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
PORTNAME= boolector
|
|
DISTVERSION= 3.2.2
|
|
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
|
|
TEST_DEPENDS= bash:shells/bash
|
|
|
|
USES= cmake:noninja compiler:c++11-lang cpe python:test # ninja fails to build tests
|
|
|
|
CPE_VENDOR= boolector_project
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Boolector
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
|
|
do-test:
|
|
@${FIND} ${WRKDIR} -name "*.py" \
|
|
| ${XARGS} ${REINPLACE_CMD} -e 's|#!/usr/bin/env python$$|#!${PYTHON_CMD}| ; s|#!/usr/bin/env python3$$|#!${PYTHON_CMD}|'
|
|
@${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>
|