Date: Thu, 20 Dec 2018 08:34:08 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487857 - head/science/agrum Message-ID: <201812200834.wBK8Y8SJ064839@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Thu Dec 20 08:34:08 2018 New Revision: 487857 URL: https://svnweb.freebsd.org/changeset/ports/487857 Log: science/agrum: Add OPENMP option Modified: head/science/agrum/Makefile Modified: head/science/agrum/Makefile ============================================================================== --- head/science/agrum/Makefile Thu Dec 20 08:30:51 2018 (r487856) +++ head/science/agrum/Makefile Thu Dec 20 08:34:08 2018 (r487857) @@ -2,7 +2,7 @@ PORTNAME= agrum DISTVERSION= 0.13.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science math MAINTAINER= yuri@FreeBSD.org @@ -11,9 +11,8 @@ COMMENT= Graphical modeler for Bayesian networks, infl LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cmake:outsource compiler:c++17-lang +USES= cmake:outsource USE_GITLAB= yes -GL_SITE= https://gitlab.com GL_ACCOUNT= agrumery GL_PROJECT= aGrUM GL_COMMIT= 7fb897064bd26e2844164bad191c97173c71262e @@ -21,17 +20,24 @@ USE_LDCONFIG= yes CMAKE_OFF= USE_SWIG -OPTIONS_DEFINE= ODBC PYTHON -OPTIONS_DEFAULT= PYTHON +OPTIONS_DEFINE= ODBC OPENMP PYTHON +OPTIONS_DEFAULT= OPENMP PYTHON OPTIONS_SUB= yes +ODBC_CMAKE_BOOL= USE_NANODBC ODBC_USES= localbase:ldflags ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC +OPENMP_CMAKE_BOOL= USE_OPENMP +OPENMP_LIB_DEPENDS= libomp.so:devel/openmp + PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_USES= python -post-patch-ODBC-off: # https://gitlab.com/agrumery/aGrUM/issues/22 - @${REINPLACE_CMD} 's|include(Nanodbc.agrum)|#&|' ${WRKSRC}/src/CMakeLists.txt +# use clang from ports because cmake can't find OpenMP with base clang, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 +BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} +CPP= clang-cpp${LLVM_DEFAULT} +CC= clang${LLVM_DEFAULT} +CXX= clang++${LLVM_DEFAULT} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812200834.wBK8Y8SJ064839>