aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2012-06-07 11:36:00 +0800
committerbf <bf@FreeBSD.org>2012-06-07 11:36:00 +0800
commit0f518ee61eecaba9a7fad8f7a12e0eff716f796d (patch)
treef9431b3d5d01027094a2927c453988210a38845e /math
parent1550108b4b315baa381ccfba192146ea0c5fe814 (diff)
downloadfreebsd-ports-gnome-0f518ee61eecaba9a7fad8f7a12e0eff716f796d.tar.gz
freebsd-ports-gnome-0f518ee61eecaba9a7fad8f7a12e0eff716f796d.tar.zst
freebsd-ports-gnome-0f518ee61eecaba9a7fad8f7a12e0eff716f796d.zip
update to 1.9.9 and convert options to the new style
Diffstat (limited to 'math')
-rw-r--r--math/gretl/Makefile45
-rw-r--r--math/gretl/distinfo4
-rw-r--r--math/gretl/pkg-plist2
3 files changed, 27 insertions, 24 deletions
diff --git a/math/gretl/Makefile b/math/gretl/Makefile
index 86beff0e5375..ed7c481f1baa 100644
--- a/math/gretl/Makefile
+++ b/math/gretl/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= gretl
-PORTVERSION= 1.9.8
-PORTREVISION= 1
+PORTVERSION= 1.9.9
CATEGORIES= math finance
MASTER_SITES= SF
@@ -32,27 +31,31 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= LAPACK_LIBS="${LAPACK} ${BLAS}"
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
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE = ATLAS GUI ODBC OPENMP R
-.if defined(WITH_ATLAS)
-LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
+ATLAS_DESC = Use ATLAS for BLAS and LAPACK
+GUI_DESC= Build the graphical user interface and plugins
+ODBC_DESC= Build with unixODBC database support
+OPENMP_DESC= Use multithreading via OpenMP
+R_DESC= Build with libR support
+
+OPTIONS_DEFAULT= GUI OPENMP
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MATLAS}
+LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
BLAS= -lf77blas
LAPACK= -lalapack -lcblas
.else
-LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas \
- lapack.4:${PORTSDIR}/math/lapack
+LIB_DEPENDS+= blas:${PORTSDIR}/math/blas \
+ lapack:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
.endif
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
CONFIGURE_ARGS+= --enable-gui=yes
USE_GNOME= gnomehier gtksourceview2
BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
@@ -63,7 +66,7 @@ CONFIGURE_ARGS+= --enable-gui=no
PLIST_SUB+= GUI="@comment "
.endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --enable-nls=yes
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
@@ -72,7 +75,7 @@ CONFIGURE_ARGS+= --enable-nls=no
PLIST_SUB+= NLS="@comment "
.endif
-.if defined(WITH_ODBC)
+.if ${PORT_OPTIONS:MODBC}
CONFIGURE_ARGS+= --with-odbc
LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
PLIST_SUB+= ODBC=""
@@ -81,13 +84,13 @@ CONFIGURE_ARGS+= --without-odbc
PLIST_SUB+= ODBC="@comment "
.endif
-.if defined(WITH_OPENMP)
+.if ${PORT_OPTIONS:MOPENMP}
CONFIGURE_ARGS+= --enable-openmp
.endif
-.if defined(WITH_R)
+.if ${PORT_OPTIONS:MR}
CONFIGURE_ARGS+= --with-libR
-LIB_DEPENDS+= R.0:${PORTSDIR}/math/R
+LIB_DEPENDS+= R:${PORTSDIR}/math/R
.else
CONFIGURE_ARGS+= --without-libR
.endif
@@ -110,7 +113,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|@gnome_prefix@|@prefix@|g' \
${WRKSRC}/gnome/gretl.keys.in
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
post-install:
@${MKDIR} ${PREFIX}/share/applications
.for _file in gretl.desktop
@@ -139,4 +142,4 @@ regression-test test check: build
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
${MAKE_ARGS} check)
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/gretl/distinfo b/math/gretl/distinfo
index 9fcaf42cf414..e07d170f351e 100644
--- a/math/gretl/distinfo
+++ b/math/gretl/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gretl-1.9.8.tar.bz2) = 7225d2fe62e2bd5c90fbd1de47b04cb5e1eb91c8c40741ab2f54d3906d10ffab
-SIZE (gretl-1.9.8.tar.bz2) = 9298317
+SHA256 (gretl-1.9.9.tar.bz2) = 87caa9b780cab18e7795de1cc2ef95fee5cda154b72a90006abac60d959229aa
+SIZE (gretl-1.9.9.tar.bz2) = 9260961
diff --git a/math/gretl/pkg-plist b/math/gretl/pkg-plist
index 0033f70b5563..937e40b7d0fe 100644
--- a/math/gretl/pkg-plist
+++ b/math/gretl/pkg-plist
@@ -194,7 +194,7 @@ lib/gretl-gtk2/vif.so
lib/libgretl-1.0.a
lib/libgretl-1.0.la
lib/libgretl-1.0.so
-lib/libgretl-1.0.so.3
+lib/libgretl-1.0.so.4
libdata/pkgconfig/gretl.pc
%%GUI%%share/applications/gretl.desktop
%%GUI%%%%DATADIR%%/COPYING