diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-10-17 05:37:34 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-10-17 05:37:34 +0000 |
commit | b7f9e0d5dff78537859ad68805ffa15530662910 (patch) | |
tree | 4f26a17cd540c8871c4104bc7ce62bfc47e4c358 /math | |
parent | Update third-party modules: (diff) |
- fix fetch
- while here adopt optionsNG
PR: 172738
Submitted by: maintainer, fernando.apesteguia@gmail.com
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=305999
Diffstat (limited to 'math')
-rw-r--r-- | math/dynare/Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/math/dynare/Makefile b/math/dynare/Makefile index 34adb107fef5..8a3aeee71f58 100644 --- a/math/dynare/Makefile +++ b/math/dynare/Makefile @@ -1,13 +1,11 @@ -# New ports collection makefile for: dynare -# Date created: Aug 17 2011 -# Whom: Fernando Apesteguia <fernando.apesteguia@gmail.com> +# Created by: 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 +MASTER_SITES= http://www.dynare.org/release/source/ MAINTAINER= fernando.apesteguia@gmail.com COMMENT= Software platform for handling a wide class of economic models @@ -22,22 +20,26 @@ 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 +OPTIONS_DEFINE= OCTAVE MATLAB +OCTAVE_DESC=Enable compilation of MEX files for Octave +MATLAB_DESC= Enable compilation of MEX files for MATLAB +OPTIONS_DEFAULT= OCTAVE -.if defined(WITHOUT_MATLAB) +.include <bsd.port.options.mk> + +.if empty(PORT_OPTIONS:MMATLAB) CONFIGURE_ARGS+= --disable-matlab .endif -.if defined(WITHOUT_OCTAVE) -CONFIGURE_ARGS+= --disable-octave -.else +.if ${PORT_OPTIONS:MOCTAVE} BUILD_DEPENDS+= octave:${PORTSDIR}/math/octave +.else +CONFIGURE_ARGS+= --disable-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 ;\ + ${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} http://www.dynare.org/release/source/dynare-${PORTVERSION}.tar.xz;\ fi post-configure: |