aboutsummaryrefslogtreecommitdiffstats
path: root/misc/nut
diff options
context:
space:
mode:
authorculot <culot@FreeBSD.org>2012-06-02 15:36:13 +0800
committerculot <culot@FreeBSD.org>2012-06-02 15:36:13 +0800
commit9db7c84b185750a7525535fe300b5fa361a434d0 (patch)
tree2ace3abbe2caaa5e7b3aa73e15af0838b433e5e0 /misc/nut
parente9cf1ba3cf2f5738e5e219b92760c83173be4d70 (diff)
downloadfreebsd-ports-gnome-9db7c84b185750a7525535fe300b5fa361a434d0.tar.gz
freebsd-ports-gnome-9db7c84b185750a7525535fe300b5fa361a434d0.tar.zst
freebsd-ports-gnome-9db7c84b185750a7525535fe300b5fa361a434d0.zip
- Update to 17.9
- Convert to new options framework
Diffstat (limited to 'misc/nut')
-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