svn commit: r360397 - head/x11-wm/plank
Adam Weinberger
adamw at FreeBSD.org
Thu Jul 3 16:09:40 UTC 2014
Author: adamw
Date: Thu Jul 3 16:09:40 2014
New Revision: 360397
URL: http://svnweb.freebsd.org/changeset/ports/360397
QAT: https://qat.redports.org/buildarchive/r360397/
Log:
Avoid unnecessary bsd.port.options.mk inclusion by using
OPTIONS helpers.
Approved by: portmgr (blanket)
Modified:
head/x11-wm/plank/Makefile
Modified: head/x11-wm/plank/Makefile
==============================================================================
--- head/x11-wm/plank/Makefile Thu Jul 3 16:09:21 2014 (r360396)
+++ head/x11-wm/plank/Makefile Thu Jul 3 16:09:40 2014 (r360397)
@@ -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>
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
-.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
+DBUSMENU_LIB_DEPENDS= libdbusmenu-gtk3.so:${PORTSDIR}/devel/libdbusmenu
+DBUSMENU_CONFIGURE_ENABLE= dbusmenu
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list