3636ac6713
Based on PR 46030 by YAMASHIRO, Jun. (enable commented out wnn4 option additionally) Overview of changes from 1.7.2 to 1.7.3 ======================================= * Fixes - Qt4 bridge * Fix im-delete-text in QTextEdit * Build fix for NetBSD ([uim-ja 322]) - uim-m17nlib * Don't discard key release event when input mode is off (#45734) * Fix crashes with some IMs (regressed in 1.7.0-alpha). * Others - Generic build fix for GNU/Hurd ([uim-ja 310]) Overview of changes from 1.7.1 to 1.7.2 ======================================= * Fixes - libuim * Fix crash in im-acquire-text with selection - uim-pref-qt4 * Fix build failure when --as-needed is used (#40385, Julian Taylor) * Enhancements - Qt4 bridge * Support text acquisition API with QTextEdit * Others - Plug very minor memory leak in uim-xim - Plug very minor file descriptor leak in libuim-custom Overview of changes from 1.7.0 to 1.7.1 ======================================= * Fixes - uim-tutcode * Fix behavior when on-key and off-key are different - uim-dict-gtk - uim-dict-gtk3 * Fix compilation with Canna >= 3.7 - fileio.scm * Fix for files with no newline at the end * Enhancements - uim-byeoru * Speedup in conversion by change of system dictionary format * Introduce a new way to define a personal dictionary - uim-tutcode * Show stroke help temporarily by keys in kanji combination guide * Support bushu composition which consists of three or more bushu on auto help * Use bushu.help file on auto help and bushu conversion - uim-toolbar-gtk3-systray - uim-toolbar-gtk-systray * gnome-shell support - uim-notify * Support dynamic reconfiguration of the agent selection * Others - Make uim functional when --disable-notify is set at configure
223 lines
6.3 KiB
Makefile
223 lines
6.3 KiB
Makefile
# $NetBSD: options.mk,v 1.25 2012/02/18 11:46:14 obache Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.uim
|
|
PKG_SUPPORTED_OPTIONS= anthy canna curl eb expat ffi gnome gnome3 gtk gtk3 m17nlib openssl prime sj3 sqlite uim-fep wnn4 xim
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= kde qt
|
|
PKG_OPTIONS_GROUP.kde= kde kde3
|
|
PKG_OPTIONS_GROUP.qt= qt qt3
|
|
PKG_SUGGESTED_OPTIONS= anthy gtk uim-fep xim
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mqt)
|
|
. if !empty(PKG_OPTIONS:Mqt3) || !empty(PKG_OPTIONS:Mkde3)
|
|
PKG_FAIL_REASON+= "'qt' conflict with 'qt3' or 'kde3' option"
|
|
. endif
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mqt3)
|
|
. if !empty(PKG_OPTIONS:Mqt) || !empty(PKG_OPTIONS:Mkde)
|
|
PKG_FAIL_REASON+= "'qt3' conflict with 'qt' or 'kde' option"
|
|
. endif
|
|
.endif
|
|
|
|
PLIST_VARS+= helperdata uim-dict-gtk uim-dict-gtk3 uim-dict-helperdata fep
|
|
PLIST_VARS+= anthy curl eb expat ffi gnome gnome3 gtk gtk3 kde kde3 m17nlib openssl qt qt3 sqlite wnn xim
|
|
|
|
.if !empty(PKG_OPTIONS:Mxim)
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-x
|
|
PLIST.xim= yes
|
|
.else
|
|
SUBST_CLASSES+= xim
|
|
SUBST_STAGE.xim= pre-configure
|
|
SUBST_FILES.xim= configure
|
|
SUBST_SED.xim= -e 's;use_xim="yes";use_xim="no";g'
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Muim-fep)
|
|
USE_NCURSES= YES # setupterm, clear_screen, clr_eos
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-fep
|
|
PLIST.fep= yes
|
|
INSTALLATION_DIRS+= share/doc/uim/uim-fep
|
|
|
|
post-install: install-fep-doc
|
|
|
|
.PHONY: install-fep-doc
|
|
install-fep-doc:
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README ${DESTDIR}${PREFIX}/share/doc/uim/uim-fep
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${DESTDIR}${PREFIX}/share/doc/uim/uim-fep
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-fep
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Manthy)
|
|
. include "../../inputmethod/anthy/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-anthy-utf8
|
|
PLIST.anthy= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-anthy
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mcanna)
|
|
CONFIGURE_ARGS+= --with-canna
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
. include "../../www/curl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-curl
|
|
PLIST.curl= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Meb)
|
|
.include "../../textproc/eb/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-eb
|
|
CONFIGURE_ARGS+= --with-eb-conf=${PKG_SYSCONFDIR}/eb.conf
|
|
PLIST.eb= yes
|
|
.endif
|
|
|
|
# For uim-yahoo-jp
|
|
.if !empty(PKG_OPTIONS:Mexpat)
|
|
. include "../../textproc/expat/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-expat=${BUILDLINK_PREFIX.expat}
|
|
PLIST.expat= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mffi)
|
|
. include "../../devel/libffi/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-ffi
|
|
PLIST.ffi= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
. include "../../x11/gnome-panel/buildlink3.mk"
|
|
. include "../../devel/libgnomeui/buildlink3.mk"
|
|
PLIST.gnome= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gnome-applet
|
|
.endif
|
|
|
|
# No gnome3 packages
|
|
#.if !empty(PKG_OPTIONS:Mgnome3)
|
|
#. include "../../x11/gnome-panel/buildlink3.mk"
|
|
#. include "../../devel/libgnomeui/buildlink3.mk"
|
|
#CONFIGURE_ARGS+= --enable-gnome3-applet
|
|
#PLIST.gnome3= yes
|
|
#.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk) || !empty(PKG_OPTIONS:Mgnome)
|
|
GTK2_IMMODULES= YES
|
|
.include "../../x11/gtk2/modules.mk"
|
|
PLIST.gtk= yes
|
|
. if !empty(PKG_OPTIONS:Manthy) || !empty(PKG_OPTIONS:Mcanna)
|
|
. if !empty(PKG_OPTIONS:Mcanna)
|
|
. include "../../inputmethod/canna-lib/buildlink3.mk"
|
|
. endif
|
|
CONFIGURE_ARGS+= --enable-dict
|
|
PLIST.uim-dict-gtk= yes
|
|
PLIST.uim-dict-helperdata= yes
|
|
. endif
|
|
.else
|
|
CONFIGURE_ARGS+= --without-gtk2
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk3) || !empty(PKG_OPTIONS:Mgnome3)
|
|
GTK3_IMMODULES= YES
|
|
.include "../../x11/gtk3/modules.mk"
|
|
PLIST.gtk3= yes
|
|
. if !empty(PKG_OPTIONS:Manthy) || !empty(PKG_OPTIONS:Mcanna)
|
|
. if !empty(PKG_OPTIONS:Mcanna)
|
|
. include "../../inputmethod/canna-lib/buildlink3.mk"
|
|
. endif
|
|
CONFIGURE_ARGS+= --enable-dict
|
|
PLIST.uim-dict-gtk3= yes
|
|
PLIST.uim-dict-helperdata= yes
|
|
. endif
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mkde3)
|
|
. include "../../x11/kdelibs3/buildlink3.mk"
|
|
. include "../../x11/qt3-libs/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-kde-applet
|
|
PLIST.kde3= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mkde)
|
|
. include "../../x11/kdelibs4/buildlink3.mk"
|
|
. include "../../x11/qt4-libs/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-kde4-applet
|
|
PLIST.kde= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-kde4-applet
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mm17nlib)
|
|
. include "../../devel/m17n-lib/buildlink3.mk"
|
|
DEPENDS+= m17n-contrib-[0-9]*:../../misc/m17n-contrib
|
|
PLIST.m17nlib= yes
|
|
INSTALL_TEMPLATES+= INSTALL.m17nlib
|
|
DEINSTALL_TEMPLATES+= DEINSTALL.m17nlib
|
|
CHECK_FILES_SKIP+= ${PREFIX}/share/uim/pixmaps/m17n-.*\.png
|
|
.else
|
|
CONFIGURE_ARGS+= --without-m17nlib
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mqt3) || !empty(PKG_OPTIONS:Mkde3)
|
|
. include "../../x11/qt3-libs/buildlink3.mk"
|
|
. include "../../x11/qt3-tools/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-qt CXXFLAGS=-lc
|
|
PLIST.helperdata= yes
|
|
PLIST.qt3= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mqt) || !empty(PKG_OPTIONS:Mkde)
|
|
. include "../../x11/qt4-libs/buildlink3.mk"
|
|
. include "../../x11/qt4-tools/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-qt4 --with-qt4-immodule
|
|
PLIST.helperdata= yes
|
|
PLIST.qt= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopenssl)
|
|
. include "../../security/openssl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-openssl
|
|
# XXX: https://bugs.freedesktop.org/show_bug.cgi?id=30249
|
|
#CONFIGURE_ARGS+= --with-openssl-dir=${SSLBASE:Q}
|
|
PLIST.openssl= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mprime)
|
|
CONFIGURE_ARGS+= --with-prime
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msj3)
|
|
CONFIGURE_ARGS+= --with-sj3
|
|
.endif
|
|
|
|
# For input prediction
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-sqlite3
|
|
PLIST.sqlite= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mwnn4)
|
|
. include "../../inputmethod/ja-freewnn-lib/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-wnn
|
|
CONFIGURE_ARGS+= --with-wnn-includes=${BUILDLINK_PREFIX.ja-FreeWnn-lib}/include/wnn
|
|
CONFIGURE_ARGS+= --with-wnn-libraries=${BUILDLINK_PREFIX.ja-FreeWnn-lib}/lib
|
|
CPPFLAGS+= -DWNNENVDIR=\"${BUILDLINK_PREFIX.ja-FreeWnn-lib}/share/wnn\"
|
|
PLIST.wnn= yes
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgtk) || !empty(PKG_OPTIONS:Mgnome)
|
|
CONFIGURE_ARGS+= --enable-default-toolkit=gtk
|
|
.elif !empty(PKG_OPTIONS:Mgtk3) || !empty(PKG_OPTIONS:Mgnome3)
|
|
CONFIGURE_ARGS+= --enable-default-toolkit=gtk3
|
|
.elif !empty(PKG_OPTIONS:Mqt) || !empty(PKG_OPTIONS:Mkde)
|
|
CONFIGURE_ARGS+= --enable-default-toolkit=qt4
|
|
.elif !empty(PKG_OPTIONS:Mqt3) || !empty(PKG_OPTIONS:Mkde3)
|
|
CONFIGURE_ARGS+= --enable-default-toolkit=qt
|
|
.endif
|