From db6bd6448b600fb72a220975ebc70441a25f0837 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Thu, 3 Jul 2014 16:05:42 +0000 Subject: Avoid unnecessary bsd.port.options.mk inclusion by using OPTIONS helpers. Approved by: portmgr (blanket) --- devel/libdbusmenu/Makefile | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'devel/libdbusmenu') diff --git a/devel/libdbusmenu/Makefile b/devel/libdbusmenu/Makefile index 499f34190a69..5852833b5ea8 100644 --- a/devel/libdbusmenu/Makefile +++ b/devel/libdbusmenu/Makefile @@ -26,6 +26,7 @@ USE_XORG= x11 USE_LDCONFIG= yes PLIST_SUB= VERSION="0.4" +OPTIONS_SUB= yes OPTIONS_SINGLE= GTK OPTIONS_SINGLE_GTK= GTK2 GTK3 @@ -39,22 +40,13 @@ CONFIGURE_ARGS= --disable-scrollkeeper \ --disable-nls \ --enable-vala \ --without-omf-dir \ - --without-help-dir - -.include - -.if ${PORT_OPTIONS:MGTK2} -USE_GNOME+= gtk20 -CONFIGURE_ARGS+=--enable-gtk --with-gtk=2 -PLIST_SUB+= GTK2="" -PLIST_SUB+= GTK3="@comment " -.endif - -.if ${PORT_OPTIONS:MGTK3} -USE_GNOME+= gtk30 -CONFIGURE_ARGS+=--enable-gtk --with-gtk=3 -PLIST_SUB+= GTK2="@comment " -PLIST_SUB+= GTK3="" -.endif + --without-help-dir \ + --enable-gtk + +GTK2_USE= GNOME=gtk20 +GTK2_CONFIGURE_ON= --with-gtk=2 + +GTK3_USE= GNOME=gtk30 +GTK3_CONFIGURE_ON= --with-gtk=3 .include -- cgit v1.2.3