1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/science/siconos/Makefile
2021-08-25 13:28:24 -07:00

48 lines
1.5 KiB
Makefile

PORTNAME= siconos
DISTVERSION= 4.4.0.rc4
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= Simulation framework for nonsmooth dynamical systems
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_i386= non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp', see https://github.com/siconos/siconos/issues/416
BROKEN_FreeBSD_11= error: use of undeclared identifier 'RTLD_DEEPBIND'
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
help2man:misc/help2man
LIB_DEPENDS= libcxsparse.so:math/suitesparse-cxsparse \
libgmp.so:math/gmp \
libldl.so:math/suitesparse-ldl \
libopenblas.so:math/openblas
TEST_DEPENDS= cppunit>0:devel/cppunit
USES= cmake:testing compiler:c++17-lang fortran pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER}
CMAKE_TESTING_ON= WITH_TESTING # tests are broken, see https://github.com/siconos/siconos/issues/415
CFLAGS+= -DCLOCKTIME -DCLOCKS_PER_SEC=128 # workaround for 'Undefined symbol "ftime"', see https://github.com/siconos/siconos/issues/411
BINARY_ALIAS= python3=${PYTHON_CMD}
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
PYTHON_CMAKE_BOOL= WITH_PYTHON_WRAPPER
PYTHON_USES= python
PYTHON_USES_OFF= python:build
PYTHON_PY_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \
swig:devel/swig
PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS}
.include <bsd.port.mk>