freebsd-ports/math/openturns/Makefile
Daniel Engberg 664a2fa1e5 */*: Bump jpeg-turbo users treewide
New major version 3.0.0
2023-07-28 19:13:17 +02:00

101 lines
3.3 KiB
Makefile

PORTNAME= openturns
DISTVERSIONPREFIX= v
DISTVERSION= 1.20
PORTREVISION= 11
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Uncertainty treatment library
WWW= https://openturns.github.io/www/
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
flex:textproc/flex \
spectra>0:math/spectra
LIB_DEPENDS= libamd.so:math/suitesparse-amd \
libblas.so:math/blas \
libbonmin.so:math/bonmin \
libboost_serialization.so:devel/boost-libs \
libcamd.so:math/suitesparse-camd \
libceres.so:math/ceres-solver \
libCbc.so:math/cbc \
libccolamd.so:math/suitesparse-ccolamd \
libCgl.so:math/cgl \
libcholmod.so:math/suitesparse-cholmod \
libClp.so:math/clp \
libcminpack.so:math/cminpack \
libcoinasl.so:math/asl \
libCoinUtils.so:math/coinutils \
libcolamd.so:math/suitesparse-colamd \
libcxsparse.so:math/suitesparse-cxsparse \
libdlib.so:science/dlib-cpp \
libgif.so:graphics/giflib \
libgflags.so:devel/gflags \
libglog.so:devel/glog \
libgmp.so:math/gmp \
libhdf5_cpp.so:science/hdf5 \
libipopt.so:math/ipopt \
liblapack.so:math/lapack \
libmetis.so:math/metis \
libmpc.so:math/mpc \
libmpfr.so:math/mpfr \
libnauty.so:math/nauty \
libnlopt.so:math/nlopt \
libOsi.so:math/osi \
libpagmo.so:science/pagmo2 \
libpng16.so:graphics/png \
libprimesieve.so:math/primesieve \
libspqr.so:math/suitesparse-spqr \
libsuitesparseconfig.so:math/suitesparse-config \
libsz.so:science/libaec \
libtbb.so:devel/onetbb \
libunwind.so:devel/libunwind
USES= bison blaslapack:openblas cmake eigen:3 gnome jpeg localbase:ldflags pkgconfig sqlite xorg # compiler:c++17-lang
USE_GITHUB= yes
USE_GNOME= libxml2
USE_XORG= ice sm x11 xau xcb xdmcp xext
USE_LDCONFIG= yes
CMAKE_ARGS= -DBLAS_LIBRARIES=${LOCALBASE}/lib/libopenblas.so -DLAPACK_LIBRARIES=${LOCALBASE}/lib/libopenblas.so \
-DOPENTURNS_EXAMPLE_PATH:STRING=share/examples/openturns \
-DOPENTURNS_DOC_PATH:STRING=share/doc/openturns
CMAKE_OFF= USE_DOXYGEN USE_SPHINX
CMAKE_OFF+= USE_HMAT # broken with hmat-oss-1.7.1: https://github.com/openturns/openturns/issues/1868
TEST_TARGET= check # 10 tests are known to fail: https://github.com/openturns/openturns/issues/1919
OPTIONS_DEFINE= PYTHON EXAMPLES
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
PYTHON_USES= python
PYTHON_CMAKE_BOOL= BUILD_PYTHON
PYTHON_CMAKE_ON= -DSWIG_EXECUTABLE=${LOCALBASE}/bin/swig
PYTHON_PY_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}chaospy>0:math/py-chaospy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
PYTHON_BUILD_DEPENDS= swig:devel/swig \
${PYTHON_PY_DEPENDS}
PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS}
PORTEXAMPLES= *
LLVM_VERSION= 12 # workaround for clang-13 crash: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261341
# use clang from ports because cmake can't find base llvm for JIT
BUILD_DEPENDS+= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
RUN_DEPENDS+= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
CPP= clang-cpp${LLVM_VERSION}
CC= clang${LLVM_VERSION}
CXX= clang++${LLVM_VERSION}
post-install:
@${RM} -r ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>