aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/nut/Makefile12
-rw-r--r--misc/nut/distinfo4
2 files changed, 8 insertions, 8 deletions
diff --git a/misc/nut/Makefile b/misc/nut/Makefile
index e88ae0567039..3067c4abdf51 100644
--- a/misc/nut/Makefile
+++ b/misc/nut/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nut
-PORTVERSION= 17.8
+PORTVERSION= 17.9
CATEGORIES= misc
MASTER_SITES= SF
PKGNAMEPREFIX= health-
@@ -17,8 +17,6 @@ COMMENT= Nutrition software to record what you eat
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/LICENSE
-OPTIONS= GUI "Build FLTK-based GUI" off
-
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
@@ -31,9 +29,11 @@ PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/FOOD_DES.txt \
%%DATADIR%%/WEIGHT.txt %%DATADIR%%/sr24.nut
PLIST_DIRS= %%DATADIR%%
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= GUI
-.if defined(WITH_GUI)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUI}
USE_XORG= xpm
BUILD_DEPENDS+= ${LOCALBASE}/lib/fltk11/libfltk.so:${PORTSDIR}/x11-toolkits/fltk11
MAKE_ENV+= HAVE_FLTK=1 FLTK_NUT="fltk/Nut"
@@ -67,4 +67,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/misc/nut/distinfo b/misc/nut/distinfo
index 86502d1cd34c..848586962460 100644
--- a/misc/nut/distinfo
+++ b/misc/nut/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nut-17.8.tar.gz) = 2092a0b69f0464a3c3cb12bee99874dbe241ccb88a256ca50c82e67212d0f23e
-SIZE (nut-17.8.tar.gz) = 1317795
+SHA256 (nut-17.9.tar.gz) = 7a69b819a905c3a9e25aeb2de17ae48818cc6d6e047d1b1ca5c134bafc27bfee
+SIZE (nut-17.9.tar.gz) = 1314833