aboutsummaryrefslogtreecommitdiff
path: root/misc/nut/Makefile
diff options
context:
space:
mode:
authorFrederic Culot <culot@FreeBSD.org>2012-06-02 07:36:13 +0000
committerFrederic Culot <culot@FreeBSD.org>2012-06-02 07:36:13 +0000
commitd1ce817d8f1def2318359480c4ea3046c587eb4a (patch)
treefb7aa83a3b4a32bf1a4b6b03b1fecf4677ad6a05 /misc/nut/Makefile
parent52f64122fde3769e0067cd50e89ea0c2ecda0077 (diff)
downloadports-d1ce817d8f1def2318359480c4ea3046c587eb4a.tar.gz
ports-d1ce817d8f1def2318359480c4ea3046c587eb4a.zip
- Update to 17.9
- Convert to new options framework
Notes
Notes: svn path=/head/; revision=297992
Diffstat (limited to 'misc/nut/Makefile')
-rw-r--r--misc/nut/Makefile12
1 files changed, 6 insertions, 6 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>