Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/math/openturns/Makefile
16138 views
PORTNAME=	openturns
DISTVERSIONPREFIX=	v
DISTVERSION=	1.17
PORTREVISION=	1
CATEGORIES=	math

MAINTAINER=	[email protected]
COMMENT=	Uncertainty treatment library

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/COPYING.LESSER

BROKEN_FreeBSD_11=	SymbolicParserExprTk.cxx.o: file not recognized: File format not recognized

BUILD_DEPENDS=	boost-libs>0:devel/boost-libs \
		flex:textproc/flex \
		spectra>0:math/spectra
LIB_DEPENDS=	libbonmin.so:math/bonmin \
		libceres.so:math/ceres-solver \
		libCbc.so:math/cbc \
		libCgl.so:math/cgl \
		libClp.so:math/clp \
		libcminpack.so:math/cminpack \
		libCoinUtils.so:math/coinutils \
		libdlib.so:science/dlib-cpp \
		libgif.so:graphics/giflib \
		libgflags.so:devel/gflags \
		libglog.so:devel/glog \
		libhdf5_cpp.so:science/hdf5 \
		libhmat-oss.so:math/hmat-oss \
		libipopt.so:math/ipopt \
		libmpc.so:math/mpc \
		libmpfr.so:math/mpfr \
		libnlopt.so:math/nlopt \
		libopt.so:math/optpp \
		libOsi.so:math/osi \
		libpng16.so:graphics/png \
		libsz.so:science/szip \
		libtbb.so:devel/onetbb

USES=		bison blaslapack:openblas cmake compiler:c++14-lang eigen:3 gnome jpeg localbase:ldflags pkgconfig sqlite xorg
USE_GITHUB=	yes
USE_GNOME=	libxml2
USE_XORG=	ice sm x11 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

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_BUILD_DEPENDS=	swig:devel/swig \
			${PYTHON_RUN_DEPENDS}
PYTHON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}

PORTEXAMPLES=		*

post-install:
	@${RM} -r ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>