diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-04 00:29:46 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-04 00:29:46 +0800 |
commit | 0dfebc0de702f7374594cd5b219ce97dbd779fd5 (patch) | |
tree | 2e3f277d3cf2c5662abc8d3547dd0dc1c3c0514e /textproc | |
parent | 99fb78f52be25215d3103550d33273e56dbca1c9 (diff) | |
download | freebsd-ports-gnome-0dfebc0de702f7374594cd5b219ce97dbd779fd5.tar.gz freebsd-ports-gnome-0dfebc0de702f7374594cd5b219ce97dbd779fd5.tar.zst freebsd-ports-gnome-0dfebc0de702f7374594cd5b219ce97dbd779fd5.zip |
Clean up by using OPTIONS helpers.
Approved by: portmgr (blanket)
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ibus/Makefile | 129 |
1 files changed, 35 insertions, 94 deletions
diff --git a/textproc/ibus/Makefile b/textproc/ibus/Makefile index ae381dfe58d1..1aeb76869b7a 100644 --- a/textproc/ibus/Makefile +++ b/textproc/ibus/Makefile @@ -28,6 +28,7 @@ USE_PYTHON= yes USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALLS_ICONS= yes +OPTIONS_SUB= yes INSTALL_TARGET= install-strip CONFIGURE_ARGS= --disable-tests CPPFLAGS+= -I${LOCALBASE}/include @@ -49,116 +50,56 @@ DCONF_DESC= Use dconf for configuration XIM_DESC= Install XIM server ENGINE_DESC= Install ibus simple engine -.include <bsd.port.pre.mk> +ISOCODES_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes +ISOCODES_RUN_DEPENDS= ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:${PORTSDIR}/misc/iso-codes +ISOCODES_CONFIGURE_OFF= --disable-iso-codes-check -.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46 -USE_GCC= yes -.endif +NLS_USES= gettext +NLS_CONFIGURE_WITH= nls -.if ${PORT_OPTIONS:MISOCODES} -BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes -RUN_DEPENDS+= ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:${PORTSDIR}/misc/iso-codes -.else -CONFIGURE_ARGS+= --disable-iso-codes-check -.endif +GTK2_USE= GNOME=gtk20 +GTK2_CONFIGURE_ENABLE= gtk2 -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif +GTK3_USE= GNOME=gtk30 +GTK3_CONFIGURE_ENABLE= gtk3 libnotify +GTK3_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify -.if ${PORT_OPTIONS:MGTK2} -CONFIGURE_ARGS+= --enable-gtk2 -USE_GNOME+= gtk20 -PLIST_SUB+= GTK2="" -.else -CONFIGURE_ARGS+= --disable-gtk2 -PLIST_SUB+= GTK2="@comment " -.endif +VALA_BUILD_DEPENDS= vala-vapigen>=0.16:${PORTSDIR}/lang/vala-vapigen +VALA_CONFIGURE_ENABLE= vala -.if ${PORT_OPTIONS:MGTK3} -# libnotify is used by the GTK3 UI module -CONFIGURE_ARGS+= --enable-gtk3 --enable-libnotify -USE_GNOME+= gtk30 -LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify -PLIST_SUB+= GTK3="" -.else -CONFIGURE_ARGS+= --disable-gtk3 --disable-libnotify -PLIST_SUB+= GTK3="@comment " -.endif +GINTRO_BUILD_DEPENDS= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection +GINTRO_RUN_DEPENDS= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection +GINTRO_CONFIGURE_ON= --enable-introspection=yes +GINTRO_CONFIGURE_OFF= --enable-introspection=no -.if ${PORT_OPTIONS:MVALA} -CONFIGURE_ARGS+= --enable-vala -BUILD_DEPENDS+= vala-vapigen>=0.16:${PORTSDIR}/lang/vala-vapigen -PLIST_SUB+= VALA="" -.else -CONFIGURE_ARGS+= --disable-vala -PLIST_SUB+= VALA="@comment " -.endif +PYTHON_LIB_USE= GNOME=pygtk2 +PYTHON_LIB_CONFIGURE_ENABLE= python-library -.if ${PORT_OPTIONS:MGINTRO} -BUILD_DEPENDS+= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection -RUN_DEPENDS+= gobject-introspection>=0.6.8:${PORTSDIR}/devel/gobject-introspection -CONFIGURE_ARGS+= --enable-introspection=yes -PLIST_SUB+= GINTRO="" -.else -CONFIGURE_ARGS+= --enable-introspection=no -PLIST_SUB+= GINTRO="@comment " -.endif +GCONF_USE= GNOME=gconf2 +GCONF_CONFIGURE_ENABLE= gconf -.if ${PORT_OPTIONS:MPYTHON_LIB} -CONFIGURE_ARGS+= --enable-python-library -PLIST_SUB+= PYTHON_LIB="" -USE_GNOME+= pygtk2 -.else -CONFIGURE_ARGS+= --disable-python-library -PLIST_SUB+= PYTHON_LIB="@comment " +DCONF_USE= GNOME=dconf,gconf2 +DCONF_CONFIGURE_ENABLE= dconf + +DOCS_CONFIGURE_ENABLE= gtk-doc-html +DOCS_CONFIGURE_ON= --with-html-dir=${PREFIX}/share/doc + +XIM_CONFIGURE_ENABLE= xim + +ENGINE_CONFIGURE_ENABLE= engine + +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 46 +USE_GCC= yes .endif .if ${PORT_OPTIONS:MGCONF} -CONFIGURE_ARGS+= --enable-gconf -PLIST_SUB+= GCONF="" GCONF_SCHEMAS= ibus.schemas -USE_GNOME+= gconf2 -.else -CONFIGURE_ARGS+= --disable-gconf -PLIST_SUB+= GCONF="@comment " .endif .if ${PORT_OPTIONS:MDCONF} -CONFIGURE_ARGS+= --enable-dconf -PLIST_SUB+= DCONF="" GLIB_SCHEMAS= org.freedesktop.ibus.gschema.xml -# gconf2 required for gsettings-schema-convert -USE_GNOME+= dconf gconf2 -.else -CONFIGURE_ARGS+= --disable-dconf -PLIST_SUB+= DCONF="@comment " -.endif - -.if ${PORT_OPTIONS:MDOCS} -CONFIGURE_ARGS+= --enable-gtk-doc-html --with-html-dir=${PREFIX}/share/doc -.else -CONFIGURE_ARGS+= --disable-gtk-doc-html -.endif - -.if ${PORT_OPTIONS:MXIM} -CONFIGURE_ARGS+= --enable-xim -PLIST_SUB+= XIM="" -.else -CONFIGURE_ARGS+= --disable-xim -PLIST_SUB+= XIM="@comment " -.endif - -.if ${PORT_OPTIONS:MENGINE} -CONFIGURE_ARGS+= --enable-engine -PLIST_SUB+= ENGINE="" -.else -CONFIGURE_ARGS+= --disable-engine -PLIST_SUB+= ENGINE="@comment " .endif .if ${PORT_OPTIONS:MENGINE} || ${PORT_OPTIONS:MGTK3} || ${PORT_OPTIONS:MGCONF} || ${PORT_OPTIONS:MDCONF} |