2002-03-22 17:22:20 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gretl
|
|
|
|
# Date created: Mar 22, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gretl
|
2009-02-20 17:32:30 +01:00
|
|
|
PORTVERSION= 1.8.0
|
2009-05-18 17:08:58 +02:00
|
|
|
PORTREVISION= 1
|
Move misc/gretl to math/gretl; add secondary category of finance
gretl is used in the mathematical analysis of time series,
and has a functionality that is similar to various statistical
and signal processing components of it++, octave, scilab,
R, numpy/scipy, etc. -- most of which are in the math
category. It should really be placed there, rather than
in misc. In recognition of the fact that it implements
some methods that are commonly (but not exclusively!) used
in econometrics, it should also be given a secondary listing
in finance. (In my opinion, however, it shouldn't be given
a primary listing in that category, because most of the
ports there deal with the nuts-and-bolts of accounting,
payment methods, taxes, and stock tracking. To my knowledge,
the only ports now in finance that remotely resemble gretl
are quantlib, xtrader, and qtstalker, all of which employ
simpler methods that are more specific to financial time
series than are the more general methods in gretl.
PR: ports/113052
Submitted by: bf <bf2006a@yahoo.com>
2007-06-04 13:34:17 +02:00
|
|
|
CATEGORIES= math finance
|
2007-05-27 12:40:21 +02:00
|
|
|
MASTER_SITES= SF
|
2002-03-22 17:22:20 +01:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Gnu Regression, Econometrics and Time-series Library
|
2002-03-22 17:22:20 +01:00
|
|
|
|
2002-11-27 15:23:12 +01:00
|
|
|
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
2009-05-18 17:08:58 +02:00
|
|
|
LIB_DEPENDS= fftw3.5:${PORTSDIR}/math/fftw3 \
|
2009-01-31 00:23:18 +01:00
|
|
|
mpfr.3:${PORTSDIR}/math/mpfr
|
2003-04-26 02:30:43 +02:00
|
|
|
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
2002-03-22 17:22:20 +01:00
|
|
|
|
2003-04-26 02:30:43 +02:00
|
|
|
USE_BZIP2= yes
|
2003-04-29 00:52:48 +02:00
|
|
|
WANT_GNOME= yes
|
2009-01-14 10:12:07 +01:00
|
|
|
USE_GNOME= gtk20 libxml2
|
2006-08-07 05:09:35 +02:00
|
|
|
USE_GETTEXT= yes
|
2003-07-27 22:47:04 +02:00
|
|
|
USE_GMAKE= yes
|
2009-01-14 10:12:07 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2008-03-13 21:56:47 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lgnuregex ${GCCLIBDIR}"
|
2007-05-27 12:40:21 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static --enable-shared --with-gmake
|
2003-12-25 19:02:18 +01:00
|
|
|
ALL_TARGET= # empty
|
2007-05-27 12:40:21 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-03-22 17:22:20 +01:00
|
|
|
|
2004-11-18 21:40:46 +01:00
|
|
|
MAN1= gretl.1 gretl-config.1
|
2002-03-22 17:22:20 +01:00
|
|
|
|
2007-07-14 11:27:27 +02:00
|
|
|
USE_FORTRAN= yes
|
2009-01-10 12:45:01 +01:00
|
|
|
CONFIGURE_ENV+= LAPACK_LIBS="${BLAS} ${LAPACK} -l${FORTRANRUNTIME}"
|
2007-01-23 02:21:15 +01:00
|
|
|
FORTRANRUNTIME= gfortran
|
2007-03-27 09:38:08 +02:00
|
|
|
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
|
2007-01-23 02:21:15 +01:00
|
|
|
|
2003-04-29 00:52:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-05-27 12:40:21 +02:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
BROKEN= math/lapack appears to be broken on alpha
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mlibgnomeui}!=""
|
|
|
|
PKGNAMESUFFIX= -gnome
|
2009-01-14 10:12:07 +01:00
|
|
|
USE_GNOME+= gnomehier gtksourceview2 libgnomeui
|
2007-05-27 12:40:21 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome --without-gtksourceview
|
|
|
|
.endif
|
|
|
|
|
2007-01-23 02:21:15 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
2007-03-27 09:38:08 +02:00
|
|
|
WITH_ATLAS= yes
|
2007-01-23 02:21:15 +01:00
|
|
|
.endif
|
2007-05-27 12:40:21 +02:00
|
|
|
|
2007-01-23 02:21:15 +01:00
|
|
|
.if defined(WITH_ATLAS)
|
2007-03-27 09:38:08 +02:00
|
|
|
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
2007-01-23 02:21:15 +01:00
|
|
|
BLAS= -lf77blas -latlas
|
|
|
|
LAPACK= -lalapack -lcblas
|
|
|
|
.else
|
2007-03-27 09:38:08 +02:00
|
|
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
|
|
|
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
2007-01-23 02:21:15 +01:00
|
|
|
BLAS= -lblas
|
|
|
|
LAPACK= -llapack
|
|
|
|
.endif
|
|
|
|
|
2008-03-13 21:56:47 +01:00
|
|
|
post-patch:
|
2009-01-14 10:12:07 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|set term png|set term dumb|g' \
|
|
|
|
${WRKSRC}/configure
|
2009-01-05 22:05:49 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|<regex.h>|<gnu/regex.h>|g' \
|
2008-03-13 21:56:47 +01:00
|
|
|
${WRKSRC}/gui2/gtksourceview/gtksourceregex.c
|
|
|
|
|
2007-02-04 09:59:45 +01:00
|
|
|
pre-configure:
|
|
|
|
@${DIRNAME} `${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
|
2007-01-23 02:21:15 +01:00
|
|
|
|
2003-04-29 00:52:48 +02:00
|
|
|
.include <bsd.port.post.mk>
|