pkgsrc/inputmethod/uim/options.mk
obache 082f8528cb Update uim to 1.7.0.
Based on PR#44989 by YAMASHIRO, Jun.  add a missing PLIST entry.

Overview of changes from 1.7.0-alpha to 1.7.0
=============================================
* Fixes
  - Generic IM
    * Fix sort order of Wubi86 and Zhengma tables in 1.7.0-alpha

  - GTK+3 bridge
    * Avoid repeated changes of subwindow size in some annotation text


Overview of changes from 1.6.x to 1.7.0-alpha
=============================================
* New features
  - GTK+3 bridge
  - uim-candwin-gtk3
  - uim-candwin-tbl-gtk3
  - uim-dict-gtk3
  - uim-im-switcher-gtk3
  - uim-input-pad-ja-gtk3
  - uim-pref-gtk3
  - uim-toolbar-gtk3
  - uim-toolbar-gtk3-systray
    * Support GTK+3

  - uim-toolbar-applet-gnome3
    * Support GNOME3

* Fixes
  - uim Scheme library
    * Fix im-acquire-text brokeness

  - uim-toolbar-qt4
    * Fix bug: Can't set starting position of Qt4 toolbar (#34034)

  - uim-notify
    * Fix compilation with libnotify >= 0.7.0

  - uim-tutcode
    * Fix behavior with interactive bushu conversion

  - uim-skk
    * Fix crash upon an illegal line in SKK dictionary

  - Emacs bridge
    * Don't disturb other leim's modelines (#35318)

  - Qt4 bridge
    * Fix crash of applications upon exit when widget style of
      QGtkStyle is used

  - uim-dict-gtk
    * Fix a minor bug

* Enhancements
  - uim-tutcode
    * Postfix mazegaki conversion
    * Postfix bushu conversion
    * Add inflection support for postfix and prefix mazegaki conversion
    * Kanji code (JIS/Kuten/Unicode) input mode
    * History input mode

  - libuim
    * Support locale with EUC-JIS-2004 and EUC-JISX0213 encodings

  - generic-predict
    * Add support for completion with Google Suggest

* Others
  - GTK+2 bridge
    * Discard support for version below 2.14.
2011-05-29 06:13:57 +00:00

223 lines
6.4 KiB
Makefile

# $NetBSD: options.mk,v 1.24 2011/05/29 06:13:57 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 wnn xim
PKG_SUPPORTED_OPTIONS= anthy canna curl eb expat ffi gnome gnome3 gtk gtk3 m17nlib openssl prime sj3 sqlite uim-fep 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:Mwnn)
#. 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
#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