aboutsummaryrefslogblamecommitdiff
path: root/science/agrum/Makefile
blob: 9c5afa20659f728a9dd411d462f139bbac447eae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                     
                      
                 







                                                                                
                     
                   

                   

                        
                                                        
 

                        

                                          

                           
                                   


                                                     
                                  
                                                           

                                                                                                                                                     
 

                                    
                                                      
 

                                                                                                                                    
                                                              


                                        

                      
# $FreeBSD$

PORTNAME=	agrum
DISTVERSION=	0.15.2
PORTREVISION=	1
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=	7a1c7ce5f485fff22e643c1f369637444aa02f85

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}
OPENMP_LDFLAGS=		${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/libomp.so # XXX it still links to libomp.so from the openmp package when it is installed
OPENMP_CONFLICTS_BUILD=	openmp

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>