aboutsummaryrefslogtreecommitdiff
path: root/math/mcsim/Makefile
blob: aa6385da12b0a00e78553a87c0910ae9e80acb24 (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
46
# Created by: Alessando Sagratini <ale_sagra@hotmail.com>

PORTNAME=	mcsim
PORTVERSION=	6.2.0
PORTREVISION=	2
CATEGORIES=	math
MASTER_SITES=	GNU

MAINTAINER=	ale_sagra@hotmail.com
COMMENT=	Monte Carlo stochastic simulations and Bayesian inference

LICENSE=	GPLv3+

BUILD_DEPENDS=	indexinfo>=0.3.0:print/indexinfo

USES=		libtool shebangfix

USE_LDCONFIG=	yes

INFO=		mcsim

SHEBANG_FILES=	sim/makemcsim.in sim/makemcsims.in sim/makemcsimd.in sim/makemcsimp.in

INSTALL_TARGET=	install-strip

GNU_CONFIGURE=	yes
OPTIONS_SUB=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX}

OPTIONS_DEFINE=	GSL SUNDIALS
GSL_DESC=	GNU Scientific Library support (recommended)
SUNDIALS_DESC=	Sundial's Cvodes integrator

OPTIONS_DEFAULT=GSL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSUNDIALS}
BUILD_DEPENDS+=	sundials>=3.0.0:math/sundials
.endif

.if ${PORT_OPTIONS:MGSL}
BUILD_DEPENDS+=	gsl>=2.5:math/gsl
.endif

.include <bsd.port.mk>