summaryrefslogtreecommitdiff
path: root/math/gretl
diff options
context:
space:
mode:
authorBrendan Fabeny <bf@FreeBSD.org>2011-10-20 01:05:18 +0000
committerBrendan Fabeny <bf@FreeBSD.org>2011-10-20 01:05:18 +0000
commit961cfc0b8a79baec2c691fa942ebe45bb19a6bf4 (patch)
treef13e070f510ebc33e50a6e598fba865ae45d28ea /math/gretl
parent- Use %%DATADIR%% in pkg-plist file (diff)
update to 1.9.6
Diffstat (limited to 'math/gretl')
-rw-r--r--math/gretl/Makefile17
-rw-r--r--math/gretl/distinfo4
-rw-r--r--math/gretl/files/patch-share::bcih::Makefile.in6
-rw-r--r--math/gretl/pkg-plist6
4 files changed, 23 insertions, 10 deletions
diff --git a/math/gretl/Makefile b/math/gretl/Makefile
index 9336eb5c9c20..d9e07715b81b 100644
--- a/math/gretl/Makefile
+++ b/math/gretl/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= gretl
-PORTVERSION= 1.9.5
-PORTREVISION= 2
+PORTVERSION= 1.9.6
CATEGORIES= math finance
MASTER_SITES= SF
@@ -25,7 +24,8 @@ USE_LDCONFIG= yes
WANT_GNOME= yes
ALL_TARGET= # empty
-CONFIGURE_ARGS = --enable-static --enable-shared --with-gmake --without-gnome
+CONFIGURE_ARGS = --enable-static --enable-shared --with-gmake \
+ --without-gnome
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= LAPACK_LIBS="${LAPACK} ${BLAS}"
@@ -34,6 +34,7 @@ MAN1= gretl.1
OPTIONS= ATLAS "Use Atlas for BLAS and LAPACK" off \
GUI "Build the graphical user interface and plugins" on \
NLS "Build with Natural Language Support" on \
+ OPENMP "Use multithreading via OpenMP" on \
ODBC "Build with unixODBC database support" off \
R "Build with libR support" off
@@ -79,6 +80,10 @@ CONFIGURE_ARGS+= --without-odbc
PLIST_SUB+= ODBC="@comment "
.endif
+.if defined(WITH_OPENMP)
+CONFIGURE_ARGS+= --enable-openmp
+.endif
+
.if defined(WITH_R)
CONFIGURE_ARGS+= --with-libR
LIB_DEPENDS+= R.0:${PORTSDIR}/math/R
@@ -86,13 +91,17 @@ LIB_DEPENDS+= R.0:${PORTSDIR}/math/R
CONFIGURE_ARGS+= --without-libR
.endif
-.if ${MACHINE_CPU:Msse2}
+.if !empty(MACHINE_CPU:Msse2)
CONFIGURE_ARGS+= --enable-sse2=yes
.else
CONFIGURE_ARGS+= --enable-sse2=no
.endif
post-patch:
+ @${SED} -i '.orig' -E -e '/#include[[:blank:]]+<sys\/socket\.h>/\
+ {x; s/.*/#include <netinet\/in.h>/; H; x;}' \
+ ${WRKSRC}/configure \
+ ${WRKSRC}/plugin/mailer.c
@${REINPLACE_CMD} -e 's|set term png|set term dumb|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's| DOMAIN| CEPHES_DOMAIN|g' \
diff --git a/math/gretl/distinfo b/math/gretl/distinfo
index 7d298e8bfe65..24c509c62001 100644
--- a/math/gretl/distinfo
+++ b/math/gretl/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gretl-1.9.5.tar.bz2) = cfc6bc9a7c78c3e6819b42c4e5b892e106203a622b1ae76552aed7cf418eb307
-SIZE (gretl-1.9.5.tar.bz2) = 8843566
+SHA256 (gretl-1.9.6.tar.bz2) = 2ec972a8c1935b91d2b6334f9aee64f0fe2b2022496679a959efdc577b0dff71
+SIZE (gretl-1.9.6.tar.bz2) = 9131807
diff --git a/math/gretl/files/patch-share::bcih::Makefile.in b/math/gretl/files/patch-share::bcih::Makefile.in
index 9131e7e9ec99..188de04e97d5 100644
--- a/math/gretl/files/patch-share::bcih::Makefile.in
+++ b/math/gretl/files/patch-share::bcih::Makefile.in
@@ -1,11 +1,11 @@
---- share/bcih/Makefile.in.orig 2009-11-24 00:57:13.000000000 +0900
-+++ share/bcih/Makefile.in 2009-12-04 04:05:47.000000000 +0900
+--- share/bcih/Makefile.in.orig 2011-08-21 15:13:15.000000000 -0400
++++ share/bcih/Makefile.in 2011-10-18 21:24:45.000000000 -0400
@@ -2,7 +2,7 @@
CC = @CC@
HOSTCC = @HOSTCC@
-INSTALL_DATA = cp -fp
+INSTALL_DATA = @INSTALL_DATA@
+ swap_ends = @swap_ends@
ifeq ($(HOSTCC),)
- HOSTCC = $(CC)
diff --git a/math/gretl/pkg-plist b/math/gretl/pkg-plist
index 54970aac0792..c88d1b9cde93 100644
--- a/math/gretl/pkg-plist
+++ b/math/gretl/pkg-plist
@@ -188,10 +188,13 @@ lib/gretl-gtk2/urcdist.so
lib/gretl-gtk2/vif.a
lib/gretl-gtk2/vif.la
lib/gretl-gtk2/vif.so
+%%GUI%%lib/gretl-gtk2/xlsx_import.a
+%%GUI%%lib/gretl-gtk2/xlsx_import.la
+%%GUI%%lib/gretl-gtk2/xlsx_import.so
lib/libgretl-1.0.a
lib/libgretl-1.0.la
lib/libgretl-1.0.so
-lib/libgretl-1.0.so.0
+lib/libgretl-1.0.so.1
libdata/pkgconfig/gretl.pc
%%GUI%%share/applications/gretl.desktop
%%GUI%%%%DATADIR%%/COPYING
@@ -372,6 +375,7 @@ libdata/pkgconfig/gretl.pc
%%DATADIR%%/fonts/VeraMono.ttf
%%DATADIR%%/functions/criteria.gfn
%%DATADIR%%/functions/gretlfunc.dtd
+%%DATADIR%%/functions/packages.xml
%%DATADIR%%/genrcli.hlp
%%DATADIR%%/genrcli.hlp.it
%%DATADIR%%/genrcli.hlp.pt