mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
39d4893c1f
Reported by: portscout
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
PORTNAME= nest
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.7
|
|
CATEGORIES= science biology # NEST is used in neuroscience
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Simulator for spiking neural network models
|
|
WWW= https://www.nest-simulator.org/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_i386= https://github.com/nest/nest-simulator/issues/1205
|
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
|
libgsl.so:math/gsl \
|
|
libltdl.so:devel/libltdl
|
|
RUN_DEPENDS= bash:shells/bash
|
|
|
|
USES= cmake:testing ncurses pkgconfig python readline shebangfix
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= nest-simulator
|
|
|
|
SHEBANG_FILES= bin/nest-server bin/nest-server-mpi testsuite/do_tests.sh
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
|
|
OPTIONS_DEFINE= PYTHON DOCS
|
|
OPTIONS_DEFAULT= PYTHON
|
|
OPTIONS_SUB= yes
|
|
|
|
PYTHON_CMAKE_BOOL= BUILD_PYTHON
|
|
PYTHON_USE= python=cython
|
|
PYTHON_CMAKE_ON= -DFREEBSD_PYTHON_VER:STRING=${PYTHON_VER} -DCYTHON_EXECUTABLE:STRING=${PREFIX}/bin/cython-${PYTHON_VER}
|
|
|
|
PORTDOCS= *
|
|
|
|
.if !exists(/usr/include/omp.h)
|
|
USES+= compiler:gcc-c++11-lib
|
|
.else
|
|
USES+= compiler:c++11-lang
|
|
.endif
|
|
|
|
# 2 tests are known to fail, see https://github.com/nest/nest-simulator/issues/2190
|
|
# tests require the port to be installed with DOCS=ON, see https://github.com/nest/nest-simulator/issues/2191
|
|
# many tests fail, see https://github.com/nest/nest-simulator/issues/2848
|
|
|
|
post-install:
|
|
@${REINPLACE_CMD} -i '' -e 's|^python3 |${PYTHON_CMD} |' ${STAGEDIR}${PREFIX}/share/nest/testsuite/do_tests.sh
|
|
|
|
.include <bsd.port.mk>
|