blob: 46cf84969c1de364c4e357a9da0cd1f8dd49c2b2 (
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
54
55
56
57
58
59
60
61
62
63
|
# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
# $FreeBSD$
PORTNAME= dynare
PORTVERSION= 4.4.3
PORTREVISION= 10
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
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/boost/unordered_set.hpp:devel/boost-libs \
ctangle:devel/cweb
LIB_DEPENDS= libumfpack.so:math/suitesparse \
libmatio.so:math/matio \
libhdf5.so:science/hdf5 \
libopenblas.so:math/openblas \
libopenblasp.so:math/openblas \
libfftw3_threads.so:math/fftw3 \
libfftw3.so:math/fftw3 \
libfftw3f_threads.so:math/fftw3-float \
libfftw3f.so:math/fftw3-float \
liblapack.so:math/lapack \
libblas.so:math/blas
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>
|