aboutsummaryrefslogtreecommitdiffstats
path: root/math/ambit/Makefile
blob: e6e7906e6414c009ba0703893119d077bc5d91cd (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
# $FreeBSD$

PORTNAME=   ambit
DISTVERSIONPREFIX=  v
DISTVERSION=    0.3
PORTREVISION=   3
CATEGORIES= math
PKGNAMESUFFIX=  -tensor # avoid clash with shells/ambit

MAINTAINER= yuri@FreeBSD.org
COMMENT=    C++ library for tensor product calculations

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libhdf5.so:science/hdf5 \
        libomp.so:devel/openmp \
        libopenblas.so:math/openblas \
        libsz.so:science/szip

USES=       cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= jturney

# some declared cmake options do nothing: see https://github.com/jturney/ambit/issues/25 and the patch
CMAKE_ARGS+=    -DSHARED_ONLY:BOOL=ON
CMAKE_ARGS+=    -DENABLE_OPENMP:BOOL=ON
CMAKE_ARGS+=    -DENABLE_TESTS:BOOL=OFF # https://github.com/jturney/ambit/issues/24

.include <bsd.port.mk>