2018-12-14 18:34:01 +01:00
# $FreeBSD$
PORTNAME = ikos
DISTVERSIONPREFIX = v
2019-12-13 07:48:21 +01:00
DISTVERSION = 3.0
2020-04-01 16:14:51 +02:00
PORTREVISION = 2
2018-12-14 18:34:01 +01:00
CATEGORIES = devel
MAINTAINER = yuri@FreeBSD.org
COMMENT = Static analyzer for C/C++ based on theory of abstract interpretation
LICENSE = MIT
LICENSE_FILE = ${ WRKSRC } /LICENSE.pdf
2019-01-26 23:15:05 +01:00
BUILD_DEPENDS = llvm${ LLVM_VERSION } >0:devel/llvm${ LLVM_VERSION }
2018-12-14 20:54:47 +01:00
LIB_DEPENDS = libapron.so:math/apron \
libboost_system.so:devel/boost-libs \
libmpfr.so:math/mpfr \
libgmp.so:math/gmp \
2019-12-13 07:48:21 +01:00
libppl.so:devel/ppl \
libtbb.so:devel/tbb
2019-06-26 09:45:03 +02:00
RUN_DEPENDS = ${ PYTHON_PKGNAMEPREFIX } sqlite3>0:databases/py-sqlite3@${ PY_FLAVOR }
2018-12-14 18:34:01 +01:00
2019-12-13 07:48:21 +01:00
USES = cmake ncurses python:3.6+ sqlite
2018-12-14 18:34:01 +01:00
USE_GITHUB = yes
GH_ACCOUNT = NASA-SW-VnV
2019-01-26 23:15:05 +01:00
USE_LDCONFIG = yes
2019-12-13 07:48:21 +01:00
LLVM_VERSION = 90 # ${LLVM_DEFAULT} isn't desirable here since ikos only supports llvm>=90, but LLVM_DEFAULT implies that many/any llvm versions are supported
2018-12-14 18:34:01 +01:00
CXXFLAGS += -DNDEBUG # https://github.com/NASA-SW-VnV/ikos/issues/36, it also breaks with assert without NDEBUG
2019-01-08 09:16:40 +01:00
CMAKE_ON = BUILD_SHARED_LIBS
2019-01-26 23:15:05 +01:00
CMAKE_ARGS = -DLLVM_CONFIG_EXECUTABLE:PATH= ${ LOCALBASE } /bin/llvm-config${ LLVM_VERSION } \
2018-12-14 18:34:01 +01:00
-DPYTHON_EXECUTABLE:STRING= ${ PYTHON_CMD }
post-configure : # workaround for the problem that --color-diagnostics gets into the linker command lines
@${ REINPLACE_CMD } 's|-Wl,--color-diagnostics| |' ${ BUILD_WRKSRC } /build.ninja
# use clang corresponding to the used llvm version
2019-01-26 23:15:05 +01:00
CPP = clang-cpp${ LLVM_VERSION }
CC = clang${ LLVM_VERSION }
CXX = clang++${ LLVM_VERSION }
2018-12-14 18:34:01 +01:00
. i n c l u d e < b s d . p o r t . m k >