Date: Wed, 17 Oct 2012 05:37:35 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305999 - head/math/dynare Message-ID: <201210170537.q9H5bZC8003267@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Wed Oct 17 05:37:34 2012 New Revision: 305999 URL: http://svn.freebsd.org/changeset/ports/305999 Log: - fix fetch - while here adopt optionsNG PR: 172738 Submitted by: maintainer, fernando.apesteguia@gmail.com Feature safe: yes Modified: head/math/dynare/Makefile Modified: head/math/dynare/Makefile ============================================================================== --- head/math/dynare/Makefile Wed Oct 17 02:17:42 2012 (r305998) +++ head/math/dynare/Makefile Wed Oct 17 05:37:34 2012 (r305999) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210170537.q9H5bZC8003267>