1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/science/siconos/Makefile
Rene Ladan 620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00

48 lines
1.5 KiB
Makefile

PORTNAME= siconos
DISTVERSION= 4.4.0
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
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}
PYTHON_BROKEN= Fails to import, see https://github.com/siconos/siconos/issues/420
.include <bsd.port.mk>