diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-04 00:05:42 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-04 00:05:42 +0800 |
commit | 7e12195a613f01110a273ec635530df4492a8b50 (patch) | |
tree | 9c1fe9de66e59427fbd58ecfa1a9b3e56d0a5640 /devel | |
parent | 7c10d40ebf5a7cc46d8310f0ce66aaab4b785520 (diff) | |
download | freebsd-ports-gnome-7e12195a613f01110a273ec635530df4492a8b50.tar.gz freebsd-ports-gnome-7e12195a613f01110a273ec635530df4492a8b50.tar.zst freebsd-ports-gnome-7e12195a613f01110a273ec635530df4492a8b50.zip |
Avoid unnecessary bsd.port.options.mk inclusion by using
OPTIONS helpers.
Approved by: portmgr (blanket)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libdbusmenu/Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
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 <bsd.port.options.mk> - -.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 <bsd.port.mk> |