e4b7b9118a
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some circumstances such as versions of FreeBSD or platforms), part II. The first part covered ports with USE_GCC=yes, USE_GCC=any, or one of gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang, c++11-lang, c++0x, c11 requested via USES=compiler. This adds ports with USES=fortran and ports using Mk/bsd.octave.mk which in turn has USES=fortran. PR: 214965 Reported by: thierry
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dynare
|
|
PORTVERSION= 4.4.3
|
|
PORTREVISION= 6
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.dynare.org/release/source/
|
|
|
|
MAINTAINER= fernando.apesteguia@gmail.com
|
|
COMMENT= Software platform for handling a wide class of economic models
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/unordered_set.hpp:devel/boost-libs \
|
|
ctangle:devel/cweb
|
|
LIB_DEPENDS= libumfpack.so:math/suitesparse \
|
|
libmatio.so:math/matio
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
GNU_CONFIGURE= yes
|
|
USES= fortran gmake pkgconfig tar:xz
|
|
|
|
INFO= dynare
|
|
|
|
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
|
|
|
|
MATLAB_CONFIGURE_ENABLE= matlab
|
|
OCTAVE_CONFIGURE_ENABLE= octave
|
|
OCTAVE_BUILD_DEPENDS= octave:math/octave
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
pre-configure:
|
|
# fix matio detection
|
|
${REINPLACE_CMD} 's,-lmatio .*$$LIBS,`pkgconf --libs matio`,' \
|
|
${WRKSRC}/configure ${WRKSRC}/mex/build/octave/configure
|
|
|
|
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>
|