aboutsummaryrefslogtreecommitdiff
path: root/math/dynare/Makefile
blob: 34adb107fef558cb890e95976a5c7624fbc99b38 (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
47
48
49
50
51
52
53
# New ports collection makefile for:   dynare
# Date created:                Aug 17 2011
# Whom:                        Fernando Apesteguia <fernando.apesteguia@gmail.com>
#
# $FreeBSD$

PORTNAME=	dynare
PORTVERSION=	4.3.0
CATEGORIES=	math
MASTER_SITES=	http://www.dynare.org/download/dynare-4.3/source/${DISTNAME}${EXTRACT_SUFX}/at_download/file

MAINTAINER=	fernando.apesteguia@gmail.com
COMMENT=	Software platform for handling a wide class of economic models

BUILD_DEPENDS=	${LOCALBASE}/include/boost/unordered_set.hpp:${PORTSDIR}/devel/boost-libs

WRKSRC=		${WRKDIR}/${DISTNAME}
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_FORTRAN=	yes
USE_XZ=		yes

INFO=		dynare

OPTIONS+=	OCTAVE	"Enable compilation of MEX files for Octave"	on
OPTIONS+=	MATLAB	"Enable compilation of MEX files for MATLAB"	off

.if defined(WITHOUT_MATLAB)
CONFIGURE_ARGS+=	--disable-matlab
.endif

.if defined(WITHOUT_OCTAVE)
CONFIGURE_ARGS+=	--disable-octave
.else
BUILD_DEPENDS+=		octave:${PORTSDIR}/math/octave
.endif

do-fetch:
	if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
		${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} http://www.dynare.org/download/dynare-4.3/source/${DISTNAME}${EXTRACT_SUFX}/at_download/file ;\
	fi

post-configure:
	@${ECHO_MSG} ""
	@${ECHO_MSG} ""
	@${ECHO_MSG} "*******************************************************************************"
	@${ECHO_MSG} "Follow instructions at http://www.freebsd.org/doc/handbook/linuxemu-matlab.html"
	@${ECHO_MSG} "on how to install MATLAB on FreeBSD"
	@${ECHO_MSG} "*******************************************************************************"
	@${ECHO_MSG} ""
	@${ECHO_MSG} ""

.include <bsd.port.mk>