aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-04 00:09:40 +0800
committeradamw <adamw@FreeBSD.org>2014-07-04 00:09:40 +0800
commit7e3b66fd4f6ecc8287f75ffb8bc2914d596d4758 (patch)
tree74caf2cb9a88cdd69364a1640abfcfbc43309497 /x11-wm
parent9c84e8c6c5ed5d561173f1628faa343040d4790a (diff)
downloadfreebsd-ports-gnome-7e3b66fd4f6ecc8287f75ffb8bc2914d596d4758.tar.gz
freebsd-ports-gnome-7e3b66fd4f6ecc8287f75ffb8bc2914d596d4758.tar.zst
freebsd-ports-gnome-7e3b66fd4f6ecc8287f75ffb8bc2914d596d4758.zip
Avoid unnecessary bsd.port.options.mk inclusion by using
OPTIONS helpers. Approved by: portmgr (blanket)
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/plank/Makefile24
1 files changed, 6 insertions, 18 deletions
diff --git a/x11-wm/plank/Makefile b/x11-wm/plank/Makefile
index e39c024fe945..9e3274ef40bd 100644
--- a/x11-wm/plank/Makefile
+++ b/x11-wm/plank/Makefile
@@ -22,6 +22,7 @@ GNU_CONFIGURE= yes
USE_GNOME= glib20 gtk30 gdkpixbuf2 libxml2 libwnck3
USE_XORG= x11
INSTALLS_ICONS= yes
+OPTIONS_SUB= yes
OPTIONS_DEFINE= NLS DBUSMENU
DBUSMENU_DESC= DBusMenu protocol
@@ -30,23 +31,10 @@ CONFIGURE_ARGS= --enable-gee-0.8 \
--disable-benchmark \
--disable-headless-tests
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS+=--enable-nls
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MDBUSMENU}
-# Need GTK3 support
-LIB_DEPENDS+= libdbusmenu-gtk3.so:${PORTSDIR}/devel/libdbusmenu
-CONFIGURE_ARGS+=--enable-dbusmenu
-.else
-CONFIGURE_ARGS+=--disable-dbusmenu
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
+
+DBUSMENU_LIB_DEPENDS= libdbusmenu-gtk3.so:${PORTSDIR}/devel/libdbusmenu
+DBUSMENU_CONFIGURE_ENABLE= dbusmenu
.include <bsd.port.mk>