svn commit: r375505 - head/chinese/fcitx-configtool

Baptiste Daroussin bapt at FreeBSD.org
Thu Dec 25 01:26:28 UTC 2014


Author: bapt
Date: Thu Dec 25 01:26:27 2014
New Revision: 375505
URL: https://svnweb.freebsd.org/changeset/ports/375505
QAT: https://qat.redports.org/buildarchive/r375505/

Log:
  Remove gnomehack which was unused anyway
  While here:
  - Use OPTIONS_SUB
  - Use OPTIONS_SINGLE

Modified:
  head/chinese/fcitx-configtool/Makefile

Modified: head/chinese/fcitx-configtool/Makefile
==============================================================================
--- head/chinese/fcitx-configtool/Makefile	Thu Dec 25 01:17:49 2014	(r375504)
+++ head/chinese/fcitx-configtool/Makefile	Thu Dec 25 01:26:27 2014	(r375505)
@@ -15,32 +15,26 @@ BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgc
 		${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
 LIB_DEPENDS=	libfcitx-config.so:${PORTSDIR}/chinese/fcitx
 
-USE_GNOME=	intltool gnomehack
+USE_GNOME=	intltool
 USES=		cmake gettext pkgconfig tar:xz
 
-OPTIONS_DEFINE=	GTK2 GTK3
+OPTIONS_SINGLE=	UI
+UI_DESC=	Gtk version to use
+OPTIONS_SINGLE_UI=	GTK2 GTK3
 OPTIONS_DEFAULT=GTK2
+OPTIONS_SUB=	yes
 
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MGTK2}
 CMAKE_ARGS+=	-DENABLE_GTK2=ON
 USE_GNOME+=	gtk20
-PLIST_SUB+=	GTK2=""
-.else
-PLIST_SUB+=	GTK2="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MGTK3}
 USE_GNOME+=	gtk30
-PLIST_SUB+=	GTK3=""
 .else
 CMAKE_ARGS+=	-DENABLE_GTK3=OFF
-PLIST_SUB+=	GTK3="@comment "
-.endif
-
-.if !${PORT_OPTIONS:MGTK2} && !${PORT_OPTIONS:MGTK3}
-IGNORE=		a GUI is required
 .endif
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list