mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
47f2a71855
PR: ports/169298 Submitted by: Fernando <fernando.apesteguia@gmail.com> Approved by: crees, tabthorpe (mentors, implicit)
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# 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>
|