aboutsummaryrefslogtreecommitdiff
path: root/textproc/iiimf-le-unit
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2005-05-24 12:37:50 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2005-05-24 12:37:50 +0000
commit40a684ff1e8608bde986585a735e66d9a456e675 (patch)
tree21680bac7d4436c9b33d17b1753f63e511708512 /textproc/iiimf-le-unit
parentcf0ac5bd5cf5b77385239923b8c09f789a94513d (diff)
downloadports-40a684ff1e8608bde986585a735e66d9a456e675.tar.gz
ports-40a684ff1e8608bde986585a735e66d9a456e675.zip
IIIMF-related ports:
- drop maintainership - update to r12.2 - some bug fixes PR: 81184 Submitted by: Masanori OZAWA <ozawa@ongs.co.jp> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=136030
Diffstat (limited to 'textproc/iiimf-le-unit')
-rw-r--r--textproc/iiimf-le-unit/Makefile83
-rw-r--r--textproc/iiimf-le-unit/distinfo4
-rw-r--r--textproc/iiimf-le-unit/files/patch-Makefile60
-rw-r--r--textproc/iiimf-le-unit/files/patch-acfiles_check_sys.m412
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_Makefile.am8
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_configure.ac55
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja3_sampleja3.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_csconv.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.c44
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_motif_sampleja3_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_conv.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.h10
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_so_sampleja4.c8
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja_sampleja.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sampleja_xaux_aux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_KeyboardConfig.c20
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_LookupImpl.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_OptionMessage.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_SelectMessage.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_UtilityConfig.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_include_hzinput.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_common_leif_qjbj_punct.c20
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxobj_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxwin_gtk_keyboard_config.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_hanja_dic.h14
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_koinput.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_le-options.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_leif_qjbj_punct.c20
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_korea_lookupbuf.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_th_auxobj_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_OptionMessage.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_UtilityConfig.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_th_leif_thai_le.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxobj_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxwin_gtk_UtilityConfig.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_newpy_NewPY.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_auxobj_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_input_methods_newzy_CikuOper.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_auxobj_xaux_so.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_dayi_dayi_im.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_newzy_CikuOper.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_zhuyin_zhuyin_im.c11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_unit_include_unit_input.h11
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am34
-rw-r--r--textproc/iiimf-le-unit/files/patch-lib_EIMIL_EIMILJournal.c10
-rw-r--r--textproc/iiimf-le-unit/files/patch-lib_EIMIL_Makefile.am9
-rw-r--r--textproc/iiimf-le-unit/pkg-plist178
49 files changed, 202 insertions, 739 deletions
diff --git a/textproc/iiimf-le-unit/Makefile b/textproc/iiimf-le-unit/Makefile
index 6ecae1ae7565..20c3d93f887b 100644
--- a/textproc/iiimf-le-unit/Makefile
+++ b/textproc/iiimf-le-unit/Makefile
@@ -6,87 +6,54 @@
#
PORTNAME= le-unit
-PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//}
-PORTREVISION= 2
+PORTVERSION= 12.2
CATEGORIES= textproc
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
PKGNAMEPREFIX= iiimf-
-DISTNAME= im-sdk-src-${IIIMF_VER}
+DISTNAME= iiimf-src-${PORTVERSION}
EXTRACT_SUFX= .tar.bz2
-MAINTAINER= kcwu@csie.org
+MAINTAINER= ozawa@ongs.co.jp
COMMENT= IIIMF UNIcode Table based generic composition engine
-RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server
+LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib \
+ iiimcf.3:${PORTSDIR}/textproc/iiimf-client-lib
+RUN_DEPENDS= iiimd:${PORTSDIR}/textproc/iiimf-server
+
+ONLY_FOR_ARCHS= i386
-IIIMF_VER= r12_1-svn2002
USE_BZIP2= yes
USE_ICONV= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_XLIB= yes
-USE_AUTOCONF_VER= 259
-USE_AUTOHEADER_VER= 259
-USE_AUTOMAKE_VER= 19
+WANT_AUTOCONF_VER= 259
+WANT_AUTOHEADER_VER= 259
+WANT_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-
-WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
-PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
+WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
+BUILDDIR= ${WRKSRC}/leif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000
-IGNORE= "It is supported on FreeBSD 5.3 and later"
-.endif
-
-.if ${ARCH} != "i386"
-IGNORE= "${ARCH} is not support."
+IGNORE= It is supported on FreeBSD 5.3 and later.
.endif
-CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} \
- -DIMDIR="\\\"\$${IMDIR}\\\""
+CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -liconv ${PTHREAD_LIBS}
-CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
-UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \
- AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \
- LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \
- ACLOCAL_DIR="-I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR}"
+CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
post-patch:
- ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
- ${WRKSRC}/../acfiles/im_common.m4 \
- ${WRKSRC}/../lib/CSConv/csconv.h
-
-pre-configure:
- @cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles
- @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \
- -I ../../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR}
- @cd ${WRKSRC}/../lib/EIMIL && ${REINPLACE_CMD} \
- -e "s^\$$ac_aux_dir/ltconfig^${LTCONFIG}^g" \
- -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
- -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
- ${LIBTOOLFILES}
- @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER}
- @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE}
- @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF}
- @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} CC="${CC}" CXX="${CXX}" \
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${CONFIGURE_ENV} \
- ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
- @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --force --copy
- @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \
- -I ../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR}
- @cd ${WRKSRC} && ${REINPLACE_CMD} \
- -e "s^\$$ac_aux_dir/ltconfig^${LTCONFIG}^g" \
- -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
- -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
- ${LIBTOOLFILES}
- @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER}
-
-pre-build:
- @cd ${WRKSRC}/../lib/EIMIL && \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
+ ${REINPLACE_CMD} \
+ -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ -e "s,%%PREFIX%%,${PREFIX},g" \
+ ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am \
+ ${BUILDDIR}/../lib/EIMIL/Makefile.am
+
+do-configure:
+ @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config
.include <bsd.port.post.mk>
diff --git a/textproc/iiimf-le-unit/distinfo b/textproc/iiimf-le-unit/distinfo
index 440e49d16220..4416cce728d0 100644
--- a/textproc/iiimf-le-unit/distinfo
+++ b/textproc/iiimf-le-unit/distinfo
@@ -1,2 +1,2 @@
-MD5 (im-sdk-src-r12_1-svn2002.tar.bz2) = 51f3f10b11f8d4a206e2b190ec36a32a
-SIZE (im-sdk-src-r12_1-svn2002.tar.bz2) = 18141292
+MD5 (iiimf-src-12.2.tar.bz2) = 70dbf257fe64ddf8611dfa6449da537c
+SIZE (iiimf-src-12.2.tar.bz2) = 11452670
diff --git a/textproc/iiimf-le-unit/files/patch-Makefile b/textproc/iiimf-le-unit/files/patch-Makefile
index bcc2cb24a1c8..687ccf0b6813 100644
--- a/textproc/iiimf-le-unit/files/patch-Makefile
+++ b/textproc/iiimf-le-unit/files/patch-Makefile
@@ -1,19 +1,47 @@
---- Makefile Thu Apr 8 03:28:00 2004
-+++ Makefile Wed Feb 16 14:09:34 2005
-@@ -2,6 +2,7 @@
- AUTOMAKE = automake
- AUTOHEADER = autoheader
- AUTOCONF = autoconf
-+LIBTOOLIZE = libtoolize
+--- Makefile.orig Mon May 9 15:32:45 2005
++++ Makefile Mon May 9 15:35:03 2005
+@@ -1,29 +1,31 @@
+ ## deprecated in favour of AUTORECONF
+-#ACLOCAL = aclocal
+-#AUTOMAKE = automake --add-missing --copy
+-#LIBTOOLIZE = libtoolize --force --copy
+-#AUTOHEADER = autoheader
+-#AUTOCONF = autoconf
++ACLOCAL = aclocal19
++AUTOMAKE = automake19 --add-missing --copy
++LIBTOOLIZE = libtoolize15 --force --copy
++AUTOHEADER = autoheader259
++AUTOCONF = autoconf259
+ #CONFIG_CMD = $(ACLOCAL) -I $${acfilesdir} && \
+ # $(LIBTOOLIZE) && \
+ # $(AUTOHEADER) && \
+ # $(AUTOMAKE) && \
+ # $(AUTOCONF)
- CONFIG_CMD = $(ACLOCAL) -I $${acfilesdir} && \
- $(AUTOHEADER) && \
-@@ -21,7 +22,7 @@
+-AUTORECONF = autoreconf
++AUTORECONF = autoreconf259
+ BOOTSTRAP = $(AUTORECONF) --install --force
+ INTL_CMD = glib-gettextize -f && intltoolize --copy --force --automake
- update-acfiles:
- cd acfiles && \
-- $(ACLOCAL) && $(AUTOMAKE) --add-missing --copy && libtoolize --force --copy && \
-+ $(ACLOCAL) $(ACLOCAL_DIR) && $(AUTOMAKE) --add-missing --copy && $(LIBTOOLIZE) --force --copy && \
- rm -f Makefile.in aclocal.m4
+-CONFIG_FLAGS = --prefix=/usr --sysconfdir=/etc --localstatedir=/var
++CONFIG_FLAGS = --prefix=%%PREFIX%% --sysconfdir=%%LOCALBASE%%/etc --localstatedir=/var
+
+-INTLDIRS = iiimgcf gnome-im-switcher
++#INTLDIRS = iiimgcf gnome-im-switcher
+
+-BUILDDIRS = lib/CSConv lib/EIMIL lib/iiimp lib/iiimcf \
+- iiimsf leif leif/sun_le_korea leif/sch_le_sun leif/tch_le_sun \
+- iiimxcf/xiiimp.so iiimxcf/htt_xbe \
+- iiimgcf gnome-im-switcher doc
++BUILDDIRS = lib/EIMIL leif
++#BUILDDIRS = lib/CSConv lib/EIMIL lib/iiimp lib/iiimcf \
++# iiimsf leif leif/sun_le_korea leif/sch_le_sun leif/tch_le_sun \
++# iiimxcf/xiiimp.so iiimxcf/htt_xbe \
++# iiimgcf gnome-im-switcher doc
+
+-CONFIGDIRS = $(BUILDDIRS) leif/m17n_le leif/thai_le_sun
++CONFIGDIRS = $(BUILDDIRS)
++#CONFIGDIRS = $(BUILDDIRS) leif/m17n_le leif/thai_le_sun
+
+ all: compile
- config:
diff --git a/textproc/iiimf-le-unit/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-le-unit/files/patch-acfiles_check_sys.m4
index 8626eeae1fd1..44ee86c035bc 100644
--- a/textproc/iiimf-le-unit/files/patch-acfiles_check_sys.m4
+++ b/textproc/iiimf-le-unit/files/patch-acfiles_check_sys.m4
@@ -1,10 +1,12 @@
---- acfiles/check_sys.m4.orig Tue Sep 14 13:31:27 2004
-+++ acfiles/check_sys.m4 Wed Mar 2 08:39:25 2005
-@@ -203,6 +203,11 @@
+--- acfiles/check_sys.m4.orig Mon May 9 15:28:20 2005
++++ acfiles/check_sys.m4 Mon May 9 15:32:07 2005
+@@ -203,6 +203,13 @@
CXX=${CC}
fi
;;
+ cc*:*)
++ DEBUG_CFLAGS="${DEBUG_CFLAGS} -ggdb"
++ DEBUG_CXXFLAGS="${DEBUG_CXXFLAGS} -g"
+ COMMON_CFLAGS="${COMMON_CFLAGS} -Wall"
+ SHLIBCFLAGS='-fpic'
+ SHLIBLDFLAGS='-shared'
@@ -12,7 +14,7 @@
*)
DEBUG_CXX_CFLAGS="${DEBUG_CXX_CFLAGS} -g"
;;
-@@ -249,8 +254,8 @@
+@@ -249,8 +256,8 @@
COMMON_CXX_CFLAGS="${COMMON_CXX_CFLAGS} -DLinux"
;;
*freebsd*)
@@ -23,7 +25,7 @@
;;
esac
-@@ -288,9 +293,9 @@
+@@ -288,9 +295,9 @@
THREAD_CXX_CFLAGS="-mt"
HAVE_THREAD="uithread"
;;
diff --git a/textproc/iiimf-le-unit/files/patch-leif_Makefile.am b/textproc/iiimf-le-unit/files/patch-leif_Makefile.am
new file mode 100644
index 000000000000..710a4d8844f9
--- /dev/null
+++ b/textproc/iiimf-le-unit/files/patch-leif_Makefile.am
@@ -0,0 +1,8 @@
+--- leif/Makefile.am.orig Fri May 13 15:45:41 2005
++++ leif/Makefile.am Fri May 13 15:46:03 2005
+@@ -1,4 +1,4 @@
+ AUTOMAKE_OPTIONS = foreign
+ SUBDIRS = $(LE_TARGETS)
+
+-ACLOCAL_AMFLAGS = -I ../acfiles
++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../acfiles
diff --git a/textproc/iiimf-le-unit/files/patch-leif_configure.ac b/textproc/iiimf-le-unit/files/patch-leif_configure.ac
index 2289a05c4a93..836f246b6ba7 100644
--- a/textproc/iiimf-le-unit/files/patch-leif_configure.ac
+++ b/textproc/iiimf-le-unit/files/patch-leif_configure.ac
@@ -1,53 +1,28 @@
---- leif/configure.ac.orig Wed Oct 6 23:00:36 2004
-+++ leif/configure.ac Thu Mar 24 17:47:49 2005
-@@ -44,15 +44,15 @@
+--- leif/configure.ac.orig Wed May 11 13:01:08 2005
++++ leif/configure.ac Wed May 11 13:02:22 2005
+@@ -75,16 +75,16 @@
- IM_CHECK_SYSTEM
- IM_CHECK_DLOPEN
--IM_CHECK_CANNA
--IM_CHECK_FREEWNN
-+dnl IM_CHECK_CANNA
-+dnl IM_CHECK_FREEWNN
+ LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} ${LDFLAGS}"
- IM_CHECK_X
--IM_CHECK_GTK
--IM_CHECK_MOTIF
--PKG_CHECK_MODULES(GTK2, gtk+-2.0 gtk+-x11-2.0)
--AC_SUBST(GTK2_CFLAGS)
--AC_SUBST(GTK2_LIBS)
-+dnl IM_CHECK_GTK
-+dnl IM_CHECK_MOTIF
-+dnl PKG_CHECK_MODULES(GTK2, gtk+-2.0 gtk+-x11-2.0)
-+dnl AC_SUBST(GTK2_CFLAGS)
-+dnl AC_SUBST(GTK2_LIBS)
-
- dnl --------------------------------------------------------------------------------
- dnl Section 5: compilation options
-@@ -63,23 +63,16 @@
-
- CFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \
- ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \
-- ${THREAD_COMMON_CXX_CFLAGS}"
-+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}"
-
- CXXFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \
- ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \
-- ${THREAD_COMMON_CXX_CFLAGS}"
-+ ${THREAD_COMMON_CXX_CFLAGS} ${CXXFLAGS}"
-
--LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS}"
-+LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} ${LDFLAGS}"
-
--LE_TARGETS="default template sampleja sampleja2 sampleja3 newpy testEIMIL unit hangul chewing"
-+LE_TARGETS="default template sampleja sampleja2 sampleja3 testEIMIL unit"
+-LE_TARGETS="default template sampleja sampleja2 sampleja3 newpy testEIMIL unit hangul fop_test"
++LE_TARGETS="default template testEIMIL unit fop_test"
-IM_ADD_TARGET(LE_TARGETS, HAVE_CANNA, canna)
-IM_ADD_TARGET(LE_TARGETS, HAVE_FREEWNN, freewnn)
+-IM_ADD_TARGET(LE_TARGETS, HAVE_CHEWING, chewing)
-IM_ADD_TARGET(LE_TARGETS, HAVE_X, sampleja3/xaux_common)
-IM_ADD_TARGET(LE_TARGETS, HAVE_GTK, sampleja3/xaux_gtk)
-IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, newpy/xaux)
-IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, sampleja/xaux)
-IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, sampleja3/xaux_motif)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_CANNA, canna)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_FREEWNN, freewnn)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_CHEWING, chewing)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_X, sampleja3/xaux_common)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_GTK, sampleja3/xaux_gtk)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, newpy/xaux)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, sampleja/xaux)
++#IM_ADD_TARGET(LE_TARGETS, HAVE_MOTIF, sampleja3/xaux_motif)
dnl --------------------------------------------------------------------------------
dnl Section 6: compilation test
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_sampleja3.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja3_sampleja3.c
deleted file mode 100644
index 9d0ba2089572..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_sampleja3.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja3/sampleja3.c Mon Apr 26 21:16:13 2004
-+++ leif/sampleja3/sampleja3.c Wed Feb 16 20:42:52 2005
-@@ -171,7 +171,7 @@
- objects[obj_id].name_length = 9;
- objects[obj_id].domain = "com.sun";
- objects[obj_id].scope = "sampleja3";
-- objects[obj_id].path = "/usr/lib/im/locale/ja/sampleja3/aux.jar";
-+ objects[obj_id].path = IMDIR "/locale/ja/sampleja3/aux.jar";
- objects[obj_id].signature = "";
- objects[obj_id].class_names = class_names;
- objects[obj_id].count_names = 1;
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_csconv.h b/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_csconv.h
deleted file mode 100644
index 88a908b383c9..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_csconv.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja3/xaux_common/csconv.h Fri Mar 16 00:52:22 2001
-+++ leif/sampleja3/xaux_common/csconv.h Wed Feb 16 20:48:24 2005
-@@ -63,7 +63,7 @@
- # define CSC_BASE_DIR_SYSTEM "/etc/lib/im/csconv/"
- #endif /* !CSC_BASE_DIR_SYSTEM */
- #if !defined(CSC_BASE_DIR_DEFAULT)
--# define CSC_BASE_DIR_DEFAULT "/usr/lib/im/csconv/"
-+# define CSC_BASE_DIR_DEFAULT (IMDIR "/csconv/")
- #endif /* !CSC_BASE_DIR_DEFAULT */
-
- #define CSC_IS_PATH_ABS(path) (('/' == *(path)) || \
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.c
deleted file mode 100644
index e86cbdf37dec..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.c
+++ /dev/null
@@ -1,44 +0,0 @@
---- leif/sampleja3/xaux_common/xaux_ext_common.c Fri Mar 16 00:52:22 2001
-+++ leif/sampleja3/xaux_common/xaux_ext_common.c Wed Feb 16 20:43:12 2005
-@@ -633,7 +633,7 @@
-
- #else /* defined(USE_DTACTIONINVOKE) */
-
--#define DTACTION_CMD "/usr/dt/bin/dtaction"
-+#define DTACTION_CMD "/usr/local/bin/dtaction"
-
- static int help_available = 0;
- static char tmp_file[256];
-@@ -803,7 +803,11 @@
- fprintf(fp, "%s%s\n", rdb.help_basepath, path_);
- fclose(fp);
-
-+#ifdef __FreeBSD__
-+ pid = vfork();
-+#else
- pid = fork1();
-+#endif
-
- if (pid == (pid_t) (-1)) {
- return;
-@@ -834,6 +838,8 @@
-
- #ifdef linux
- pid = fork();
-+#elif defined(__FreeBSD__)
-+ pid = vfork();
- #else
- pid = fork1();
- #endif
-@@ -853,7 +859,11 @@
- if (pid == (pid_t) (-1)) {
- return;
- } else if (0 == pid) {
-+#ifdef __FreeBSD__
-+ pid2 = vfork();
-+#else
- pid2 = fork();
-+#endif
- if(pid2 == -1) {
- _exit(1);
- } else if(pid2 == 0) {
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.h b/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.h
deleted file mode 100644
index 2adf385af32c..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_common_xaux_ext_common.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja3/xaux_common/xaux_ext_common.h Fri Mar 16 00:52:22 2001
-+++ leif/sampleja3/xaux_common/xaux_ext_common.h Wed Feb 16 20:48:29 2005
-@@ -97,7 +97,7 @@
- extern void HelpInvoke(char *);
- #endif
-
--#define DEFAULT_HELP_PATH "file:/usr/lib/im/locale/ja/sampleja3/help/"
-+#define DEFAULT_HELP_PATH ("file:" IMDIR "/locale/ja/sampleja3/help/")
-
- #endif /* !XAUX_EXT_COMMON_H */
-
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_motif_sampleja3_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_motif_sampleja3_xaux_so.c
deleted file mode 100644
index d172f71175fc..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja3_xaux_motif_sampleja3_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja3/xaux_motif/sampleja3_xaux_so.c Fri Mar 16 00:52:22 2001
-+++ leif/sampleja3/xaux_motif/sampleja3_xaux_so.c Wed Feb 16 20:43:20 2005
-@@ -63,7 +63,7 @@
- 'L','o','o','k','u','p','A','u','x',
- };
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/ja/sampleja3/xaux/motif/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/ja/sampleja3/xaux/motif/")
-
- xaux_class_t xaux_classes[AUX_CLASS_MAX + 1] = {
- {
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_conv.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_conv.c
deleted file mode 100644
index 73dee74c23c1..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_conv.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja4/xaux/xaux_ext_conv.c Fri Jun 27 11:41:21 2003
-+++ leif/sampleja4/xaux/xaux_ext_conv.c Wed Feb 16 20:43:31 2005
-@@ -79,7 +79,7 @@
- #ifdef USE_CSCONV
- #include <dlfcn.h>
- #include "csconv.h"
--#define CSC_PATH "/usr/lib/im/csconv/csconv.so"
-+#define CSC_PATH (IMDIR "/csconv/csconv.so")
- #define CSC_OPEN_LOCALE "csconv_open_locale"
- #define CSC_OPEN "csconv_open"
- #define CSC_CONV "csconv"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.c
deleted file mode 100644
index 9225f0ad9d07..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja4/xaux/xaux_ext_help.c Fri Jun 27 11:41:21 2003
-+++ leif/sampleja4/xaux/xaux_ext_help.c Wed Feb 16 20:43:43 2005
-@@ -66,7 +66,7 @@
-
- #else /* defined(USE_DTACTIONINVOKE) */
-
--#define DTACTION_CMD "/usr/dt/bin/dtaction"
-+#define DTACTION_CMD "/usr/local/bin/dtaction"
-
- static int help_available = 0;
- static char tmp_file[256];
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.h b/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.h
deleted file mode 100644
index fe92be9b45da..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_ext_help.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- leif/sampleja4/xaux/xaux_ext_help.h Fri Jun 27 11:41:21 2003
-+++ leif/sampleja4/xaux/xaux_ext_help.h Wed Feb 16 20:48:34 2005
-@@ -52,6 +52,6 @@
- extern void HelpInvoke(char *);
- #endif /* USE_CDE_HELP */
-
--#define DEFAULT_HELP_PATH "file:/usr/lib/im/locale/ja/sampleja4/help/"
-+#define DEFAULT_HELP_PATH ("file:" IMDIR "/locale/ja/sampleja4/help/")
-
- #endif /* !XAUX_EXT_HELP_H */
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_so_sampleja4.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_so_sampleja4.c
deleted file mode 100644
index b71286ef0c4c..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja4_xaux_xaux_so_sampleja4.c
+++ /dev/null
@@ -1,8 +0,0 @@
---- leif/sampleja4/xaux/xaux_so_sampleja4.c Fri Jun 27 11:41:21 2003
-+++ leif/sampleja4/xaux/xaux_so_sampleja4.c Wed Feb 16 20:43:49 2005
-@@ -334,4 +334,4 @@
- /*
- * primary path for external executables
- */
--const char *xaux_so_extexec_path = "/usr/lib/im/locale/ja/sampleja4/xaux";
-+const char *xaux_so_extexec_path = IMDIR "/locale/ja/sampleja4/xaux";
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja_sampleja.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja_sampleja.c
deleted file mode 100644
index 36c2ab4a4775..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja_sampleja.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja/sampleja.c Fri Mar 16 00:52:22 2001
-+++ leif/sampleja/sampleja.c Wed Feb 16 20:42:34 2005
-@@ -331,7 +331,7 @@
- #ifdef WIN32
- l->path = "d:\\sampleja_obj.jar"; /* path */
- #else
-- l->path = "/usr/lib/im/locale/ja/sampleja/sampleja_obj.jar"; /* path */
-+ l->path = IMDIR "/locale/ja/sampleja/sampleja_obj.jar"; /* path */
- #endif
- l->signature = "";
- l->class_names = class_names;
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sampleja_xaux_aux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sampleja_xaux_aux_so.c
deleted file mode 100644
index b93bd2182665..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sampleja_xaux_aux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sampleja/xaux/aux_so.c Fri Mar 16 00:52:22 2001
-+++ leif/sampleja/xaux/aux_so.c Wed Feb 16 20:42:40 2005
-@@ -72,7 +72,7 @@
- #define HTT_AUX_PROP_NAME "htt_aux_sample_prop"
- #define HTT_AUX_PROP1_NAME "htt_aux_sample_prop1"
-
--#define AUX_EXT "/usr/lib/im/locale/ja/sampleja/aux_ext"
-+#define AUX_EXT (IMDIR "/locale/ja/sampleja/aux_ext")
-
- typedef struct _aux_icid {
- aux_t * aux;
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_KeyboardConfig.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_KeyboardConfig.c
deleted file mode 100644
index d05cba8a0ca8..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_KeyboardConfig.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- leif/sun_le_asia/common/auxwin/KeyboardConfig.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/auxwin/KeyboardConfig.c Wed Feb 16 20:44:10 2005
-@@ -145,7 +145,7 @@
- zh_CN.GBK/keyboard_layout2.txt
- common/keyboard_layout.txt
-
--base directory: /usr/lib/im/locale/<locale>/
-+base directory: /usr/local/lib/im/locale/<locale>/
-
- */
- int read_keyboard_config_file(char *path_name, char *file_name)
-@@ -557,7 +557,7 @@
- nLocaleID = get_encodeid_from_locale(sLocaleName);
-
- lang_name = (char *)get_langname_from_locale(sLocaleName);
-- sprintf(path_name, "/usr/lib/im/locale/%s", lang_name);
-+ sprintf(path_name, IMDIR "/locale/%s", lang_name);
-
- DEBUG_printf("path_name:%s\n", path_name);
-
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_LookupImpl.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_LookupImpl.c
deleted file mode 100644
index 6a928a74cf4e..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_LookupImpl.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/common/auxwin/LookupImpl.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/auxwin/LookupImpl.c Wed Feb 16 20:44:18 2005
-@@ -475,7 +475,7 @@
- sLocaleName = setlocale(LC_ALL, NULL);
- lang_name = (char *)get_langname_from_locale(sLocaleName);
-
-- sprintf(path_name, "/usr/lib/im/locale/%s", lang_name);
-+ sprintf(path_name, IMDIR "/locale/%s", lang_name);
- ret = read_keyboard_config_file(path_name, DEFAULT_SYMBOLS_CONFIG_FILE);
- }
-
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_OptionMessage.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_OptionMessage.c
deleted file mode 100644
index 6943cf08d998..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_OptionMessage.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/common/auxwin/OptionMessage.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/auxwin/OptionMessage.c Wed Feb 16 20:44:22 2005
-@@ -127,7 +127,7 @@
-
- nLocaleID = get_encodeid_from_locale(locale_name);
- lang_name = get_langname_from_locale(locale_name);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
- gCatd = catopen(file_name, 0);
- if (gCatd == (nl_catd)-1)
- printf("WARNING: Could not open message catalog: %s\n", name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_SelectMessage.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_SelectMessage.c
deleted file mode 100644
index 0757a751d2b6..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_SelectMessage.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/common/auxwin/SelectMessage.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/auxwin/SelectMessage.c Wed Feb 16 20:44:30 2005
-@@ -139,7 +139,7 @@
-
- nLocaleID = get_encodeid_from_locale(locale_name);
- lang_name = get_langname_from_locale(locale_name);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
- gCatd = catopen(file_name, 0);
- if (gCatd == (nl_catd)-1)
- printf("WARNING: Could not open message catalog: %s\n", name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_UtilityConfig.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_UtilityConfig.c
deleted file mode 100644
index ee83935a6dc7..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_auxwin_UtilityConfig.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/common/auxwin/UtilityConfig.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/auxwin/UtilityConfig.c Wed Feb 16 20:44:37 2005
-@@ -122,7 +122,7 @@
- lang_name = (char *)get_langname_from_locale(locale_name);
- DEBUG_printf("lang_name:%s\n", lang_name);
-
-- sprintf(file_name, "/usr/lib/im/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
- DEBUG_printf("file_name:%s\n", file_name);
-
- read_utility_config_file(file_name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_include_hzinput.h b/textproc/iiimf-le-unit/files/patch-leif_sun_common_include_hzinput.h
deleted file mode 100644
index 2edbc6c99ebe..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_include_hzinput.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/common/include/hzinput.h Fri May 28 16:52:29 2004
-+++ leif/sun_le_asia/common/include/hzinput.h Wed Feb 16 20:48:38 2005
-@@ -63,7 +63,7 @@
- #define ENGINE_NOT_INITIATED 2
- #define ENGINE_INITIATED 3
-
--#define DEFAULT_ENGINE_PATH "/usr/lib/im/locale"
-+#define DEFAULT_ENGINE_PATH (IMDIR "/locale")
- #define DEFAULT_DICT_PATH "data"
- #define COMMON_ENGINE_PATH "common"
- #define CODETABLE_ENGINE_NAME "ctim"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_common_leif_qjbj_punct.c b/textproc/iiimf-le-unit/files/patch-leif_sun_common_leif_qjbj_punct.c
deleted file mode 100644
index 94ec2b9e4f11..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_common_leif_qjbj_punct.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- leif/sun_le_asia/common/leif/qjbj_punct.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/common/leif/qjbj_punct.c Wed Feb 16 20:44:53 2005
-@@ -384,7 +384,7 @@
-
- lang_name = (char *)get_langname_from_langid(lang_id);
- DEBUG_printf("lang_name:%s\n", lang_name);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, QJBJ_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, QJBJ_FILE_NAME);
- DEBUG_printf("file_name:%s\n", file_name);
-
- fd = fopen(file_name, "r");
-@@ -441,7 +441,7 @@
- PunctCharListByLang[lang_id].bInit = 1;
-
- lang_name = (char *)get_langname_from_langid(lang_id);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, PUNCT_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, PUNCT_FILE_NAME);
- DEBUG_printf("file_name:%s\n", file_name);
-
- fd = fopen(file_name, "r");
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxobj_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxobj_xaux_so.c
deleted file mode 100644
index 3e4228b44977..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxobj_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_korea/auxobj/xaux_so.c Sat Mar 27 10:46:45 2004
-+++ leif/sun_le_korea/auxobj/xaux_so.c Wed Feb 16 20:46:40 2005
-@@ -19,7 +19,7 @@
-
- #define XAUX_CLASS_MAX 7
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/ko_KR/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/ko_KR/")
-
- CARD16 aux_utfname_palette[] = {
- 'c','o','m','.','s','u','n','.',
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxwin_gtk_keyboard_config.c b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxwin_gtk_keyboard_config.c
deleted file mode 100644
index f590d7d2c29e..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_auxwin_gtk_keyboard_config.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_korea/auxwin_gtk/keyboard_config.c Sat Mar 27 10:46:45 2004
-+++ leif/sun_le_korea/auxwin_gtk/keyboard_config.c Wed Feb 16 20:46:48 2005
-@@ -432,7 +432,7 @@
- g_virtual_keyboards[i] = NULL;
-
- lang_name = (char *) strdup ("ko_KR");
-- sprintf(path_name, "/usr/lib/im/locale/%s", lang_name);
-+ sprintf(path_name, IMDIR "/locale/%s", lang_name);
- free (lang_name);
-
-
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_hanja_dic.h b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_hanja_dic.h
deleted file mode 100644
index a36049c8c07c..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_hanja_dic.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- leif/sun_le_korea/korean/hanja_dic.h Sat Mar 27 10:46:45 2004
-+++ leif/sun_le_korea/korean/hanja_dic.h Wed Feb 16 20:49:10 2005
-@@ -19,9 +19,9 @@
-
- #define USRNAME ".usrhjd"
- #ifdef __STDC__
--#define SYSPATH "/usr/lib/im/locale/ko_KR/common/data"
-+#define SYSPATH (IMDIR "/locale/ko_KR/common/data")
- #else
--#define SYSPATH "/usr/lib/im/locale/ko_KR/common/data"
-+#define SYSPATH (IMDIR "/locale/ko_KR/common/data")
- #endif
- #define SYSNAME "syshjd"
- #define NULNAME "nulhjd"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_koinput.h b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_koinput.h
deleted file mode 100644
index d74d5276e73c..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_koinput.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_korea/include/koinput.h Fri Apr 23 15:40:46 2004
-+++ leif/sun_le_korea/include/koinput.h Wed Feb 16 20:48:57 2005
-@@ -76,7 +76,7 @@
- #define ENGINE_NOT_INITIATED 2
- #define ENGINE_INITIATED 3
-
--#define DEFAULT_ENGINE_PATH "/usr/lib/im/locale"
-+#define DEFAULT_ENGINE_PATH (IMDIR "/locale")
- #define DEFAULT_DICT_PATH "data"
- #define COMMON_ENGINE_PATH "common"
- #define LANGNAME "ko_KR"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_le-options.h b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_le-options.h
deleted file mode 100644
index 99d8f185d771..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_include_le-options.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_korea/include/le-options.h Tue Apr 20 08:53:49 2004
-+++ leif/sun_le_korea/include/le-options.h Wed Feb 16 20:49:02 2005
-@@ -29,7 +29,7 @@
- #define Bool Boolean
- #endif
-
--#define DEFAULT_KOLE_OPTION_FILE "/usr/lib/im/locale/ko_KR/kole.conf"
-+#define DEFAULT_KOLE_OPTION_FILE (IMDIR "/locale/ko_KR/kole.conf")
- /* NAME of Options */
- #define STR_OPTION_CHARSET "charset"
- #define STR_OPTION_DELETION "delete by jaso"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_leif_qjbj_punct.c b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_leif_qjbj_punct.c
deleted file mode 100644
index 43866369af87..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_leif_qjbj_punct.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- leif/sun_le_korea/leif/qjbj_punct.c Sat Mar 27 10:46:45 2004
-+++ leif/sun_le_korea/leif/qjbj_punct.c Wed Feb 16 20:47:08 2005
-@@ -350,7 +350,7 @@
-
- lang_name = (char *)get_langname_from_langid(lang_id);
- logf("lang_name:%s\n", lang_name);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, QJBJ_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, QJBJ_FILE_NAME);
- logf("file_name:%s\n", file_name);
-
- fd = fopen(file_name, "r");
-@@ -407,7 +407,7 @@
- PunctCharListByLang[lang_id].bInit = 1;
-
- lang_name = (char *)get_langname_from_langid(lang_id);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, PUNCT_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, PUNCT_FILE_NAME);
- logf("file_name:%s\n", file_name);
-
- fd = fopen(file_name, "r");
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_lookupbuf.c b/textproc/iiimf-le-unit/files/patch-leif_sun_korea_lookupbuf.c
deleted file mode 100644
index e2ce32bd7fa7..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_korea_lookupbuf.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_korea/korean/lookupbuf.c Sat Mar 27 10:46:45 2004
-+++ leif/sun_le_korea/korean/lookupbuf.c Wed Feb 16 20:46:54 2005
-@@ -547,7 +547,7 @@
- }
- fp = fopen (argv[1], "w");
-
-- construct_binary_tree_from_file ("/usr/lib/im/locale/ko_KR/common/data/hhdict",
-+ construct_binary_tree_from_file (IMDIR "/locale/ko_KR/common/data/hhdict",
- &trees, &n_trees);
- mthd_return = dictionary_search_hanja_candidates_in_utf16
- (ga, &n_candidates, &cand );
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxobj_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxobj_xaux_so.c
deleted file mode 100644
index 61aaeeae6dd8..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxobj_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/th_TH/auxobj/xaux_so.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/th_TH/auxobj/xaux_so.c Wed Feb 16 20:45:01 2005
-@@ -62,7 +62,7 @@
-
- #define XAUX_CLASS_MAX 4
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/th_TH/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/th_TH/")
-
- CARD16 aux_utfname_palette[] = {
- 'c','o','m','.','s','u','n','.',
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_OptionMessage.c b/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_OptionMessage.c
deleted file mode 100644
index 008cb30d2e53..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_OptionMessage.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/th_TH/auxwin/OptionMessage.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/th_TH/auxwin/OptionMessage.c Wed Feb 16 20:45:06 2005
-@@ -123,7 +123,7 @@
-
- nLocaleID = get_encodeid_from_locale(locale_name);
- lang_name = get_langname_from_locale(locale_name);
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/common/%s", lang_name, MSG_FILE_NAME);
- gCatd = catopen(file_name, 0);
- if (gCatd == (nl_catd)-1)
- printf("WARNING: Could not open message catalog: %s\n", name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_UtilityConfig.c b/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_UtilityConfig.c
deleted file mode 100644
index fbe0c5aa4bf2..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_th_auxwin_UtilityConfig.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/th_TH/auxwin/UtilityConfig.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/th_TH/auxwin/UtilityConfig.c Wed Feb 16 20:45:11 2005
-@@ -118,7 +118,7 @@
- lang_name = (char *)get_langname_from_locale(locale_name);
- DEBUG_printf("lang_name:%s\n", lang_name);
-
-- sprintf(file_name, "/usr/lib/im/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
- DEBUG_printf("file_name:%s\n", file_name);
-
- read_utility_config_file(file_name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_th_leif_thai_le.c b/textproc/iiimf-le-unit/files/patch-leif_sun_th_leif_thai_le.c
deleted file mode 100644
index d6722bfb459b..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_th_leif_thai_le.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/th_TH/leif/thai_le.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/th_TH/leif/thai_le.c Wed Feb 16 20:45:29 2005
-@@ -173,7 +173,7 @@
- /* Open the IF interface */
- Bool if_le_OpenIF(iml_if_t * If)
- {
-- char *keymap_config_file = "/usr/lib/im/locale/th_TH/thai_keymap.cfg";
-+ char *keymap_config_file = IMDIR "/locale/th_TH/thai_keymap.cfg";
- TThaiKeymapList *pThaiKeymapList = &gThaiKeymapList;
-
- DEBUG_printf("if_le_OpenIF ====\n");
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxobj_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxobj_xaux_so.c
deleted file mode 100644
index 5cdb2980ca60..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxobj_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_CN/auxobj/xaux_so.c Mon May 17 21:10:12 2004
-+++ leif/sun_le_asia/zh_CN/auxobj/xaux_so.c Wed Feb 16 20:45:35 2005
-@@ -65,7 +65,7 @@
- #define XAUX_CLASS_MAX 3
- #endif
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/zh_CN/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/zh_CN/")
-
- CARD16 aux_utfname_palette[] = {
- 'c','o','m','.','s','u','n','.',
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxwin_gtk_UtilityConfig.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxwin_gtk_UtilityConfig.c
deleted file mode 100644
index 2cbf82f6ebfa..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_auxwin_gtk_UtilityConfig.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_CN/auxwin_gtk/UtilityConfig.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/zh_CN/auxwin_gtk/UtilityConfig.c Wed Feb 16 20:45:41 2005
-@@ -124,7 +124,7 @@
- lang_name = (char *)get_langname_from_locale(locale_name);
- DEBUG_printf("lang_name:%s\n", lang_name);
-
-- sprintf(file_name, "/usr/lib/im/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
-+ sprintf(file_name, IMDIR "/locale/%s/%s", lang_name, UTILITY_FILE_NAME);
- DEBUG_printf("file_name:%s\n", file_name);
-
- read_utility_config_file(file_name);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_newpy_NewPY.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_newpy_NewPY.c
deleted file mode 100644
index 89f0a0a06427..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_CN_newpy_NewPY.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_CN/newpy/NewPY.c Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/zh_CN/newpy/NewPY.c Wed Feb 16 20:45:45 2005
-@@ -126,7 +126,7 @@
- #define PUNCT_CHINESE 0
- #define PUNCT_ENGLISH 1
-
--#define CIKU_DATA_PATH "/usr/lib/im/locale/zh_CN/common/data"
-+#define CIKU_DATA_PATH (IMDIR "/locale/zh_CN/common/data")
-
- JINT nGlobalSpMode; /* ZRM, CStar, ABC */
-
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_auxobj_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_auxobj_xaux_so.c
deleted file mode 100644
index c49a92bca109..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_auxobj_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_HK/auxobj/xaux_so.c Mon May 17 21:13:43 2004
-+++ leif/sun_le_asia/zh_HK/auxobj/xaux_so.c Wed Feb 16 20:45:51 2005
-@@ -65,7 +65,7 @@
- #define XAUX_CLASS_MAX 3
- #endif
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/zh_HK/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/zh_HK/")
-
- CARD16 aux_utfname_palette[] = {
- 'c','o','m','.','s','u','n','.',
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_input_methods_newzy_CikuOper.h b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_input_methods_newzy_CikuOper.h
deleted file mode 100644
index a62d350b5916..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_HK_input_methods_newzy_CikuOper.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_HK/input_methods/newzy/CikuOper.h Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/zh_HK/input_methods/newzy/CikuOper.h Wed Feb 16 20:48:43 2005
-@@ -64,7 +64,7 @@
- #define SINGLEHZ_DSP_SIMP 1
- #define SINGLEHZ_DSP_FULL 2
-
--#define CIKU_DATA_PATH "/usr/lib/im/locale/zh_HK/common/data"
-+#define CIKU_DATA_PATH (IMDIR "/locale/zh_HK/common/data")
-
- typedef struct _CizuItem {
- UCHAR szLine[CIZU_ITEM_LEN]; /* Org Line read from file */
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_auxobj_xaux_so.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_auxobj_xaux_so.c
deleted file mode 100644
index 6d53fc6b8eb3..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_auxobj_xaux_so.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_TW/auxobj/xaux_so.c Mon May 17 21:13:43 2004
-+++ leif/sun_le_asia/zh_TW/auxobj/xaux_so.c Wed Feb 16 20:45:59 2005
-@@ -65,7 +65,7 @@
- #define XAUX_CLASS_MAX 3
- #endif
-
--#define XAUX_EXT_DIR "/usr/lib/im/locale/zh_TW/"
-+#define XAUX_EXT_DIR (IMDIR "/locale/zh_TW/")
-
- CARD16 aux_utfname_palette[] = {
- 'c','o','m','.','s','u','n','.',
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_dayi_dayi_im.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_dayi_dayi_im.c
deleted file mode 100644
index 356a2e3d730f..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_dayi_dayi_im.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_TW/input_methods/dayi/dayi_im.c Thu May 13 19:23:13 2004
-+++ leif/sun_le_asia/zh_TW/input_methods/dayi/dayi_im.c Wed Feb 16 20:46:21 2005
-@@ -154,7 +154,7 @@
- if (pDayiData == NULL)
- return(-1);
-
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/dayi.cfg", core->envinfo.lang_name);
-+ sprintf(file_name, IMDIR "/locale/%s/common/dayi.cfg", core->envinfo.lang_name);
- ret = DayiData_Init(file_name, pDayiData);
- if (ret == DAYI_ERROR) {
- DayiData_Free(pDayiData);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_newzy_CikuOper.h b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_newzy_CikuOper.h
deleted file mode 100644
index baf98426a5df..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_newzy_CikuOper.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_TW/input_methods/newzy/CikuOper.h Fri Mar 26 18:13:39 2004
-+++ leif/sun_le_asia/zh_TW/input_methods/newzy/CikuOper.h Wed Feb 16 20:48:48 2005
-@@ -64,7 +64,7 @@
- #define SINGLEHZ_DSP_SIMP 1
- #define SINGLEHZ_DSP_FULL 2
-
--#define CIKU_DATA_PATH "/usr/lib/im/locale/zh_TW/common/data"
-+#define CIKU_DATA_PATH (IMDIR "/locale/zh_TW/common/data")
-
- typedef struct _CizuItem {
- UCHAR szLine[CIZU_ITEM_LEN]; /* Org Line read from file */
diff --git a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_zhuyin_zhuyin_im.c b/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_zhuyin_zhuyin_im.c
deleted file mode 100644
index 64c4f0713dd1..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_sun_zh_TW_im_zhuyin_zhuyin_im.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/sun_le_asia/zh_TW/input_methods/zhuyin/zhuyin_im.c Thu May 13 19:23:13 2004
-+++ leif/sun_le_asia/zh_TW/input_methods/zhuyin/zhuyin_im.c Wed Feb 16 20:46:35 2005
-@@ -155,7 +155,7 @@
- if (pZhuyinData == NULL)
- return(-1);
-
-- sprintf(file_name, "/usr/lib/im/locale/%s/common/zhuyin.cfg", core->envinfo.lang_name);
-+ sprintf(file_name, IMDIR "/locale/%s/common/zhuyin.cfg", core->envinfo.lang_name);
- ret = ZhuyinData_Init(file_name, pZhuyinData);
- if (ret == ZHUYIN_ERROR) {
- ZhuyinData_Free(pZhuyinData);
diff --git a/textproc/iiimf-le-unit/files/patch-leif_unit_include_unit_input.h b/textproc/iiimf-le-unit/files/patch-leif_unit_include_unit_input.h
deleted file mode 100644
index 10545897d714..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_unit_include_unit_input.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- leif/unit/include/unit_input.h Tue Oct 12 17:24:13 2004
-+++ leif/unit/include/unit_input.h Wed Feb 16 20:49:15 2005
-@@ -109,7 +109,7 @@
- #define ENGINE_NOT_INITIATED 2
- #define ENGINE_INITIATED 3
-
--#define DEFAULT_ENGINE_PATH "/usr/lib/im/locale"
-+#define DEFAULT_ENGINE_PATH (IMDIR "/locale")
- #define DEFAULT_DICT_PATH "data"
- #define COMMON_ENGINE_PATH "common"
- #define GENERIC_IM_TABLE_NAME "GENERIC_IM_TABLE"
diff --git a/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am b/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am
deleted file mode 100644
index 59e9f0c8843d..000000000000
--- a/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am
+++ /dev/null
@@ -1,34 +0,0 @@
---- leif/unit/phonetic_im/mapfile/Makefile.am.orig Sat Apr 3 11:50:21 2004
-+++ leif/unit/phonetic_im/mapfile/Makefile.am Wed Mar 2 20:35:05 2005
-@@ -1,5 +1,6 @@
- SUBDIRS = mapfile2c
- LEX = /usr/bin/lex
-+SED = /usr/bin/sed
-
- MAPFILES = bengali.mapfile gurmukhi.mapfile hindi.mapfile kannada.mapfile malayalam.mapfile tamil.mapfile telugu.mapfile gujarati.mapfile
-
-@@ -12,7 +13,7 @@
- .l.c:
- $(LEX) $(LFLAGS) $*.l
- mv lex.yy.c $*.tc
-- sed \
-+ $(SED) \
- -e "/^# line/d" \
- -e "s/parse_small_token/parse_$*/g" \
- -e "s/^void yyunput/static void yyunput/g" \
-@@ -57,10 +58,11 @@
- -e "s/^# define unput(c).*/# define unput(c) (\*--global_ptr=c)/g" \
- -e "s/^#define unput(c).*/#define unput(c) (\*--global_ptr=c)/g" \
- -e "/^#line/d" \
-- -e "/^static char \*global_ptr\;/i\
--#define YY_NO_INPUT" -e "/^static char \*global_ptr\;/i\
--#define YY_NO_UNPUT" -e "/^static char \*global_ptr\;/i\
--#define input() (\*global_ptr++)" $*.tc > $*.c
-+ -e "/^static char \*global_ptr\;/{" \
-+ -e "p" -e "s/.*/#define YY_NO_INPUT/" \
-+ -e "p" -e "s/.*/#define YY_NO_UNPUT/" \
-+ -e "p" -e "s/.*/#define input\(\) \(*global_ptr++\)/" \
-+ -e "}" $*.tc > $*.c
- rm -f $*.tc
-
- noinst_LTLIBRARIES = libphonetic_temp.la
diff --git a/textproc/iiimf-le-unit/files/patch-lib_EIMIL_EIMILJournal.c b/textproc/iiimf-le-unit/files/patch-lib_EIMIL_EIMILJournal.c
deleted file mode 100644
index d98acce9a275..000000000000
--- a/textproc/iiimf-le-unit/files/patch-lib_EIMIL_EIMILJournal.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/EIMIL/EIMILJournal.c Mon Aug 2 23:39:10 2004
-+++ lib/EIMIL/EIMILJournal.c Thu Feb 17 01:55:38 2005
-@@ -61,7 +61,6 @@
- pjh = NULL;
- pj = ped->pjst;
- for (i = 0; i < EIMIL_JOURNAL_MAX_SLOT_SIZE; i++) {
-- fprintf(stderr, "hoge\n");
- if (!pj) break;
- if (pj->pv) EIMIL_RMREF(*pj->pv);
- if ((pj->next - pj) < 0) pjh = pj->next;
diff --git a/textproc/iiimf-le-unit/files/patch-lib_EIMIL_Makefile.am b/textproc/iiimf-le-unit/files/patch-lib_EIMIL_Makefile.am
new file mode 100644
index 000000000000..8e23e8b2eef4
--- /dev/null
+++ b/textproc/iiimf-le-unit/files/patch-lib_EIMIL_Makefile.am
@@ -0,0 +1,9 @@
+--- lib/EIMIL/Makefile.am.orig Fri May 13 18:03:49 2005
++++ lib/EIMIL/Makefile.am Fri May 13 18:04:12 2005
+@@ -1,5 +1,5 @@
+ AUTOMAKE_OPTIONS = foreign
+-ACLOCAL_AMFLAGS = -I ../../acfiles
++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles
+ SUBDIRS = . test
+ #libdir = /usr/local/lib
+ #libEIMIL_la_LDFLAGS = -module -version-info $(LIBEIMIL_MAJOR_VERSION):$(LIBEIMIL_MINOR_VERSION) \
diff --git a/textproc/iiimf-le-unit/pkg-plist b/textproc/iiimf-le-unit/pkg-plist
index 17586abf3c6f..ffee886cf218 100644
--- a/textproc/iiimf-le-unit/pkg-plist
+++ b/textproc/iiimf-le-unit/pkg-plist
@@ -1,86 +1,92 @@
-lib/im/leif/default.so
-lib/im/leif/unitle.so
-lib/im/locale/UNIT/AM_ET/data/amharic.data
-lib/im/locale/UNIT/ARABIC/data/arabic.data
-lib/im/locale/UNIT/BENGALI/data/inscript.data
-lib/im/locale/UNIT/BENGALI/data/probhat.data
-lib/im/locale/UNIT/BENGALI/phonetic.cfg
-lib/im/locale/UNIT/CYRILLIC/data/cyrillic.data
-lib/im/locale/UNIT/EUROPEAN/data/euro.data
-lib/im/locale/UNIT/GREEK/data/greek.data
-lib/im/locale/UNIT/GUJARATI/data/inscript.data
-lib/im/locale/UNIT/GUJARATI/data/phonetic.data
-lib/im/locale/UNIT/GUJARATI/phonetic.cfg
-lib/im/locale/UNIT/GURMUKHI/data/inscript.data
-lib/im/locale/UNIT/GURMUKHI/data/phonetic.data
-lib/im/locale/UNIT/GURMUKHI/phonetic.cfg
-lib/im/locale/UNIT/HEBREW/data/hebrew.data
-lib/im/locale/UNIT/HINDI/data/inscript.data
-lib/im/locale/UNIT/HINDI/data/phonetic.data
-lib/im/locale/UNIT/HINDI/data/trans.data
-lib/im/locale/UNIT/HINDI/phonetic.cfg
-lib/im/locale/UNIT/KANNADA/data/inscript.data
-lib/im/locale/UNIT/KANNADA/data/kgp.data
-lib/im/locale/UNIT/KANNADA/phonetic.cfg
-lib/im/locale/UNIT/MALAYALAM/data/inscript.data
-lib/im/locale/UNIT/MALAYALAM/phonetic.cfg
-lib/im/locale/UNIT/TAMIL/data/inscript.data
-lib/im/locale/UNIT/TAMIL/data/trans.data
-lib/im/locale/UNIT/TAMIL/phonetic.cfg
-lib/im/locale/UNIT/TELUGU/data/inscript.data
-lib/im/locale/UNIT/TELUGU/phonetic.cfg
-lib/im/locale/UNIT/TI_ER/data/eritrean.data
-lib/im/locale/UNIT/UNICODE-HEX/codepoint.cfg
-lib/im/locale/UNIT/UNICODE-OCTAL/codepoint.cfg
-lib/im/locale/UNIT/VIETNAMESE/data/vietnamese.data
-lib/im/locale/UNIT/common/bin2txt
-lib/im/locale/UNIT/common/codepoint_im.so
-lib/im/locale/UNIT/common/codepoint_im.so.0
-lib/im/locale/UNIT/common/ctim.so
-lib/im/locale/UNIT/common/ctim.so.0
-lib/im/locale/UNIT/common/phonetic_im.so
-lib/im/locale/UNIT/common/phonetic_im.so.0
-lib/im/locale/UNIT/common/search
-lib/im/locale/UNIT/common/txt2bin
-lib/im/locale/UNIT/common/x_txt2bin
-lib/im/locale/UNIT/common/xctim.so
-lib/im/locale/UNIT/common/xctim.so.0
-lib/im/locale/UNIT/sysime.cfg
-@dirrm lib/im/locale/UNIT/AM_ET/data
-@dirrm lib/im/locale/UNIT/AM_ET
-@dirrm lib/im/locale/UNIT/ARABIC/data
-@dirrm lib/im/locale/UNIT/ARABIC
-@dirrm lib/im/locale/UNIT/BENGALI/data
-@dirrm lib/im/locale/UNIT/BENGALI
-@dirrm lib/im/locale/UNIT/CYRILLIC/data
-@dirrm lib/im/locale/UNIT/CYRILLIC
-@dirrm lib/im/locale/UNIT/EUROPEAN/data
-@dirrm lib/im/locale/UNIT/EUROPEAN
-@dirrm lib/im/locale/UNIT/GREEK/data
-@dirrm lib/im/locale/UNIT/GREEK
-@dirrm lib/im/locale/UNIT/GUJARATI/data
-@dirrm lib/im/locale/UNIT/GUJARATI
-@dirrm lib/im/locale/UNIT/GURMUKHI/data
-@dirrm lib/im/locale/UNIT/GURMUKHI
-@dirrm lib/im/locale/UNIT/HEBREW/data
-@dirrm lib/im/locale/UNIT/HEBREW
-@dirrm lib/im/locale/UNIT/HINDI/data
-@dirrm lib/im/locale/UNIT/HINDI
-@dirrm lib/im/locale/UNIT/KANNADA/data
-@dirrm lib/im/locale/UNIT/KANNADA
-@dirrm lib/im/locale/UNIT/MALAYALAM/data
-@dirrm lib/im/locale/UNIT/MALAYALAM
-@dirrm lib/im/locale/UNIT/TAMIL/data
-@dirrm lib/im/locale/UNIT/TAMIL
-@dirrm lib/im/locale/UNIT/TELUGU/data
-@dirrm lib/im/locale/UNIT/TELUGU
-@dirrm lib/im/locale/UNIT/TI_ER/data
-@dirrm lib/im/locale/UNIT/TI_ER
-@dirrm lib/im/locale/UNIT/UNICODE-OCTAL
-@dirrm lib/im/locale/UNIT/UNICODE-HEX
-@dirrm lib/im/locale/UNIT/VIETNAMESE/data
-@dirrm lib/im/locale/UNIT/VIETNAMESE
-@dirrm lib/im/locale/UNIT/common
-@dirrm lib/im/locale/UNIT
-@unexec rmdir %D/lib/im/leif > /dev/null 2>&1 || true
-@unexec rmdir %D/lib/im/locale > /dev/null 2>&1 || true
+lib/iiim/le/default/default.so
+lib/iiim/le/unitle/common/ctim.so.0
+lib/iiim/le/unitle/common/ctim.so
+lib/iiim/le/unitle/common/ctim.la
+lib/iiim/le/unitle/common/ctim.a
+lib/iiim/le/unitle/common/txt2bin
+lib/iiim/le/unitle/common/bin2txt
+lib/iiim/le/unitle/common/search
+lib/iiim/le/unitle/common/xctim.so.0
+lib/iiim/le/unitle/common/xctim.so
+lib/iiim/le/unitle/common/xctim.la
+lib/iiim/le/unitle/common/xctim.a
+lib/iiim/le/unitle/common/x_txt2bin
+lib/iiim/le/unitle/common/codepoint_im.so.0
+lib/iiim/le/unitle/common/codepoint_im.so
+lib/iiim/le/unitle/common/codepoint_im.la
+lib/iiim/le/unitle/common/codepoint_im.a
+lib/iiim/le/unitle/HINDI/phonetic.cfg
+lib/iiim/le/unitle/HINDI/data/inscript.data
+lib/iiim/le/unitle/HINDI/data/trans.data
+lib/iiim/le/unitle/HINDI/data/phonetic.data
+lib/iiim/le/unitle/TAMIL/phonetic.cfg
+lib/iiim/le/unitle/TAMIL/data/inscript.data
+lib/iiim/le/unitle/TAMIL/data/trans.data
+lib/iiim/le/unitle/TAMIL/data/phonetic.data
+lib/iiim/le/unitle/KANNADA/phonetic.cfg
+lib/iiim/le/unitle/KANNADA/data/inscript.data
+lib/iiim/le/unitle/KANNADA/data/kgp.data
+lib/iiim/le/unitle/MALAYALAM/phonetic.cfg
+lib/iiim/le/unitle/MALAYALAM/data/inscript.data
+lib/iiim/le/unitle/TELUGU/phonetic.cfg
+lib/iiim/le/unitle/TELUGU/data/inscript.data
+lib/iiim/le/unitle/GUJARATI/phonetic.cfg
+lib/iiim/le/unitle/GUJARATI/data/inscript.data
+lib/iiim/le/unitle/GUJARATI/data/phonetic.data
+lib/iiim/le/unitle/BENGALI/phonetic.cfg
+lib/iiim/le/unitle/BENGALI/data/inscript.data
+lib/iiim/le/unitle/BENGALI/data/probhat.data
+lib/iiim/le/unitle/GURMUKHI/phonetic.cfg
+lib/iiim/le/unitle/GURMUKHI/data/inscript.data
+lib/iiim/le/unitle/GURMUKHI/data/phonetic.data
+lib/iiim/le/unitle/UNICODE-HEX/codepoint.cfg
+lib/iiim/le/unitle/UNICODE-OCTAL/codepoint.cfg
+lib/iiim/le/unitle/sysime.cfg
+lib/iiim/le/unitle/unitle.so
+lib/iiim/le/unitle/hotkey_config.xml
+lib/iiim/le/unitle/EUROPEAN/data/euro.data
+lib/iiim/le/unitle/CYRILLIC/data/cyrillic.data
+lib/iiim/le/unitle/GREEK/data/greek.data
+lib/iiim/le/unitle/ARABIC/data/arabic.data
+lib/iiim/le/unitle/HEBREW/data/hebrew.data
+lib/iiim/le/unitle/VIETNAMESE/data/vietnamese.data
+lib/iiim/le/unitle/TI_ER/data/eritrean.data
+lib/iiim/le/unitle/AM_ET/data/amharic.data
+@dirrm lib/iiim/le/default
+@dirrm lib/iiim/le/unitle/common
+@dirrm lib/iiim/le/unitle/HINDI/data
+@dirrm lib/iiim/le/unitle/HINDI
+@dirrm lib/iiim/le/unitle/TAMIL/data
+@dirrm lib/iiim/le/unitle/TAMIL
+@dirrm lib/iiim/le/unitle/KANNADA/data
+@dirrm lib/iiim/le/unitle/KANNADA
+@dirrm lib/iiim/le/unitle/MALAYALAM/data
+@dirrm lib/iiim/le/unitle/MALAYALAM
+@dirrm lib/iiim/le/unitle/TELUGU/data
+@dirrm lib/iiim/le/unitle/TELUGU
+@dirrm lib/iiim/le/unitle/GUJARATI/data
+@dirrm lib/iiim/le/unitle/GUJARATI
+@dirrm lib/iiim/le/unitle/BENGALI/data
+@dirrm lib/iiim/le/unitle/BENGALI
+@dirrm lib/iiim/le/unitle/GURMUKHI/data
+@dirrm lib/iiim/le/unitle/GURMUKHI
+@dirrm lib/iiim/le/unitle/UNICODE-HEX
+@dirrm lib/iiim/le/unitle/UNICODE-OCTAL
+@dirrm lib/iiim/le/unitle/EUROPEAN/data
+@dirrm lib/iiim/le/unitle/EUROPEAN
+@dirrm lib/iiim/le/unitle/CYRILLIC/data
+@dirrm lib/iiim/le/unitle/CYRILLIC
+@dirrm lib/iiim/le/unitle/GREEK/data
+@dirrm lib/iiim/le/unitle/GREEK
+@dirrm lib/iiim/le/unitle/ARABIC/data
+@dirrm lib/iiim/le/unitle/ARABIC
+@dirrm lib/iiim/le/unitle/HEBREW/data
+@dirrm lib/iiim/le/unitle/HEBREW
+@dirrm lib/iiim/le/unitle/VIETNAMESE/data
+@dirrm lib/iiim/le/unitle/VIETNAMESE
+@dirrm lib/iiim/le/unitle/TI_ER/data
+@dirrm lib/iiim/le/unitle/TI_ER
+@dirrm lib/iiim/le/unitle/AM_ET/data
+@dirrm lib/iiim/le/unitle/AM_ET
+@dirrm lib/iiim/le/unitle
+@unexec rmdir %D/lib/iiim/le > /dev/null 2>&1 || true