aboutsummaryrefslogtreecommitdiffstats
path: root/science/agrum/Makefile
blob: 1948969e0d84c52c6c4e299fff8f6b0128d737aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $FreeBSD$

PORTNAME=   agrum
DISTVERSION=    0.15.0
CATEGORIES= science math

MAINTAINER= yuri@FreeBSD.org
COMMENT=    Graphical modeler for Bayesian networks, influence diagrams, etc

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE

USES=       cmake
USE_GITLAB= yes
USE_LDCONFIG=   yes

GL_ACCOUNT= agrumery
GL_PROJECT= aGrUM
GL_COMMIT=  7df29be4ed6146f318aed810d02511a60d8afb2d

CMAKE_OFF=  USE_SWIG

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/llvm${LLVM_DEFAULT}

PYTHON_CMAKE_BOOL=  BUILD_PYTHON
PYTHON_USES=        python
PYTHON_PLIST_SUB=   PYTHON_VER_MAJ=${PYTHON_VER:R}

# 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}
RUN_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>