[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / inputmethod / uim

File: [cvs.NetBSD.org] / pkgsrc / inputmethod / uim / options.mk (download)

Revision 1.26, Sun Jul 22 06:15:22 2012 UTC (8 years ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.25: +3 -2 lines

Update uim to 1.8.1.
Based on PR 46595 by YAMASHIRO, Jun (fixes some missing PLIST entry).
* switch to enable expat and prime options by default.

Overview of changes from 1.8.0 to 1.8.1
=======================================
* Fixes
  - uim-toolbar-gtk3-systray
  - uim-toolbar-gtk-systray
    * Fix bug: prevent from becoming a zombie process

  - uim-candwin-gtk3
  - uim-candwin-gtk
    * Redraw unselected text with normal color

  - uim-tutcode
    * Fix bug: key which is not in rule (ex. "5")
      is not entered on (interactive) bushu conversion

  - po
    * Correct the path to GNOME_UimApplet.server.in in POTFILES.skip

  - uim-qt4
    * Honor the environment variable LDFLAGS during build

  - uim-notify
    * Fix compilation with glib >= 2.32

* Enhancements
  - uim-tutcode
    * New customs
      - Show pending key sequences
      - New custom group for tutcode-rule.scm: support TUT+ code
        which has rules for Shin Joyo Kanji
      - Key sequences to change katakana/hiragana mode (not toggle)
    * New command to dump last help content shown on candidate window
    * Pseudo table style for bridge which does not support
      table style candidate window
    * Updated trycode composition table retrieved 2012-05-26

* Others
  - GTK+2 immodule
  - uim-xim
    * Replace deprecated XKeycodeToKeysym() with XkbKeycodeToKeysym()

Overview of changes from 1.8.0-beta to 1.8.0
============================================
* Fixes
  - libgcroots
    * Fix version ([uim-en 438])
  - doc
    * Fix release manual.

Overview of changes from 1.8.0-alpha to 1.8.0-beta
==================================================
* Fixes
  - libuim
    * Fix version number
  - po
    * Fix build failure with intltool 0.50 again (#58097)
  - uim-toolbar-gtk
  - uim-toolbar-gtk3
  - uim-toolbar-qt4
    * Change behavior when toolbar-display-time is "mode"
  - uim-chardict-qt
  - uim-chardict-qt4
    * Update Unicode block list
  - ChangeLog
    * Add ChangeLog.old.2

Overview of changes from 1.7.3 to 1.8.0-alpha
=============================================
* New features
  - uim-google-cgiapi-jp (new IM)
    * A web-based Japanese multi-segment input method
  - uim-baidu-olime-jp (new IM)
    * A web-based Japanese multi-segment input method
  - osx-dcs
    * OS X Dictionary Services support
  - uim-knotify4
    * notify agent for KDE4

* Fixes
  - uim-xim
    * Check if libXext is installed at configure
  - uim-gtk2
    * Check if gdk-x11-2.0 is installed at configure (#36024)
  - po
    * Fix build failure with intltool 0.50 (#58097)
  - pixmaps
    * Use rsvg-convert instead of rsvg (#47204)

* Enhancements
  - libuim
    * New custom type "table"

  - libuim
  - Gtk+ bridge
  - Qt4 bridge
  - XIM bridge (uim-xim)
    * New API for delay showing candidate window

  - Gtk+ bridge
  - Qt4 bridge
  - XIM bridge (uim-xim)
    * Add horizontal candidate window

  - uim-candwin-gtk
    * Add previous and next page buttons

  - uim-chardict-qt
  - uim-chardict-qt4
    * Merge translation files for chardict into the main translation file

  - uim-m17nlib
    * Make toolbar settings configurable in uim-pref

  - uim-pref-gtk
  - uim-pref-gtk3
  - uim-pref-qt4
    * Support custom type "table"
    * Make Japanese Romaji-Kana composing rule configurable

  - uim-skk
    * Kanji code (JIS/Kuten/Unicode) input mode
    * Add skkserver completion feature (by @eagletmt)

  - uim-tutcode
    * Delay showing candidate window
    * New postfix conversions: katakana,
      kanji to key sequence and key sequence to kanji
    * Conversion on selection: mazegaki, katakana,
      kanji to key sequence and key sequence to kanji
    * New help functions: for character at current position
      and for string in clipboard
    * Clipboard support
      - Paste from clipboard to preedit
      - Key sequence to kanji conversion from clipboard
    * Undo last commit
    * Treat button click on stroke help window as key press
    * New customs
      - Add choice of bushu conversion algorithm:
	tc-2.3.1 and Kanchoku Win
      - New custom to exclude specified number of candidates
	from mazegaki learning
      - New custom to keep key sequence not convertible to kanji
      - Add choice about behavior of commit candidate by label key
      - Support binding user defined procedure to key sequence
    * Updated trycode composition table retrieved 2012-02-18

# $NetBSD: options.mk,v 1.26 2012/07/22 06:15:22 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 expat gtk prime 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/libXft/buildlink3.mk"
.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