diff options
author | daichi <daichi@FreeBSD.org> | 2005-05-24 12:37:50 +0000 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2005-05-24 12:37:50 +0000 |
commit | 2fc57c4b8b6311308d0cd7c060698ffba5fdeb98 (patch) | |
tree | 37dac9da04b94e927a5886af6f57c1828f27f13b /textproc | |
parent | 834341d742892c8f5d7d774127f637922888c5ce (diff) | |
download | FreeBSD-ports-2fc57c4b8b6311308d0cd7c060698ffba5fdeb98.zip FreeBSD-ports-2fc57c4b8b6311308d0cd7c060698ffba5fdeb98.tar.gz |
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
Diffstat (limited to 'textproc')
139 files changed, 1350 insertions, 2222 deletions
diff --git a/textproc/iiimf-client-lib/Makefile b/textproc/iiimf-client-lib/Makefile index 67408b2..58b583a 100644 --- a/textproc/iiimf-client-lib/Makefile +++ b/textproc/iiimf-client-lib/Makefile @@ -6,86 +6,58 @@ # PORTNAME= client-lib -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method Client Framework -LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib +LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib +RUN_DEPENDS= ${LOCALBASE}/lib/iiim/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv + +ONLY_FOR_ARCHS= i386 -IIIMF_VER= r12_1-svn2002 INSTALLS_SHLIB= yes USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= 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 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/iiimcf -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/lib/iiimcf .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 ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${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 - -pre-configure: - @cd ${WRKSRC}/../.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @cd ${WRKSRC}/../EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ - -I ../../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR} - @cd ${WRKSRC}/../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}/../EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} - @cd ${WRKSRC}/../EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} - @cd ${WRKSRC}/../EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} - @cd ${WRKSRC}/../EIMIL && ${SETENV} CC="${CC}" CXX="${CXX}" \ - CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${CONFIGURE_ENV} \ - ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} - @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} - -post-configure: - ${REINPLACE_CMD} -e "s,\$${prefix}/var,/var,g" \ - ${WRKSRC}/Makefile - -pre-build: - @cd ${WRKSRC}/../EIMIL && \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} + ${REINPLACE_CMD} \ + -e '/^pkgconfigdir/s,$$(libdir),%%PREFIX%%/libdata,g' \ + ${BUILDDIR}/Makefile.am + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile \ + ${BUILDDIR}/Makefile.am \ + ${BUILDDIR}/../EIMIL/Makefile.am + ${REINPLACE_CMD} -e "s,/usr/lib/iiim,${LOCALBASE}/lib/iiim,g" \ + ${WRKSRC}/lib/CSConv/csconv.h + +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-client-lib/distinfo b/textproc/iiimf-client-lib/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-client-lib/distinfo +++ b/textproc/iiimf-client-lib/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-client-lib/files/patch-Makefile b/textproc/iiimf-client-lib/files/patch-Makefile index bcc2cb2..93b6c78 100644 --- a/textproc/iiimf-client-lib/files/patch-Makefile +++ b/textproc/iiimf-client-lib/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 lib/iiimcf ++#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-client-lib/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-client-lib/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-client-lib/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-client-lib/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-client-lib/files/patch-lib_EIMIL_EIMILJournal.c b/textproc/iiimf-client-lib/files/patch-lib_EIMIL_EIMILJournal.c deleted file mode 100644 index d98acce..0000000 --- a/textproc/iiimf-client-lib/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-client-lib/files/patch-lib_EIMIL_Makefile.am b/textproc/iiimf-client-lib/files/patch-lib_EIMIL_Makefile.am new file mode 100644 index 0000000..8e23e8b --- /dev/null +++ b/textproc/iiimf-client-lib/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-client-lib/files/patch-lib_iiimcf_Makefile.am b/textproc/iiimf-client-lib/files/patch-lib_iiimcf_Makefile.am index a549928..89e3fcd 100644 --- a/textproc/iiimf-client-lib/files/patch-lib_iiimcf_Makefile.am +++ b/textproc/iiimf-client-lib/files/patch-lib_iiimcf_Makefile.am @@ -1,11 +1,14 @@ ---- lib/iiimcf/Makefile.am.orig Wed Mar 2 05:50:46 2005 -+++ lib/iiimcf/Makefile.am Wed Mar 2 05:51:11 2005 -@@ -2,7 +2,7 @@ +--- lib/iiimcf/Makefile.am.orig Mon May 9 16:47:15 2005 ++++ lib/iiimcf/Makefile.am Mon May 9 16:48:31 2005 +@@ -1,9 +1,9 @@ + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles SUBDIRS = . test #libdir = /usr/local/lib libiiimcf_la_LDFLAGS = -version-info $(LIBIIIMCF_MAJOR_VERSION):$(LIBIIIMCF_MINOR_VERSION) \ -- -export-dynamic -export-symbols libiiimcf.sym ../iiimp/libiiimp.la +- -export-dynamic -export-symbols libiiimcf.sym ../iiimp/libiiimp.la -ldl + -export-dynamic -export-symbols libiiimcf.sym -liiimp - libiiimcf_la_CFLAGS = -DDEBUG -DSOCKETDIR="\"$(SOCKETDIR)\"" + libiiimcf_la_CFLAGS = -DDEBUG -DSOCKETDIR="\"$(SOCKETDIR)\"" -I../CSConv libiiimcf_la_SOURCES = iiimcf.c input-method.c attr.c commit.c context.c event.c \ lookup_choice.c message.c preedit.c status.c trigger.c \ diff --git a/textproc/iiimf-client-lib/files/patch-lib_iiimcf_configure.ac b/textproc/iiimf-client-lib/files/patch-lib_iiimcf_configure.ac deleted file mode 100644 index 1f9239e..0000000 --- a/textproc/iiimf-client-lib/files/patch-lib_iiimcf_configure.ac +++ /dev/null @@ -1,19 +0,0 @@ ---- lib/iiimcf/configure.ac.orig Wed Mar 2 06:27:04 2005 -+++ lib/iiimcf/configure.ac Wed Mar 2 06:27:29 2005 -@@ -82,13 +82,13 @@ - COMMON_INCLUDE='-I$(IM_INCLUDEDIR) -I$(IM_INCLUDEDIR)/iiimp' - CFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" - - CXXFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CXXFLAGS}" - --LDFLAGS="${COMMON_LDFLAGS}" -+LDFLAGS="${COMMON_LDFLAGS} ${LDFLAGS}" - - dnl -------------------------------------------------------------------------------- - dnl Section 6: compilation test diff --git a/textproc/iiimf-client-lib/files/patch-lib_iiimcf_iiimcf.c b/textproc/iiimf-client-lib/files/patch-lib_iiimcf_iiimcf.c deleted file mode 100644 index 1ef1efa..0000000 --- a/textproc/iiimf-client-lib/files/patch-lib_iiimcf_iiimcf.c +++ /dev/null @@ -1,19 +0,0 @@ ---- lib/iiimcf/iiimcf.c Tue Sep 14 13:19:47 2004 -+++ lib/iiimcf/iiimcf.c Wed Feb 16 22:59:51 2005 -@@ -440,7 +440,7 @@ - ) - { - IIIMF_status st; -- IIIMP_message *pmes; -+ IIIMP_message *pmes = NULL; - - if (!ph->data_s) ph->data_s = iiimp_data_s_new(); - if (!ph->data_s) return IIIMF_STATUS_MALLOC; -@@ -501,6 +501,7 @@ - iiimp_message_delete(ph->data_s, pmes); - if (st != IIIMF_STATUS_SUCCESS) goto reconnect; - -+ pmes = NULL; - st = iiimcf_wait_message(ph, NULL, IM_CONNECT_REPLY, &pmes); - if (st != IIIMF_STATUS_SUCCESS) { - if (pmes) iiimp_message_delete(ph->data_s, pmes); diff --git a/textproc/iiimf-client-lib/pkg-plist b/textproc/iiimf-client-lib/pkg-plist index 6ce22e3..9571100 100644 --- a/textproc/iiimf-client-lib/pkg-plist +++ b/textproc/iiimf-client-lib/pkg-plist @@ -1,4 +1,7 @@ -lib/libiiimcf.a +include/iiim/iiimcf.h +lib/libiiimcf.so.3 lib/libiiimcf.so -lib/libiiimcf.so.2 -include/iiimcf.h +lib/libiiimcf.la +lib/libiiimcf.a +libdata/pkgconfig/iiimf-lib-client.pc +@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-csconv/Makefile b/textproc/iiimf-csconv/Makefile index 8313328..d680198 100644 --- a/textproc/iiimf-csconv/Makefile +++ b/textproc/iiimf-csconv/Makefile @@ -6,79 +6,50 @@ # PORTNAME= csconv -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method Framework encoding convert library -IIIMF_VER= r12_1-svn2002 +ONLY_FOR_ARCHS= i386 + USE_BZIP2= yes USE_ICONV= yes USE_GMAKE= yes -USE_GNOME= intltool USE_REINPLACE= yes -USE_AUTOCONF_VER= 259 -#USE_AUTOHEADER_VER= 259 +WANT_AUTOCONF_VER= 259 +WANT_AUTOHEADER_VER= 259 WANT_AUTOMAKE_VER= 19 WANT_LIBTOOL_VER= 15 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/CSConv -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/lib/CSConv .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 ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/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}/configure.ac \ - ${WRKSRC}/csconv.h \ - ${WRKSRC}/converterPI/configure.in \ - ${WRKSRC}/converterPI/test/icutest4linux.c \ - ${WRKSRC}/converterPI/icuconv_relay.c \ - ${WRKSRC}/converterPI/icuconv/common/config.h - ${REINPLACE_CMD} -e "s,ELIBBAD,ENOEXEC," \ - ${WRKSRC}/converterPI/icuconv/common/icuconv.c - for MKFLIN in `find ${WRKSRC} -name "Makefile.in"`; do \ - ${REINPLACE_CMD} -e "/(CC)/s,-lc,,g" $${MKFLIN}; \ - ${REINPLACE_CMD} -e "/(CC)/s,-ldl,,g" $${MKFLIN}; \ - ${REINPLACE_CMD} -e '/(CC)/s,(LIBS),(LDFLAGS),g' $${MKFLIN}; \ - ${REINPLACE_CMD} -e '/(CC)/s,{LIBS},{LDFLAGS},g' $${MKFLIN}; \ - ${REINPLACE_CMD} -e "s,LIBS = @LIBS@,LDFLAGS = @LDFLAGS@,g" $${MKFLIN}; \ - done - -pre-configure: - @cd ${WRKSRC}/../../ && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ - -I ../../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR} - @cd ${WRKSRC}/converterPI/ && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} - -post-configure: ${REINPLACE_CMD} \ - -e "s,prefix = ${PREFIX},prefix = ${PREFIX}/lib/im," \ - `${FIND} ${WRKSRC} -type f -name Makefile` + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am + ${REINPLACE_CMD} -e "s,/usr/lib/iiim,${PREFIX}/lib/iiim,g" \ + ${BUILDDIR}/csconv.h + +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-csconv/distinfo b/textproc/iiimf-csconv/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-csconv/distinfo +++ b/textproc/iiimf-csconv/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-csconv/files/patch-Makefile b/textproc/iiimf-csconv/files/patch-Makefile index bcc2cb2..78d014f 100644 --- a/textproc/iiimf-csconv/files/patch-Makefile +++ b/textproc/iiimf-csconv/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/CSConv ++#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-csconv/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-csconv/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-csconv/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-csconv/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-csconv/files/patch-lib_CSConv_Makefile.am b/textproc/iiimf-csconv/files/patch-lib_CSConv_Makefile.am new file mode 100644 index 0000000..0825264 --- /dev/null +++ b/textproc/iiimf-csconv/files/patch-lib_CSConv_Makefile.am @@ -0,0 +1,11 @@ +--- lib/CSConv/Makefile.am.orig Fri May 13 17:52:28 2005 ++++ lib/CSConv/Makefile.am Fri May 13 17:52:42 2005 +@@ -2,7 +2,7 @@ + EXTRA_DIST= encoding.norm + SUBDIRS=test + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles + csconv_la_CFLAGS = -DCSCONV_DIR="\"${csconvdir}\"" + csconv_la_LDFLAGS = -avoid-version -module + csconv_la_LIBADD = @LTLIBICONV@ diff --git a/textproc/iiimf-csconv/files/patch-lib_CSConv_configure.ac b/textproc/iiimf-csconv/files/patch-lib_CSConv_configure.ac deleted file mode 100644 index 01fe319..0000000 --- a/textproc/iiimf-csconv/files/patch-lib_CSConv_configure.ac +++ /dev/null @@ -1,50 +0,0 @@ ---- lib/CSConv/configure.ac.orig Fri Jun 13 01:27:08 2003 -+++ lib/CSConv/configure.ac Wed Mar 2 08:43:13 2005 -@@ -28,7 +28,7 @@ - AC_INIT(csconv.h) - - AC_CONFIG_AUX_DIR(../../acfiles) --AC_PREFIX_DEFAULT(/usr/lib/im) -+AC_PREFIX_DEFAULT(${LOCALBASE}/lib/im) - IM_INIT(../..) - - AC_CONFIG_HEADER(config.h) -@@ -297,6 +297,9 @@ - if test x"${CC}" = x"gcc" ; then - SHLIBCFLAGS='-fpic' - SHLIBLDFLAGS='-shared' -+ elif test x"${CC}" = x"cc" ; then -+ SHLIBCFLAGS='-fpic' -+ SHLIBLDFLAGS='-shared' - else - SHLIBCFLAGS= - SHLIBLDFLAGS= -@@ -314,6 +317,7 @@ - case "${host}" in - *solaris*) platform=SOLARIS ;; - *linux*) platform=LINUX ;; -+ *freebsd*) platform=FREEBSD ;; - esac - AC_SUBST(platform) - -@@ -337,6 +341,12 @@ - ## Shared object suffix - SO=so - ;; -+ *freebsd*) -+ ## Commands to generate dependency files -+ GEN_DEPS="${CC} -E -MM ${DEFINES} ${INCLUDES}" -+ ## Shared object suffix -+ SO=so -+ ;; - esac - - -@@ -400,6 +410,7 @@ - AC_SUBST(ARFLAGS) - AC_SUBST(SHLIBCFLAGS) - AC_SUBST(SHLIBLDFLAGS) -+AC_SUBST(LDFLAGS) - AC_SUBST(SUBDIR) - AC_SUBST(ICONV_INCLUDES) - AC_SUBST(OBJS_ICONV) diff --git a/textproc/iiimf-csconv/files/patch-lib_CSConv_csconv.c b/textproc/iiimf-csconv/files/patch-lib_CSConv_csconv.c new file mode 100644 index 0000000..be89275 --- /dev/null +++ b/textproc/iiimf-csconv/files/patch-lib_CSConv_csconv.c @@ -0,0 +1,11 @@ +--- lib/CSConv/csconv.c.orig Tue May 17 04:10:30 2005 ++++ lib/CSConv/csconv.c Tue May 17 04:11:40 2005 +@@ -64,7 +64,7 @@ + /* should we read other configuration files + * such as ~/.iiim/encoding.norm ? + */ +- fp = fopen(CSCONV_DIR "/encoding.norm", "r"); ++ fp = fopen(CSC_BASE_DIR_DEFAULT "/encoding.norm", "r"); + if (!fp) return -1; + + while((fgets(buf, sizeof(buf), fp) != NULL)) { diff --git a/textproc/iiimf-csconv/pkg-plist b/textproc/iiimf-csconv/pkg-plist index f18c34d..32d6596 100644 --- a/textproc/iiimf-csconv/pkg-plist +++ b/textproc/iiimf-csconv/pkg-plist @@ -1,242 +1,5 @@ -lib/im/csconv/big5_ct.so -lib/im/csconv/big5w_ct.so -lib/im/csconv/cns_ct.so -lib/im/csconv/cnsw_ct.so -lib/im/csconv/compoundtext/ct_de -lib/im/csconv/compoundtext/ct_en_US -lib/im/csconv/compoundtext/ct_es -lib/im/csconv/compoundtext/ct_fr -lib/im/csconv/compoundtext/ct_it -lib/im/csconv/compoundtext/ct_ja -lib/im/csconv/compoundtext/ct_ko -lib/im/csconv/compoundtext/ct_sv -lib/im/csconv/compoundtext/ct_zh -lib/im/csconv/compoundtext/ct_zh.GBK -lib/im/csconv/compoundtext/ct_zh_TW -lib/im/csconv/compoundtext/ct_zh_TW.GBK -lib/im/csconv/csconv.conf -lib/im/csconv/csconv.so -lib/im/csconv/ct_big5.so -lib/im/csconv/ct_big5w.so -lib/im/csconv/ct_cns.so -lib/im/csconv/ct_cnsw.so -lib/im/csconv/ct_euc.so -lib/im/csconv/ct_eucw.so -lib/im/csconv/ct_pck.so -lib/im/csconv/ct_pckw.so -lib/im/csconv/ct_utf16.so -lib/im/csconv/ct_utf8.so -lib/im/csconv/ct_utf8w.so -lib/im/csconv/ctex_mbs.so -lib/im/csconv/ctex_wcs.so -lib/im/csconv/encoding.norm -lib/im/csconv/euc_ct.so -lib/im/csconv/eucw_ct.so -lib/im/csconv/iconv_relay.so -lib/im/csconv/iconv_relay_mb_wc.so -lib/im/csconv/iconv_relay_wc_mb.so -lib/im/csconv/icuconv_relay.so -lib/im/csconv/icuconv_relay_mb_wc.so -lib/im/csconv/icuconv_relay_wc_mb.so -lib/im/csconv/libicuconv.so -lib/im/csconv/mbs_ctex.so -lib/im/csconv/mbs_wcs.so -lib/im/csconv/nil.so -lib/im/csconv/pck_ct.so -lib/im/csconv/pckw_ct.so -lib/im/csconv/utf16_ct.so -lib/im/csconv/utf8_ct.so -lib/im/csconv/utf8w_ct.so -lib/im/csconv/wcs_ctex.so -lib/im/csconv/wcs_mbs.so -lib/im/icuconv/libicu-toolutil.so -lib/im/share/icu/1.4.0/cnvalias.dat -lib/im/share/icu/1.4.0/icudata_cnvalias.dat -lib/im/share/icu/1.4.0/ibm-1004.cnv -lib/im/share/icu/1.4.0/ibm-1006.cnv -lib/im/share/icu/1.4.0/ibm-1008.cnv -lib/im/share/icu/1.4.0/ibm-1038.cnv -lib/im/share/icu/1.4.0/ibm-1041.cnv -lib/im/share/icu/1.4.0/ibm-1043.cnv -lib/im/share/icu/1.4.0/ibm-1047.cnv -lib/im/share/icu/1.4.0/ibm-1051.cnv -lib/im/share/icu/1.4.0/ibm-1088.cnv -lib/im/share/icu/1.4.0/ibm-1089.cnv -lib/im/share/icu/1.4.0/ibm-1098.cnv -lib/im/share/icu/1.4.0/ibm-1112.cnv -lib/im/share/icu/1.4.0/ibm-1114.cnv -lib/im/share/icu/1.4.0/ibm-1115.cnv -lib/im/share/icu/1.4.0/ibm-1116.cnv -lib/im/share/icu/1.4.0/ibm-1117.cnv -lib/im/share/icu/1.4.0/ibm-1118.cnv -lib/im/share/icu/1.4.0/ibm-1119.cnv -lib/im/share/icu/1.4.0/ibm-1123.cnv -lib/im/share/icu/1.4.0/ibm-1140-s390.cnv -lib/im/share/icu/1.4.0/ibm-1140.cnv -lib/im/share/icu/1.4.0/ibm-1141.cnv -lib/im/share/icu/1.4.0/ibm-1142-s390.cnv -lib/im/share/icu/1.4.0/ibm-1142.cnv -lib/im/share/icu/1.4.0/ibm-1143-s390.cnv -lib/im/share/icu/1.4.0/ibm-1143.cnv -lib/im/share/icu/1.4.0/ibm-1144-s390.cnv -lib/im/share/icu/1.4.0/ibm-1144.cnv -lib/im/share/icu/1.4.0/ibm-1145-s390.cnv -lib/im/share/icu/1.4.0/ibm-1145.cnv -lib/im/share/icu/1.4.0/ibm-1146-s390.cnv -lib/im/share/icu/1.4.0/ibm-1146.cnv -lib/im/share/icu/1.4.0/ibm-1147-s390.cnv -lib/im/share/icu/1.4.0/ibm-1147.cnv -lib/im/share/icu/1.4.0/ibm-1148-s390.cnv -lib/im/share/icu/1.4.0/ibm-1148.cnv -lib/im/share/icu/1.4.0/ibm-1149-s390.cnv -lib/im/share/icu/1.4.0/ibm-1149.cnv -lib/im/share/icu/1.4.0/ibm-1153-s390.cnv -lib/im/share/icu/1.4.0/ibm-1153.cnv -lib/im/share/icu/1.4.0/ibm-1154.cnv -lib/im/share/icu/1.4.0/ibm-1155.cnv -lib/im/share/icu/1.4.0/ibm-1156.cnv -lib/im/share/icu/1.4.0/ibm-1157.cnv -lib/im/share/icu/1.4.0/ibm-1158.cnv -lib/im/share/icu/1.4.0/ibm-1159.cnv -lib/im/share/icu/1.4.0/ibm-1160.cnv -lib/im/share/icu/1.4.0/ibm-1164.cnv -lib/im/share/icu/1.4.0/ibm-1250.cnv -lib/im/share/icu/1.4.0/ibm-1251.cnv -lib/im/share/icu/1.4.0/ibm-1252.cnv -lib/im/share/icu/1.4.0/ibm-1253.cnv -lib/im/share/icu/1.4.0/ibm-1254.cnv -lib/im/share/icu/1.4.0/ibm-1255.cnv -lib/im/share/icu/1.4.0/ibm-1256.cnv -lib/im/share/icu/1.4.0/ibm-1257.cnv -lib/im/share/icu/1.4.0/ibm-1258.cnv -lib/im/share/icu/1.4.0/ibm-12712-s390.cnv -lib/im/share/icu/1.4.0/ibm-12712.cnv -lib/im/share/icu/1.4.0/ibm-1275.cnv -lib/im/share/icu/1.4.0/ibm-1276.cnv -lib/im/share/icu/1.4.0/ibm-1277.cnv -lib/im/share/icu/1.4.0/ibm-1280.cnv -lib/im/share/icu/1.4.0/ibm-1281.cnv -lib/im/share/icu/1.4.0/ibm-1282.cnv -lib/im/share/icu/1.4.0/ibm-1283.cnv -lib/im/share/icu/1.4.0/ibm-1361.cnv -lib/im/share/icu/1.4.0/ibm-1362.cnv -lib/im/share/icu/1.4.0/ibm-1363.cnv -lib/im/share/icu/1.4.0/ibm-1364.cnv -lib/im/share/icu/1.4.0/ibm-1370.cnv -lib/im/share/icu/1.4.0/ibm-1371.cnv -lib/im/share/icu/1.4.0/ibm-1383.cnv -lib/im/share/icu/1.4.0/ibm-1386.cnv -lib/im/share/icu/1.4.0/ibm-1390.cnv -lib/im/share/icu/1.4.0/ibm-1399.cnv -lib/im/share/icu/1.4.0/ibm-16684.cnv -lib/im/share/icu/1.4.0/ibm-16804-s390.cnv -lib/im/share/icu/1.4.0/ibm-16804.cnv -lib/im/share/icu/1.4.0/ibm-17248.cnv -lib/im/share/icu/1.4.0/ibm-21427.cnv -lib/im/share/icu/1.4.0/ibm-273.cnv -lib/im/share/icu/1.4.0/ibm-277.cnv -lib/im/share/icu/1.4.0/ibm-278.cnv -lib/im/share/icu/1.4.0/ibm-280.cnv -lib/im/share/icu/1.4.0/ibm-284.cnv -lib/im/share/icu/1.4.0/ibm-285.cnv -lib/im/share/icu/1.4.0/ibm-297.cnv -lib/im/share/icu/1.4.0/ibm-37-s390.cnv -lib/im/share/icu/1.4.0/ibm-37.cnv -lib/im/share/icu/1.4.0/ibm-420.cnv -lib/im/share/icu/1.4.0/ibm-424.cnv -lib/im/share/icu/1.4.0/ibm-437.cnv -lib/im/share/icu/1.4.0/ibm-4899.cnv -lib/im/share/icu/1.4.0/ibm-4909.cnv -lib/im/share/icu/1.4.0/ibm-4930.cnv -lib/im/share/icu/1.4.0/ibm-4971.cnv -lib/im/share/icu/1.4.0/ibm-500.cnv -lib/im/share/icu/1.4.0/ibm-5104.cnv -lib/im/share/icu/1.4.0/ibm-5123.cnv -lib/im/share/icu/1.4.0/ibm-5210.cnv -lib/im/share/icu/1.4.0/ibm-5346.cnv -lib/im/share/icu/1.4.0/ibm-5347.cnv -lib/im/share/icu/1.4.0/ibm-5349.cnv -lib/im/share/icu/1.4.0/ibm-5350.cnv -lib/im/share/icu/1.4.0/ibm-5351.cnv -lib/im/share/icu/1.4.0/ibm-5352.cnv -lib/im/share/icu/1.4.0/ibm-5353.cnv -lib/im/share/icu/1.4.0/ibm-5354.cnv -lib/im/share/icu/1.4.0/ibm-803.cnv -lib/im/share/icu/1.4.0/ibm-808.cnv -lib/im/share/icu/1.4.0/ibm-813.cnv -lib/im/share/icu/1.4.0/ibm-833.cnv -lib/im/share/icu/1.4.0/ibm-834.cnv -lib/im/share/icu/1.4.0/ibm-835.cnv -lib/im/share/icu/1.4.0/ibm-848.cnv -lib/im/share/icu/1.4.0/ibm-8482.cnv -lib/im/share/icu/1.4.0/ibm-849.cnv -lib/im/share/icu/1.4.0/ibm-850.cnv -lib/im/share/icu/1.4.0/ibm-852.cnv -lib/im/share/icu/1.4.0/ibm-855.cnv -lib/im/share/icu/1.4.0/ibm-856.cnv -lib/im/share/icu/1.4.0/ibm-857.cnv -lib/im/share/icu/1.4.0/ibm-858.cnv -lib/im/share/icu/1.4.0/ibm-859.cnv -lib/im/share/icu/1.4.0/ibm-860.cnv -lib/im/share/icu/1.4.0/ibm-861.cnv -lib/im/share/icu/1.4.0/ibm-862.cnv -lib/im/share/icu/1.4.0/ibm-863.cnv -lib/im/share/icu/1.4.0/ibm-864.cnv -lib/im/share/icu/1.4.0/ibm-865.cnv -lib/im/share/icu/1.4.0/ibm-866.cnv -lib/im/share/icu/1.4.0/ibm-867.cnv -lib/im/share/icu/1.4.0/ibm-868.cnv -lib/im/share/icu/1.4.0/ibm-869.cnv -lib/im/share/icu/1.4.0/ibm-871.cnv -lib/im/share/icu/1.4.0/ibm-872.cnv -lib/im/share/icu/1.4.0/ibm-874.cnv -lib/im/share/icu/1.4.0/ibm-878.cnv -lib/im/share/icu/1.4.0/ibm-891.cnv -lib/im/share/icu/1.4.0/ibm-897.cnv -lib/im/share/icu/1.4.0/ibm-901.cnv -lib/im/share/icu/1.4.0/ibm-902.cnv -lib/im/share/icu/1.4.0/ibm-9027.cnv -lib/im/share/icu/1.4.0/ibm-903.cnv -lib/im/share/icu/1.4.0/ibm-904.cnv -lib/im/share/icu/1.4.0/ibm-9044.cnv -lib/im/share/icu/1.4.0/ibm-9049.cnv -lib/im/share/icu/1.4.0/ibm-9061.cnv -lib/im/share/icu/1.4.0/ibm-907.cnv -lib/im/share/icu/1.4.0/ibm-909.cnv -lib/im/share/icu/1.4.0/ibm-910.cnv -lib/im/share/icu/1.4.0/ibm-912.cnv -lib/im/share/icu/1.4.0/ibm-913.cnv -lib/im/share/icu/1.4.0/ibm-914.cnv -lib/im/share/icu/1.4.0/ibm-915.cnv -lib/im/share/icu/1.4.0/ibm-916.cnv -lib/im/share/icu/1.4.0/ibm-920.cnv -lib/im/share/icu/1.4.0/ibm-921.cnv -lib/im/share/icu/1.4.0/ibm-922.cnv -lib/im/share/icu/1.4.0/ibm-923.cnv -lib/im/share/icu/1.4.0/ibm-9238.cnv -lib/im/share/icu/1.4.0/ibm-924.cnv -lib/im/share/icu/1.4.0/ibm-930.cnv -lib/im/share/icu/1.4.0/ibm-933.cnv -lib/im/share/icu/1.4.0/ibm-935.cnv -lib/im/share/icu/1.4.0/ibm-937.cnv -lib/im/share/icu/1.4.0/ibm-939.cnv -lib/im/share/icu/1.4.0/ibm-941.cnv -lib/im/share/icu/1.4.0/ibm-942.cnv -lib/im/share/icu/1.4.0/ibm-943.cnv -lib/im/share/icu/1.4.0/ibm-944.cnv -lib/im/share/icu/1.4.0/ibm-946.cnv -lib/im/share/icu/1.4.0/ibm-947.cnv -lib/im/share/icu/1.4.0/ibm-948.cnv -lib/im/share/icu/1.4.0/ibm-949.cnv -lib/im/share/icu/1.4.0/ibm-950.cnv -lib/im/share/icu/1.4.0/ibm-953.cnv -lib/im/share/icu/1.4.0/ibm-954.cnv -lib/im/share/icu/1.4.0/ibm-955.cnv -lib/im/share/icu/1.4.0/ibm-970.cnv -@dirrm lib/im/share/icu/1.4.0 -@dirrm lib/im/share/icu -@dirrm lib/im/share -@dirrm lib/im/icuconv -@dirrm lib/im/csconv/compoundtext -@dirrm lib/im/csconv -@unexec rmdir %D/lib/im > /dev/null 2>&1 || true +lib/iiim/csconv/csconv.la +lib/iiim/csconv/csconv.so +lib/iiim/csconv/encoding.norm +@dirrm lib/iiim/csconv +@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-gnome-im-switcher/Makefile b/textproc/iiimf-gnome-im-switcher/Makefile index 7eb9393..1ee8652 100644 --- a/textproc/iiimf-gnome-im-switcher/Makefile +++ b/textproc/iiimf-gnome-im-switcher/Makefile @@ -6,88 +6,68 @@ # PORTNAME= gnome-im-switcher -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 gnome input method switcher -BROKEN= Incorrect pkg-plist +ONLY_FOR_ARCHS= i386 USE_X_PREFIX= yes -IIIMF_VER= r12_1-svn2002 USE_BZIP2= yes USE_REINPLACE= yes USE_GETTEXT= yes USE_GMAKE= yes USE_GNOME= intltool gconf2 libglade2 libgnomeui \ gnomepanel gnomeprefix gnomehack -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-//}/gnome-im-switcher -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/gnome-im-switcher .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} LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lintl ${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}" -TLZ_ARGS= --copy --force -BNB_PATH= bonobo/server +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" post-patch: - ${REINPLACE_CMD} -e "s,/usr/lib/im,${LOCALBASE}/lib/im,g" \ - ${WRKSRC}/../acfiles/im_common.m4 + ${REINPLACE_CMD} \ + -e '/^serverdir/s,$$[(]libdir[)],%%LOCALBASE%%/libdata,g' \ + -e '/^uidir/s,$$[(]datadir[)]/,&gnome/,g' \ + ${BUILDDIR}/src/Makefile.am + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am \ + ${BUILDDIR}/src/Makefile.am ${REINPLACE_CMD} -e "/GNOMECC_DATA_DIR/s,/share/,&gnome/,g" \ - ${WRKSRC}/configure.in + ${BUILDDIR}/configure.ac + ${REINPLACE_CMD} -e "/^GNOMECC_.*_DIR=/s,[(]datadir[)]/,&gnome/,g" \ + ${BUILDDIR}/configure.ac + ${REINPLACE_CMD} -e "/^omf_dest_dir/s,[(]datadir[)]/,&gnome/,g" \ + ${BUILDDIR}/help/omf.make -pre-configure: - @cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @cd ${WRKSRC} && glib-gettextize ${TLZ_ARGS} - @cd ${WRKSRC} && intltoolize ${TLZ_ARGS} - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} ${TLZ_ARGS} - @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} +do-configure: + @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} bootstrap + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config post-configure: - ${REINPLACE_CMD} \ - -e "s,[(]libdir[)]/${BNB_PATH},{exec_prefix}/libdata/${BNB_PATH},g" \ - -e "/-D.*LOCALEDIR=/s,[(]datadir[)]/,&../,g" \ - ${WRKSRC}/src/Makefile - ${REINPLACE_CMD} -e "s,[(]datadir[)]/gnome/,(datadir)/,g" \ - ${WRKSRC}/help/C/Makefile - ${REINPLACE_CMD} \ - -e "/^datadir/s,${PREFIX}/share/gnome,${PREFIX}/share,g" \ - ${WRKSRC}/po/Makefile + ${REINPLACE_CMD} -e '/^pkgdatadir/s,[(]datadir[)]/,&gnome/,g' \ + -e '/^iconsdir/s,[(]datadir[)]/,&gnome/,g' \ + ${BUILDDIR}/src/Makefile .include <bsd.port.post.mk> diff --git a/textproc/iiimf-gnome-im-switcher/distinfo b/textproc/iiimf-gnome-im-switcher/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-gnome-im-switcher/distinfo +++ b/textproc/iiimf-gnome-im-switcher/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-gnome-im-switcher/files/patch-Makefile b/textproc/iiimf-gnome-im-switcher/files/patch-Makefile index bcc2cb2..e069a63 100644 --- a/textproc/iiimf-gnome-im-switcher/files/patch-Makefile +++ b/textproc/iiimf-gnome-im-switcher/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=%%PREFIX%%/etc --localstatedir=/var + +-INTLDIRS = iiimgcf gnome-im-switcher ++INTLDIRS = 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 = 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 + +-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-gnome-im-switcher/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-gnome-im-switcher/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-gnome-im-switcher/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-gnome-im-switcher/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-gnome-im-switcher/files/patch-gnome_Makefile.am b/textproc/iiimf-gnome-im-switcher/files/patch-gnome_Makefile.am new file mode 100644 index 0000000..2bc8e14 --- /dev/null +++ b/textproc/iiimf-gnome-im-switcher/files/patch-gnome_Makefile.am @@ -0,0 +1,10 @@ +--- gnome-im-switcher/Makefile.am.orig Fri May 13 17:44:10 2005 ++++ gnome-im-switcher/Makefile.am Fri May 13 17:44:57 2005 +@@ -1,5 +1,7 @@ + SUBDIRS = src po capplet help + ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I %%PREFIX%%/share/aclocal -I ../acfiles ++ + @INTLTOOL_DESKTOP_RULE@ + + EXTRA_DIST = \ diff --git a/textproc/iiimf-gnome-im-switcher/files/patch-gnome_configure.in b/textproc/iiimf-gnome-im-switcher/files/patch-gnome_configure.in deleted file mode 100644 index 873ae12..0000000 --- a/textproc/iiimf-gnome-im-switcher/files/patch-gnome_configure.in +++ /dev/null @@ -1,9 +0,0 @@ ---- gnome-im-switcher/configure.in.orig Thu Oct 14 23:10:11 2004 -+++ gnome-im-switcher/configure.in Wed Mar 2 22:17:35 2005 -@@ -40,6 +40,7 @@ - GIMLET_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $GIMLET_LIBS" - GIMLET_CFLAGS="$X_CFLAGS $GIMLET_CFLAGS" - CFLAGS="$GIMLET_CFLAGS $CFLAGS" -+LDFLAGS="${LDFLAGS}" - - AC_PATH_PROG(GCONFTOOL, gconftool-2, no) diff --git a/textproc/iiimf-gnome-im-switcher/files/patch-gnome_src_widgets.c b/textproc/iiimf-gnome-im-switcher/files/patch-gnome_src_widgets.c index b1e61d2..6e4b9f2 100644 --- a/textproc/iiimf-gnome-im-switcher/files/patch-gnome_src_widgets.c +++ b/textproc/iiimf-gnome-im-switcher/files/patch-gnome_src_widgets.c @@ -1,5 +1,5 @@ ---- gnome-im-switcher/src/widgets.c Thu Oct 14 23:10:11 2004 -+++ gnome-im-switcher/src/widgets.c Wed Feb 16 16:51:26 2005 +--- gnome-im-switcher/src/widgets.c.orig Tue May 10 16:29:36 2005 ++++ gnome-im-switcher/src/widgets.c Tue May 10 16:30:04 2005 @@ -29,7 +29,11 @@ #include <gnome.h> diff --git a/textproc/iiimf-gnome-im-switcher/pkg-plist b/textproc/iiimf-gnome-im-switcher/pkg-plist index b8c4fa9..ea1ddd7 100644 --- a/textproc/iiimf-gnome-im-switcher/pkg-plist +++ b/textproc/iiimf-gnome-im-switcher/pkg-plist @@ -1,92 +1,59 @@ bin/gnome-im-properties bin/gnome-im-settings-daemon -libdata/bonobo/servers/GNOME_IMSwitcherApplet.server libexec/gnome-im-switcher-applet -share/gnome/control-center-2.0/capplets/gnome-im-properties.desktop -share/gnome/control-center-2.0/interfaces/gnome-im-properties.glade2 -share/gnome/gnome-2.0/ui/GNOME_InputMethodSwitcherApplet.xml +share/locale/bn/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/cs/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/de/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/es/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/fr/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/gu/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/hi/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/hu/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/it/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/ja/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/ko/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/pa/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/pl/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/pt_BR/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/ru/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/sv/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/ta/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/zh_CN/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/zh_TW/LC_MESSAGES/iiimf-im-switcher.mo +share/locale/zh_HK/LC_MESSAGES/iiimf-im-switcher.mo +share/icons/hicolor/48x48/apps/gnome-settings-im.png share/gnome/pixmaps/gnome-settings-im.png share/gnome/pixmaps/gimlet-off.png share/gnome/pixmaps/gimlet-on.png +share/gnome/pixmaps/gimlet-disable.png +share/gnome/control-center-2.0/capplets/gnome-im-properties.desktop +share/gnome/control-center-2.0/interfaces/gnome-im-properties.glade2 +share/gnome/help/imswitcher/C/legal.xml +share/gnome/help/imswitcher/C/imswitcher.xml +@dirrm share/gnome/help/imswitcher/C +@dirrm share/gnome/help/imswitcher +share/gnome/iiimf-im-switcher/glade/gnome-im-switcher.glade2 +@dirrm share/gnome/iiimf-im-switcher/glade +@dirrm share/gnome/iiimf-im-switcher +share/gnome/gnome-2.0/ui/GNOME_InputMethodSwitcherApplet.xml +@comment +@comment 'do scrollkeeper-update' +@comment +share/gnome/omf/iiimf-im-switcher/imswitcher-C.omf +@exec %D/bin/scrollkeeper-update -p %D/var/scrollkeeper -o %D/share/gnome/omf/gnome-im-switcher +@unexec %D/bin/scrollkeeper-update -p %D/var/scrollkeeper -o %D/share/gnome/omf/gnome-im-switcher +@dirrm share/gnome/omf/iiimf-im-switcher +@comment +@comment 'do gconftool-2' +@comment @unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults %D/bin/gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/gnome-im-switcher.schemas > /dev/null || true etc/gconf/schemas/gnome-im-switcher.schemas @exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults %D/bin/gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/gnome-im-switcher.schemas > /dev/null || true @unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults %D/bin/gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/gnome-im-properties.schemas > /dev/null || true etc/gconf/schemas/gnome-im-properties.schemas @exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults %D/bin/gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/gnome-im-properties.schemas > /dev/null || true -@exec %D/bin/scrollkeeper-update -p %D/var/scrollkeeper -o %D/share/gnome/omf/gnome-im-switcher -share/gnome/omf/gnome-im-switcher/imswitcher-C.omf -@unexec %D/bin/scrollkeeper-update -p %D/var/scrollkeeper -o %D/share/gnome/omf/gnome-im-switcher -@dirrm share/gnome/omf/gnome-im-switcher -share/gnome/gnome-im-switcher/glade/gnome-im-switcher.glade2 -@dirrm share/gnome/gnome-im-switcher/glade -@dirrm share/gnome/gnome-im-switcher -share/gnome/help/imswitcher/C/legal.xml -share/gnome/help/imswitcher/C/imswitcher.xml -@dirrm share/gnome/help/imswitcher/C -@dirrm share/gnome/help/imswitcher -share/gnome/icons/hicolor/48x48/apps/gnome-settings-im.png -@unexec rmdir %D/share/gnome/icons/hicolor/48x48/apps > /dev/null 2>&1 || true -@unexec rmdir %D/share/gnome/icons/hicolor/48x48 > /dev/null 2>&1 || true -@unexec rmdir %D/share/gnome/icons/hicolor > /dev/null 2>&1 || true -@unexec rmdir %D/share/gnome/icons > /dev/null 2>&1 || true -share/locale/ja/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/ja/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/ja > /dev/null 2>&1 || true -share/locale/ko/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/ko/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/ko > /dev/null 2>&1 || true -share/locale/zh_CN/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/zh_CN/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/zh_CN > /dev/null 2>&1 || true -share/locale/zh_TW/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/zh_TW/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/zh_TW > /dev/null 2>&1 || true -share/locale/zh_HK/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/zh_HK/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/zh_HK > /dev/null 2>&1 || true -share/locale/de/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/de/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/de > /dev/null 2>&1 || true -share/locale/fr/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/fr/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/fr > /dev/null 2>&1 || true -share/locale/pl/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/pl/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/pl > /dev/null 2>&1 || true -share/locale/ru/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/ru/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/ru > /dev/null 2>&1 || true -share/locale/es/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/es/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/es > /dev/null 2>&1 || true -share/locale/it/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/it/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/it > /dev/null 2>&1 || true -share/locale/pt_BR/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/pt_BR/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/pt_BR > /dev/null 2>&1 || true -share/locale/sv/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/sv/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/sv > /dev/null 2>&1 || true -share/locale/cs/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/cs/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/cs > /dev/null 2>&1 || true -share/locale/hu/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/hu/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/hu > /dev/null 2>&1 || true -share/locale/bn/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/bn/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/bn > /dev/null 2>&1 || true -share/locale/gu/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/gu/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/gu > /dev/null 2>&1 || true -share/locale/hi/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/hi/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/hi > /dev/null 2>&1 || true -share/locale/pa/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/pa/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/pa > /dev/null 2>&1 || true -share/locale/ta/LC_MESSAGES/gnome-im-switcher.mo -@unexec rmdir %D/share/locale/ta/LC_MESSAGES > /dev/null 2>&1 || true -@unexec rmdir %D/share/locale/ta > /dev/null 2>&1 || true +@comment +@comment 'rm files in LOCALBASE.' +@comment +@cwd %%LOCALBASE%% +libdata/bonobo/servers/GNOME_IMSwitcherApplet.server diff --git a/textproc/iiimf-gtk/Makefile b/textproc/iiimf-gtk/Makefile index 148bfd8..d6e5561 100644 --- a/textproc/iiimf-gtk/Makefile +++ b/textproc/iiimf-gtk/Makefile @@ -6,75 +6,60 @@ # PORTNAME= gtk -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= Internet/Intranet Input Method Server Framework -LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib \ - iiimcf.2:${PORTSDIR}/textproc/iiimf-client-lib +LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib \ + iiimcf.3:${PORTSDIR}/textproc/iiimf-client-lib + +ONLY_FOR_ARCHS= i386 USE_X_PREFIX= yes -IIIMF_VER= r12_1-svn2002 USE_BZIP2= yes +USE_ICONV= yes USE_REINPLACE= yes USE_GETTEXT= yes USE_GMAKE= yes USE_GNOME= intltool gtk20 -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-//}/iiimgcf -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/iiimgcf .include <bsd.port.pre.mk> .if ${OSVERSION} < 503000 -IGNORE= "It is supported on FreeBSD 5.3 and later" +IGNORE= It is supported on FreeBSD 5.3 and later. .endif -.if ${ARCH} != "i386" -IGNORE= "${ARCH} is not support." +.if defined(WITH_DEBUG) +CFLAGS+= -DDEBUG .endif CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lintl ${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}" -TLZ_ARGS= --copy --force +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -liconv -lintl ${PTHREAD_LIBS} +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" post-patch: - ${REINPLACE_CMD} -e "s,/usr/lib/im,${LOCALBASE}/lib/im,g" \ - ${WRKSRC}/../acfiles/im_common.m4 + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am -pre-configure: - @cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @cd ${WRKSRC} && glib-gettextize ${TLZ_ARGS} - @cd ${WRKSRC} && intltoolize ${TLZ_ARGS} - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} ${TLZ_ARGS} - @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} +do-configure: + @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} bootstrap + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config post-install: ${X11BASE}/bin/gtk-query-immodules-2.0 > \ diff --git a/textproc/iiimf-gtk/distinfo b/textproc/iiimf-gtk/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-gtk/distinfo +++ b/textproc/iiimf-gtk/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-gtk/files/patch-Makefile b/textproc/iiimf-gtk/files/patch-Makefile index bcc2cb2..70065ec 100644 --- a/textproc/iiimf-gtk/files/patch-Makefile +++ b/textproc/iiimf-gtk/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 + +-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 = iiimgcf ++#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-gtk/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-gtk/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-gtk/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-gtk/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-gtk/files/patch-iiimgcf_Makefile.am b/textproc/iiimf-gtk/files/patch-iiimgcf_Makefile.am index 7588f7b..78725fc 100644 --- a/textproc/iiimf-gtk/files/patch-iiimgcf_Makefile.am +++ b/textproc/iiimf-gtk/files/patch-iiimgcf_Makefile.am @@ -1,21 +1,26 @@ ---- iiimgcf/Makefile.am Thu Jan 15 10:51:58 2004 -+++ iiimgcf/Makefile.am Thu Feb 17 22:05:59 2005 -@@ -9,14 +9,13 @@ +--- iiimgcf/Makefile.am.orig Thu Apr 14 05:29:08 2005 ++++ iiimgcf/Makefile.am Tue May 17 22:33:56 2005 +@@ -5,11 +5,11 @@ + @INTLTOOL_DESKTOP_RULE@ + + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../acfiles ++ACLOCAL_AMFLAGS = -I /usr/local/share/aclocal -I /usr/X11R6/share/aclocal -I ../acfiles + moduledir = $(GTK2_LIBDIR)/gtk-2.0/$(GTK2_BINARY_VERSION)/immodules -im_iiim_la_CFLAGS = $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) $(GTK_CFLAGS) -+im_iiim_la_CFLAGS = $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) $(GTK_CFLAGS) -DIMDIR="\"${IMDIR}\"" --im_iiim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module -no-undefined -+im_iiim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module -no-undefined \ -+ -liiimcf -liiimp ++im_iiim_la_CFLAGS = $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) $(GTK_CFLAGS) -I $(CSCONV_DIR) + im_iiim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module -no-undefined im_iiim_la_SOURCES = IIIMGdkEventKey.c IIIMGdkEventKey.h \ - gtkimcontextiiim.c gtkimcontextiiim.h \ - imiiim.c imswitcher.c imaux.c --im_iiim_la_LIBADD = $(X_LIBS) $(GTK_LIBS) \ +@@ -18,8 +18,7 @@ + imswitcher.c imswitcher.h + + im_iiim_la_LIBADD = $(X_LIBS) $(GTK_LIBS) \ - $(IM_LIBDIR)/iiimcf/libiiimcf.la \ - $(IM_LIBDIR)/iiimp/libiiimp.la -+im_iiim_la_LIBADD = $(X_LIBS) $(GTK_LIBS) ++ -liiimp -liiimcf module_LTLIBRARIES = im-iiim.la diff --git a/textproc/iiimf-gtk/files/patch-iiimgcf_configure.ac b/textproc/iiimf-gtk/files/patch-iiimgcf_configure.ac deleted file mode 100644 index 375a272..0000000 --- a/textproc/iiimf-gtk/files/patch-iiimgcf_configure.ac +++ /dev/null @@ -1,27 +0,0 @@ ---- iiimgcf/configure.ac.orig Tue Nov 18 12:17:57 2003 -+++ iiimgcf/configure.ac Wed Mar 2 22:59:24 2005 -@@ -5,7 +5,6 @@ - AC_PREREG(2.50) - AC_INIT(im-iiim.so, 0.5, im@OpenI18N.org) - dnl common initialization --AC_CONFIG_AUX_DIR(../acfiles) - IM_INIT(..) - - AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) -@@ -63,13 +62,13 @@ - COMMON_INCLUDE='-I$(IM_INCLUDEDIR) -I$(IM_INCLUDEDIR)/iiimp' - CFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" - - CXXFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CXXFLAGS}" - --LDFLAGS="${COMMON_LDFLAGS}" -+LDFLAGS="${COMMON_LDFLAGS} ${LDFLAGS}" - - dnl -------------------------------------------------------------------------------- - dnl Section 6: compilation test diff --git a/textproc/iiimf-gtk/files/patch-iiimgcf_gtkimcontextiiim.c b/textproc/iiimf-gtk/files/patch-iiimgcf_gtkimcontextiiim.c new file mode 100644 index 0000000..7a460ff --- /dev/null +++ b/textproc/iiimf-gtk/files/patch-iiimgcf_gtkimcontextiiim.c @@ -0,0 +1,149 @@ +--- iiimgcf/gtkimcontextiiim.c.orig Fri Apr 22 07:46:48 2005 ++++ iiimgcf/gtkimcontextiiim.c Tue May 17 23:33:11 2005 +@@ -39,6 +39,7 @@ + #include "imaux.h" + #include "imswitcher.h" + #include "IIIMGdkEventKey.h" ++#include "iconv.h" + + #ifdef DEBUG + #define DEBUG_DO(x) (x) +@@ -147,6 +148,8 @@ + static GdkAtom im_settings_atom = GDK_NONE; + static const char *_IM_SETTINGS = "_IM_SETTINGS"; + ++static iconv_t ic_u16_to_u8 = (iconv_t)-1; ++ + static gboolean on_status_toplevel_configure (GtkWidget *toplevel, + GdkEventConfigure *event, + StatusWindow *status_window); +@@ -305,6 +308,7 @@ + return; + } + utf8 = utf16_to_utf8 (text); ++ if (!utf8) utf8 = g_strdup(""); + + if (current_setting_enabled && + (current_setting.im_enabled == IM_OFF || +@@ -593,9 +597,12 @@ + IIIMCF_text text; + gchar *utf8 = NULL; + st = iiimcf_get_committed_text (c, &text); ++ if (st != IIIMF_STATUS_SUCCESS) break; + utf8 = utf16_to_utf8 (text); +- g_signal_emit_by_name (context_iiim, "commit", utf8); +- g_free (utf8); ++ if (utf8) { ++ g_signal_emit_by_name (context_iiim, "commit", utf8); ++ g_free (utf8); ++ } + } + break; + default: +@@ -936,7 +943,7 @@ + return; + } + +- gtk_frame_set_label(GTK_FRAME (cw->frame), title_u8); ++ gtk_frame_set_label(GTK_FRAME (cw->frame), (title_u8 ? title_u8 : "")); + + if (title_u8) + g_free (title_u8); +@@ -975,6 +982,7 @@ + if (label) + label_u8 = utf16_to_utf8 (label); + candidate_u8 = utf16_to_utf8 (candidate); ++ if (!candidate_u8) candidate_u8 = g_strdup(""); + DEBUG_DO (g_message ("candidate %s", candidate_u8)); + if (label_u8) + { +@@ -997,12 +1005,9 @@ + gtk_tree_view_get_selection (GTK_TREE_VIEW (cw->tree)); + gtk_tree_selection_select_iter (selection, &iter); + } +- if (result) +- { +- g_free (result); +- g_free (label_u8); +- } +- g_free (candidate_u8); ++ if (result) g_free(result); ++ if (candidate_u8) g_free (candidate_u8); ++ if (label_u8) g_free(label_u8); + } + gtk_widget_realize (w); + iiim_candidate_move (context_iiim, w); +@@ -1187,7 +1192,7 @@ + w->toplevel = gtk_window_new (GTK_WINDOW_POPUP); + gtk_container_set_border_width (GTK_CONTAINER (w->toplevel), 2); + +- w->frame = gtk_frame_new (title_u8); ++ w->frame = gtk_frame_new (title_u8 ? title_u8 : ""); + gtk_frame_set_shadow_type (GTK_FRAME (w->frame), GTK_SHADOW_ETCHED_OUT); + + w->tree = gtk_tree_view_new (); +@@ -1539,14 +1544,52 @@ + } + + static gchar * ++iconv_utf16_to_utf8(const gunichar2 *utf16, int length) ++{ ++ if (!utf16 || 0 >= length) return g_strdup(""); ++ ++ if ((iconv_t)-1 == ic_u16_to_u8) { ++ ic_u16_to_u8 = iconv_open("UTF-8", "UTF-16"); ++ ++ if ((iconv_t)-1 == ic_u16_to_u8) { ++ fprintf(stderr, "iiimgcf: Unable to open UTF-16 -> UTF-8 converter."); ++ return NULL; ++ } ++ } ++ ++ int inlen = length * sizeof(gunichar2); ++ int outlen = (length +1) * 4; ++ const char *inbuf = (char*)utf16; ++ char *outbuf = g_malloc0(outlen + 4); ++ gchar *utf8 = (gchar*)outbuf; ++ ++ if (!outbuf) { ++ fprintf(stderr, "iiimgcf: Out of memory error."); ++ return NULL; ++ } ++ ++ if ((size_t)-1 == iconv(ic_u16_to_u8, &inbuf, &inlen, &outbuf, &outlen)) { ++ fprintf(stderr, "iiimgcf: Unable to convert the string."); ++ g_free(utf8); ++ return NULL; ++ } ++ ++ return utf8; ++} ++ ++static gchar * + utf16_to_utf8 (IIIMCF_text text) + { + IIIMF_status st; ++ ++ int len = 0; + IIIMP_card16 *u16str = NULL; + st = iiimcf_get_text_utf16string (text, (const IIIMP_card16 **) &u16str); +- return (u16str != NULL ? +- g_utf16_to_utf8 ((const gunichar2 *) u16str, -1, NULL, NULL, NULL) : +- NULL); ++ st = iiimcf_get_text_length(text, &len); ++ ++ if (st != IIIMF_STATUS_SUCCESS) return NULL; ++ ++ return iconv_utf16_to_utf8((const gunichar2 *)u16str, len); + } + + static void +@@ -2094,7 +2137,7 @@ + goto Error; + utf8 = utf16_to_utf8 (text); + +- if (attrs) ++ if (attrs && utf8) + { + gint i; + gint j; diff --git a/textproc/iiimf-gtk/files/patch-iiimgcf_imaux.c b/textproc/iiimf-gtk/files/patch-iiimgcf_imaux.c deleted file mode 100644 index dda9b5a..0000000 --- a/textproc/iiimf-gtk/files/patch-iiimgcf_imaux.c +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimgcf/imaux.c Thu Jul 29 20:44:21 2004 -+++ iiimgcf/imaux.c Wed Feb 16 20:40:51 2005 -@@ -36,7 +36,7 @@ - - static void iiim_aux_download (IIIMCF_downloaded_object obj); - --#define AUX_BASE_DIR "/usr/lib/im/" -+#define AUX_BASE_DIR IMDIR - - #define IS_SPACE(len, ptr) ((0 < (len)) && \ - (('\t' == *(p)) || (' ' == *(p)))) diff --git a/textproc/iiimf-headers/Makefile b/textproc/iiimf-headers/Makefile index dc6d8f7..b39a053 100644 --- a/textproc/iiimf-headers/Makefile +++ b/textproc/iiimf-headers/Makefile @@ -6,27 +6,26 @@ # PORTNAME= headers -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} +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= Header files for Internet/Intranet Input Method Framework -IIIMF_VER= r12_1-svn2002 WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} USE_BZIP2= yes NO_BUILD= yes do-install: - ${MKDIR} ${PREFIX}/include/iiimf + ${MKDIR} ${PREFIX}/include/iiim .for file in IMArg.h IMCharSubsets.h IMProtocolStruct.h syscfg.h threaddef.h - ${INSTALL_DATA} ${WRKSRC}/include/${file} ${PREFIX}/include/iiimf + ${INSTALL_DATA} ${WRKSRC}/include/${file} ${PREFIX}/include/iiim .endfor - ${MKDIR} ${PREFIX}/include/iiimf/iml - ${INSTALL_DATA} ${WRKSRC}/include/iml/*.h ${PREFIX}/include/iiimf/iml + ${MKDIR} ${PREFIX}/include/iiim/iml + ${INSTALL_DATA} ${WRKSRC}/include/iml/*.h ${PREFIX}/include/iiim/iml .include <bsd.port.mk> diff --git a/textproc/iiimf-headers/distinfo b/textproc/iiimf-headers/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-headers/distinfo +++ b/textproc/iiimf-headers/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-headers/pkg-plist b/textproc/iiimf-headers/pkg-plist index 41e135a..170f9e8 100644 --- a/textproc/iiimf-headers/pkg-plist +++ b/textproc/iiimf-headers/pkg-plist @@ -1,15 +1,16 @@ -include/iiimf/IMArg.h -include/iiimf/IMCharSubsets.h -include/iiimf/IMProtocolStruct.h -include/iiimf/syscfg.h -include/iiimf/threaddef.h -include/iiimf/iml/SunIM.h -include/iiimf/iml/SunIMCore.h -include/iiimf/iml/SunIMLock.h -include/iiimf/iml/SunIMMMan.h -include/iiimf/iml/SunIMMthd.h -include/iiimf/iml/SunIMPriv.h -include/iiimf/iml/SunIMProt.h -include/iiimf/iml/SunIMPub.h -@dirrm include/iiimf/iml -@dirrm include/iiimf +include/iiim/IMArg.h +include/iiim/IMCharSubsets.h +include/iiim/IMProtocolStruct.h +include/iiim/syscfg.h +include/iiim/threaddef.h +include/iiim/iml/SunIM.h +include/iiim/iml/SunIMCore.h +include/iiim/iml/SunIMLock.h +include/iiim/iml/SunIMMMan.h +include/iiim/iml/SunIMMthd.h +include/iiim/iml/SunIMPriv.h +include/iiim/iml/SunIMProt.h +include/iiim/iml/SunIMPub.h +include/iiim/iml/iml_fop.h +@dirrm include/iiim/iml +@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-le-unit/Makefile b/textproc/iiimf-le-unit/Makefile index 6ecae1a..20c3d93 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 440e49d..4416cce 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 bcc2cb2..687ccf0 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 8626eea..44ee86c 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 0000000..710a4d8 --- /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 2289a05..836f246 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 9d0ba20..0000000 --- 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 88a908b..0000000 --- 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 e86cbdf..0000000 --- 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 2adf385..0000000 --- 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 d172f71..0000000 --- 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 73dee74..0000000 --- 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 9225f0a..0000000 --- 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 fe92be9..0000000 --- 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 b71286e..0000000 --- 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 36c2ab4..0000000 --- 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 b93bd21..0000000 --- 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 d05cba8..0000000 --- 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 6a928a7..0000000 --- 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 6943cf0..0000000 --- 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 0757a75..0000000 --- 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 ee83935..0000000 --- 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 2edbc6c..0000000 --- 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 94ec2b9..0000000 --- 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 3e4228b..0000000 --- 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 f590d7d..0000000 --- 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 a36049c..0000000 --- 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 d74d527..0000000 --- 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 99d8f18..0000000 --- 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 4386636..0000000 --- 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 e2ce32b..0000000 --- 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 61aaeea..0000000 --- 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 008cb30..0000000 --- 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 fbe0c5a..0000000 --- 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 d6722bf..0000000 --- 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 5cdb298..0000000 --- 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 2cbf82f6e..0000000 --- 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 89f0a0a..0000000 --- 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 c49a92b..0000000 --- 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 a62d350..0000000 --- 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 6d53fc6..0000000 --- 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 356a2e3..0000000 --- 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 baf9842..0000000 --- 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 64c4f07..0000000 --- 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 1054589..0000000 --- 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 59e9f0c..0000000 --- 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 d98acce..0000000 --- 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 0000000..8e23e8b --- /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 17586ab..ffee886 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 diff --git a/textproc/iiimf-protocol-lib/Makefile b/textproc/iiimf-protocol-lib/Makefile index a565493..62c0d63 100644 --- a/textproc/iiimf-protocol-lib/Makefile +++ b/textproc/iiimf-protocol-lib/Makefile @@ -6,61 +6,49 @@ # PORTNAME= protocol-lib -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method Framework protocol library -IIIMF_VER= r12_1-svn2002 +ONLY_FOR_ARCHS= i386 + INSTALLS_SHLIB= yes USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= 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 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/iiimp -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/lib/iiimp .include <bsd.port.pre.mk> .if ${OSVERSION} < 503000 -IGNORE= "It is supported on FreeBSD 5.3 and later" +IGNORE= It is supported on FreeBSD 5.3 and later. .endif -.if ${ARCH} != "i386" -IGNORE= "${ARCH} is not support." -.endif - -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 - -pre-configure: - @cd ${WRKSRC}/../.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @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} + ${REINPLACE_CMD} \ + -e '/^pkgconfigdir/s,$$(libdir),%%PREFIX%%/libdata,g' \ + ${BUILDDIR}/Makefile.am + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/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-protocol-lib/distinfo b/textproc/iiimf-protocol-lib/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-protocol-lib/distinfo +++ b/textproc/iiimf-protocol-lib/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-protocol-lib/files/patch-Makefile b/textproc/iiimf-protocol-lib/files/patch-Makefile index bcc2cb2..3b1030c 100644 --- a/textproc/iiimf-protocol-lib/files/patch-Makefile +++ b/textproc/iiimf-protocol-lib/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/iiimp ++#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-protocol-lib/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-protocol-lib/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-protocol-lib/files/patch-lib_iiimp_Makefile.am b/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_Makefile.am new file mode 100644 index 0000000..af10179 --- /dev/null +++ b/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_Makefile.am @@ -0,0 +1,9 @@ +--- lib/iiimp/Makefile.am.orig Fri May 13 15:37:41 2005 ++++ lib/iiimp/Makefile.am Fri May 13 15:38:13 2005 +@@ -1,5 +1,5 @@ + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles + #libdir = /usr/local/lib + libiiimp_la_LDFLAGS = -version-info $(LIBIIIMP_MAJOR_VERSION):$(LIBIIIMP_MINOR_VERSION) \ + -export-dynamic -g @TLS_LIBS@ diff --git a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_configure.ac b/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_configure.ac deleted file mode 100644 index 810ffa4..0000000 --- a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_configure.ac +++ /dev/null @@ -1,28 +0,0 @@ ---- lib/iiimp/configure.ac.orig Tue Jul 13 09:38:42 2004 -+++ lib/iiimp/configure.ac Wed Mar 2 06:32:37 2005 -@@ -26,7 +26,7 @@ - - AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) - AM_CONFIG_HEADER(config.h) --AM_PROG_LIBTOOL -+AC_PROG_LIBTOOL - - dnl -------------------------------------------------------------------------------- - dnl Section 2: Autoheader -@@ -78,13 +78,13 @@ - - 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}" -+LDFLAGS="${COMMON_LDFLAGS} ${LDFLAGS}" - - dnl -------------------------------------------------------------------------------- - dnl Section 6: compilation test diff --git a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_comp-string.c b/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_comp-string.c deleted file mode 100644 index 60d0a2d3..0000000 --- a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_comp-string.c +++ /dev/null @@ -1,29 +0,0 @@ ---- lib/iiimp/data/comp-string.c Fri Nov 1 14:32:45 2002 -+++ lib/iiimp/data/comp-string.c Wed Feb 16 22:48:21 2005 -@@ -63,9 +63,12 @@ - #if defined(lint) && defined(HAVE_NOTE_H) - NOTE(ARGUNUSED(data_s)) - #endif /* lint && HAVE_NOTE_H */ -- if (NULL == str) return; -- free(str->ptr); -- free(str); -+ if (str) { -+ if (str->ptr) -+ free(str->ptr); -+ str->ptr = NULL; -+ free(str); -+ } - return; - } - -@@ -79,7 +82,9 @@ - IIIMP_string * str_next; - for (; NULL != str; str = str_next) { - str_next = str->next; -- free(str->ptr); -+ if (str->ptr) -+ free(str->ptr); -+ str->ptr = NULL; - free(str); - } - return; diff --git a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_im-connect.c b/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_im-connect.c deleted file mode 100644 index 0896e8d..0000000 --- a/textproc/iiimf-protocol-lib/files/patch-lib_iiimp_data_im-connect.c +++ /dev/null @@ -1,22 +0,0 @@ ---- lib/iiimp/data/im-connect.c Fri Jun 20 12:06:33 2003 -+++ lib/iiimp/data/im-connect.c Wed Feb 16 22:43:17 2005 -@@ -41,10 +41,15 @@ - void - iiimp_connect_delete(IIIMP_data_s * data_s, IIIMP_message * m) - { -- if (NULL == m) return; -- iiimp_string_delete(data_s, m->v.connect.user_name); -- iiimp_string_list_delete(data_s, m->v.connect.auth); -- free(m); -+ if (m) { -+ if (m->v.connect.user_name) -+ iiimp_string_delete(data_s, m->v.connect.user_name); -+ m->v.connect.user_name = NULL; -+ if (m->v.connect.auth) -+ iiimp_string_list_delete(data_s, m->v.connect.auth); -+ m->v.connect.auth = NULL; -+ free(m); -+ } - return; - } - diff --git a/textproc/iiimf-protocol-lib/pkg-plist b/textproc/iiimf-protocol-lib/pkg-plist index f8b7a55..c8734ae 100644 --- a/textproc/iiimf-protocol-lib/pkg-plist +++ b/textproc/iiimf-protocol-lib/pkg-plist @@ -1,8 +1,11 @@ -lib/libiiimp.a +include/iiim/iiimp.h +include/iiim/iiimp-opcode.h +include/iiim/iiimp-keycode.h +include/iiim/iiimp-data.h +include/iiim/iiimp-character-subsets.h +lib/libiiimp.so.1 lib/libiiimp.so -lib/libiiimp.so.0 -include/iiimp-character-subsets.h -include/iiimp-data.h -include/iiimp-keycode.h -include/iiimp-opcode.h -include/iiimp.h +lib/libiiimp.la +lib/libiiimp.a +libdata/pkgconfig/iiimf-lib-protocol.pc +@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-server/Makefile b/textproc/iiimf-server/Makefile index 4c372a9..ee3aca7 100644 --- a/textproc/iiimf-server/Makefile +++ b/textproc/iiimf-server/Makefile @@ -6,44 +6,39 @@ # PORTNAME= server -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method Server Framework -LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib +LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib -IIIMF_VER= r12_1-svn2002 -USE_RC_SUBR= htt.sh +ONLY_FOR_ARCHS= i386 + +INSTALLS_SHLIB= yes +USE_RC_SUBR= iiimd.sh USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= yes USE_GNOME= pkgconfig libxml2 USE_OPENSSL= 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 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimsf -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/iiimsf .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 .if defined(WITH_DEBUG) @@ -51,33 +46,25 @@ CFLAGS+= -g -ggdb -DDEBUG .endif CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +CXXFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${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}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" post-patch: - ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ - ${WRKSRC}/../acfiles/im_common.m4 \ - ${WRKSRC}/src/le.xml.conf - ${MV} ${WRKSRC}/htt.xml.conf ${WRKSRC}/htt.xml.conf.sample - ${MV} ${WRKSRC}/src/le.xml.conf ${WRKSRC}/src/le.xml.conf.sample + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am + ${REINPLACE_CMD} -e "s,/usr/lib/iiim,${PREFIX}/lib/iiim,g" \ + ${BUILDDIR}/src/le.xml.conf + ${MV} ${BUILDDIR}/iiimd.xml.conf ${BUILDDIR}/iiimd.xml.conf.sample + ${MV} ${BUILDDIR}/src/le.xml.conf ${BUILDDIR}/src/le.xml.conf.sample -pre-configure: - @cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @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} +do-configure: + @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config -post-configure: - ${REINPLACE_CMD} -e "s,\$${prefix}/var,/var,g" \ - ${WRKSRC}/src/Makefile +post-install: + ${INSTALL_DATA} ${BUILDDIR}/src/le.xml.conf.sample ${PREFIX}/etc/iiim/ .include <bsd.port.post.mk> diff --git a/textproc/iiimf-server/distinfo b/textproc/iiimf-server/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-server/distinfo +++ b/textproc/iiimf-server/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-server/files/htt.sh.in b/textproc/iiimf-server/files/iiimd.sh.in index 27e4762..e34b5f2 100644 --- a/textproc/iiimf-server/files/htt.sh.in +++ b/textproc/iiimf-server/files/iiimd.sh.in @@ -2,19 +2,19 @@ # $FreeBSD$ -# PROVIDE: htt +# PROVIDE: iiimd # REQUIRE: DAEMON # KEYWORD: FreeBSD shutdown prefix=%%PREFIX%% -htt_enable=${htt_enable:-"NO"} +iiimd_enable=${iiimd_enable:-"NO"} . %%RC_SUBR%% -name="htt" +name="iiimd" rcvar=`set_rcvar` -command="${prefix}/lib/im/htt" +command="${prefix}/bin/iiimd" load_rc_config $name command_args="> /dev/null 2>&1 &" diff --git a/textproc/iiimf-server/files/patch-Makefile b/textproc/iiimf-server/files/patch-Makefile index bcc2cb2..3976fd7 100644 --- a/textproc/iiimf-server/files/patch-Makefile +++ b/textproc/iiimf-server/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 = iiimsf ++#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-server/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-server/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-server/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-server/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-server/files/patch-iiimsf_Makefile.am b/textproc/iiimf-server/files/patch-iiimsf_Makefile.am index a1398d6..b0cba93 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_Makefile.am +++ b/textproc/iiimf-server/files/patch-iiimsf_Makefile.am @@ -1,8 +1,11 @@ ---- iiimsf/Makefile.am.orig Sat Feb 19 03:33:28 2005 -+++ iiimsf/Makefile.am Sat Feb 19 03:33:48 2005 -@@ -2,4 +2,4 @@ +--- iiimsf/Makefile.am.orig Fri Mar 18 04:26:28 2005 ++++ iiimsf/Makefile.am Mon May 9 19:00:14 2005 +@@ -1,6 +1,6 @@ + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../acfiles SUBDIRS = lib src confdir = $(XMLCONFDIR) --conf_DATA = htt.xml.conf -+conf_DATA = htt.xml.conf.sample src/le.xml.conf.sample +-conf_DATA = iiimd.xml.conf ++conf_DATA = iiimd.xml.conf.sample diff --git a/textproc/iiimf-server/files/patch-iiimsf_configure.ac b/textproc/iiimf-server/files/patch-iiimsf_configure.ac deleted file mode 100644 index 2993c93..0000000 --- a/textproc/iiimf-server/files/patch-iiimsf_configure.ac +++ /dev/null @@ -1,19 +0,0 @@ ---- iiimsf/configure.ac.orig Wed Mar 2 21:00:09 2005 -+++ iiimsf/configure.ac Wed Mar 2 21:00:37 2005 -@@ -236,13 +236,13 @@ - - CFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ -- ${THREAD_CXX_CFLAGS}" -+ ${THREAD_CXX_CFLAGS} ${CFLAGS}" - - CXXFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ -- ${THREAD_CXX_CFLAGS}" -+ ${THREAD_CXX_CFLAGS} ${CXXFLAGS}" - --LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS}" -+LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} ${LDFLAGS}" - - if test $HAVE_LIBCRYPT = "yes"; then - LIBCRYPT_FLAGS="-lcrypt" diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_IMAuth.cpp b/textproc/iiimf-server/files/patch-iiimsf_src_IMAuth.cpp index 85dbd9e..74ca709 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_src_IMAuth.cpp +++ b/textproc/iiimf-server/files/patch-iiimsf_src_IMAuth.cpp @@ -1,5 +1,5 @@ ---- iiimsf/src/IMAuth.cpp Sun Jun 20 06:46:28 2004 -+++ iiimsf/src/IMAuth.cpp Wed Feb 16 16:21:47 2005 +--- iiimsf/src/IMAuth.cpp.orig Mon May 9 18:08:19 2005 ++++ iiimsf/src/IMAuth.cpp Mon May 9 18:08:53 2005 @@ -47,7 +47,9 @@ #include <stdlib.h> #include <string.h> @@ -7,6 +7,6 @@ +#ifdef HAVE_ALLOCA_H #include <alloca.h> +#endif + #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> - #include <arpa/inet.h> diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_IMSignal.cpp b/textproc/iiimf-server/files/patch-iiimsf_src_IMSignal.cpp index 3073025..bae379d 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_src_IMSignal.cpp +++ b/textproc/iiimf-server/files/patch-iiimsf_src_IMSignal.cpp @@ -1,23 +1,12 @@ ---- iiimsf/src/IMSignal.cpp.orig Sat Oct 16 10:28:13 2004 -+++ iiimsf/src/IMSignal.cpp Sun Feb 20 18:43:18 2005 -@@ -1,7 +1,11 @@ - #include <config.h> - #include <sstream> - #include <sys/types.h> -+#ifdef __FreeBSD__ -+#include <sys/wait.h> -+#else - #include <wait.h> -+#endif - #include <unistd.h> - #ifdef HAVE_SIGNAL - #include <signal.h> -@@ -67,10 +71,8 @@ +--- iiimsf/src/IMSignal.cpp.orig Mon May 9 18:00:02 2005 ++++ iiimsf/src/IMSignal.cpp Mon May 9 18:00:45 2005 +@@ -66,11 +66,8 @@ stringstream s; string spid, signum; - s << getpid(); - spid = s.str(); +- s.str(""); - s << num; - signum = s.str(); + s << getpid() << " " << num; diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_IMSvrCfg.cpp b/textproc/iiimf-server/files/patch-iiimsf_src_IMSvrCfg.cpp deleted file mode 100644 index 6e598be..0000000 --- a/textproc/iiimf-server/files/patch-iiimsf_src_IMSvrCfg.cpp +++ /dev/null @@ -1,19 +0,0 @@ ---- iiimsf/src/IMSvrCfg.cpp Mon Oct 4 18:07:05 2004 -+++ iiimsf/src/IMSvrCfg.cpp Wed Feb 16 20:38:05 2005 -@@ -90,14 +90,14 @@ - void - IMSvrCfg::initialize() - { -- initstr(IMDIR, "IM main directory.", "/usr/lib/im"); -+ initstr(IMDIR, "IM main directory.", IM_DIRECTORY); - initstr(BASICLOCALE, "Locale used by default", "C"); - #ifdef WIN32 - initstr(IFPATHNAME, "Language Engine module directory", - "D:\\WINNT\\System32\\iiimf"); - #else - initstr(IFPATHNAME, "Language Engine module directory", -- "/usr/lib/im/leif"); -+ (IM_DIRECTORY "/leif")); - #endif - initstr(IFNAME, "Language Engine name", ""); - initstr(PORT, "Port or service name", "9010"); diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_IMXMLUtil.cpp b/textproc/iiimf-server/files/patch-iiimsf_src_IMXMLUtil.cpp deleted file mode 100644 index cf28bc3..0000000 --- a/textproc/iiimf-server/files/patch-iiimsf_src_IMXMLUtil.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- iiimsf/src/IMXMLUtil.cpp Mon Oct 4 18:07:05 2004 -+++ iiimsf/src/IMXMLUtil.cpp Wed Feb 16 20:38:34 2005 -@@ -78,7 +78,7 @@ - { - IMXMLModifier xml((const char *)argv[1]); - IMModuleInfoVec *lev; -- string mod("/usr/lib/im/leif/freewnnle.so"); -+ string mod(IM_DIRECTORY "/leif/freewnnle.so"); - string lang("ja"); - string out("foo.conf"); - -@@ -101,7 +101,7 @@ - } - */ - printf("\n\n*** remove\n"); -- mod = "/usr/lib/im/leif/CannaLE.so"; -+ mod = IM_DIRECTORY "/leif/CannaLE.so"; - xml.removemodule(mod, lang); - /* - for (IMModuleInfoVec::iterator i = lev->begin (); i != lev->end (); i++) { diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_Makefile.am b/textproc/iiimf-server/files/patch-iiimsf_src_Makefile.am index b64512cc..1547a96 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_src_Makefile.am +++ b/textproc/iiimf-server/files/patch-iiimsf_src_Makefile.am @@ -1,44 +1,39 @@ ---- iiimsf/src/Makefile.am.orig Fri Oct 15 03:39:38 2004 -+++ iiimsf/src/Makefile.am Wed Mar 2 21:18:10 2005 -@@ -4,7 +4,7 @@ - -DXMLCONFDIR="\"$(XMLCONFDIR)\"" \ - -DSOCKETDIR="\"$(SOCKETDIR)\"" \ - -DSEGVLOGGER="\"$(libexecdir)/iiimf-segv-logger\"" \ -- -g \ -+ -DIM_DIRECTORY="\"${IMDIR}\"" \ - $(NULL) - - libiiimsf_la_SOURCES = \ -@@ -22,6 +21,7 @@ - libiiimsf_la_LIBADD = \ - $(TLS_LIBS) \ - $(XML_LIBS) \ -+ -liiimp \ - $(NULL) +--- iiimsf/src/Makefile.am.orig Thu Apr 21 16:04:56 2005 ++++ iiimsf/src/Makefile.am Mon May 9 18:33:14 2005 +@@ -97,7 +97,7 @@ - sbindir = $(IMBINDIR) -@@ -56,7 +56,6 @@ - - htt_server_LDADD = \ + iiimd_LDADD = \ $(LIB_DIR)/iml/libiml.la \ - $(IM_LIBDIR)/iiimp/libiiimp.la \ ++ -liiimp \ $(SOCKET_LIBS) \ $(LIBCRYPT_FLAGS) \ $(LIBPAM_FLAGS) \ -@@ -72,7 +71,6 @@ +@@ -112,7 +112,6 @@ $(NULL) iiimf_le_tools_LDADD = \ $(XML_LIBS) \ - -ldl \ - libiiimsf.la \ + libiiimutils.la \ $(NULL) -@@ -82,7 +80,7 @@ +@@ -122,6 +121,7 @@ iiimf_segv_logger_CFLAGS = \ -DLOGDIR="\"$(localstatedir)/log/iiim\"" \ -DDATADIR="\"$(gdbcmddir)\"" \ -- -g \ -+ -DIMBINDIR="\"$(IMBINDIR)\"" \ ++ -DPREFIX="\"$(prefix)\"" \ + -g \ $(NULL) gdbcmddir = $(datadir)/iiim - gdbcmd_DATA = \ +@@ -129,9 +129,9 @@ + gdbcmd \ + $(NULL) + +-logdir = $(localstatedir)/log/iiim ++logdir = /var/log/iiim + log_DATA = $(NULL) +-socketdir = $(localstatedir)/run/iiim ++socketdir = /var/run/iiim + socket_DATA = $(NULL) + + iiimlibdir = $(libdir)/iiim diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_iwrap.c b/textproc/iiimf-server/files/patch-iiimsf_src_iwrap.c index c309e37..5fbc2ca 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_src_iwrap.c +++ b/textproc/iiimf-server/files/patch-iiimsf_src_iwrap.c @@ -1,8 +1,6 @@ -Index: iiimsf/src/iwrap.c -diff -u -p iiimsf/src/iwrap.c.orig iiimsf/src/iwrap.c ---- iiimsf/src/iwrap.c.orig Thu Sep 9 06:17:09 2004 -+++ iiimsf/src/iwrap.c Tue Feb 22 15:22:41 2005 -@@ -72,6 +72,15 @@ int permit_access( +--- iiimsf/src/iwrap.c.orig Wed Apr 13 01:51:55 2005 ++++ iiimsf/src/iwrap.c Mon May 9 18:02:18 2005 +@@ -72,6 +72,15 @@ { #ifdef HAVE_LIBWRAP struct request_info req; @@ -12,13 +10,13 @@ diff -u -p iiimsf/src/iwrap.c.orig iiimsf/src/iwrap.c + + size = sizeof(ss); + if (getpeername(h, pname, &size) < 0) -+ return 0; ++ return 0; + if (pname->sa_family == AF_UNIX) -+ return 1; ++ return 1; request_init(&req, RQ_DAEMON, cmdname, RQ_FILE, h, 0); fromhost(&req); -@@ -177,6 +186,14 @@ authenticate_with_unix( +@@ -177,6 +186,14 @@ #ifdef HAVE_GETPEEREID /* OpenBSD */ git_t gid; diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.cpp b/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.cpp new file mode 100644 index 0000000..ad0fb28 --- /dev/null +++ b/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.cpp @@ -0,0 +1,66 @@ +--- iiimsf/src/lexmlconf.cpp.orig Fri Apr 22 16:53:03 2005 ++++ iiimsf/src/lexmlconf.cpp Mon May 16 19:00:55 2005 +@@ -114,6 +114,7 @@ + list = (IIIMLEInfoList *)malloc(sizeof (IIIMLEInfoList) * 1); + list->data = leinfo; + list->next = NULL; ++ list->prev = NULL; + + return list; + } +@@ -128,6 +129,7 @@ + if (list != NULL) { + for (ll = list; ll->next != NULL; ll = ll->next); + ll->next = l; ++ l->prev = ll; + ll = list; + } else { + ll = l; +@@ -144,7 +146,12 @@ + + l = iiim_le_info_list_new(leinfo); + if (list != NULL) { ++ if (list->prev != NULL) { ++ list->prev->next = l; ++ } + l->next = list; ++ l->prev = list->prev; ++ list->prev = l; + } + + return l; +@@ -154,22 +161,19 @@ + iiim_le_info_list_remove(IIIMLEInfoList *list, + IIIMLEInfo *leinfo) + { +- IIIMLEInfoList *tmp, *prev = NULL; ++ IIIMLEInfoList *prev, *next; + +- tmp = list; +- while (tmp) { +- if (tmp->data == leinfo) { +- if (prev) +- prev->next = tmp->next; +- else +- list = tmp->next; +- iiim_le_info_free(tmp->data); +- free(tmp); +- +- break; +- } +- prev = tmp; +- tmp = prev->next; ++ for (; list && list->data != leinfo; list = list->next); ++ ++ if (NULL != list) { ++ prev = list->prev; ++ next = list->next; ++ ++ if (NULL != prev) prev->next = next; ++ if (NULL != next) next->prev = prev; ++ ++ if (list->data) iiim_le_info_free(list->data); ++ free(list); + } + + return list; diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.h b/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.h new file mode 100644 index 0000000..dde5d31 --- /dev/null +++ b/textproc/iiimf-server/files/patch-iiimsf_src_lexmlconf.h @@ -0,0 +1,10 @@ +--- iiimsf/src/lexmlconf.h.orig Fri Apr 22 16:53:03 2005 ++++ iiimsf/src/lexmlconf.h Mon May 16 19:00:59 2005 +@@ -63,6 +63,7 @@ + struct _IIIMLEInfoList { + IIIMLEInfo *data; + IIIMLEInfoList *next; ++ IIIMLEInfoList *prev; + }; + struct _IIIMLEInfo { + char *language; diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_segvlogger.c b/textproc/iiimf-server/files/patch-iiimsf_src_segvlogger.c index 0f6f42d..a761c47 100644 --- a/textproc/iiimf-server/files/patch-iiimsf_src_segvlogger.c +++ b/textproc/iiimf-server/files/patch-iiimsf_src_segvlogger.c @@ -1,24 +1,16 @@ ---- iiimsf/src/segvlogger.c.orig Sat Oct 16 10:28:13 2004 -+++ iiimsf/src/segvlogger.c Sun Feb 20 19:43:06 2005 -@@ -19,6 +19,10 @@ - #include <time.h> - #include <dirent.h> - -+#ifdef __FreeBSD__ -+#include <sys/syslimits.h> -+#endif -+ - int - main(int argc, char **argv) - { -@@ -43,8 +47,8 @@ +--- iiimsf/src/segvlogger.c.orig Mon May 9 17:50:07 2005 ++++ iiimsf/src/segvlogger.c Mon May 9 17:52:09 2005 +@@ -63,8 +63,13 @@ + } exit(1); } - -- snprintf(buffer, 1024, "gdb --batch --quiet --command %s/gdbcmd --pid %d", -- DATADIR, ppid); -+ snprintf(buffer, 1024, "gdb -batch -q -x %s/gdbcmd %s/htt_server %d", -+ DATADIR, IMBINDIR, ppid); ++#ifndef __FreeBSD__ + snprintf(buffer, 1024, "gdb --batch --quiet --command %s/gdbcmd --pid %d", + DATADIR, ppid); ++#else ++ snprintf(buffer, 1024, "gdb -batch -q -x %s/gdbcmd %s/bin/iiimd %d", ++ DATADIR, PREFIX, ppid); ++#endif if ((fpr = popen(buffer, "r")) != NULL) { char logfile[PATH_MAX]; diff --git a/textproc/iiimf-server/files/patch-iiimsf_src_watchdog.c b/textproc/iiimf-server/files/patch-iiimsf_src_watchdog.c deleted file mode 100644 index 9124497..0000000 --- a/textproc/iiimf-server/files/patch-iiimsf_src_watchdog.c +++ /dev/null @@ -1,20 +0,0 @@ ---- iiimsf/src/watchdog.c Thu Oct 14 23:07:37 2004 -+++ iiimsf/src/watchdog.c Wed Feb 16 19:03:59 2005 -@@ -220,7 +220,7 @@ - int argc; - char **argv; - { -- const char *httpath="/usr/lib/im/htt_server" ; /* SUNWiiimf Only */ -+ const char *httpath=IM_DIRECTORY "/htt_server" ; /* SUNWiiimf Only */ - pid_t pgrp; - void (*disp)(int); - char **new_argv, **pp; -@@ -361,6 +361,8 @@ - if ((pid_t)(-1) == pgrp) - fprintf (stderr,"cannot set session id"); - -+#elif defined(__FreeBSD__) -+ pgrp = setsid(); - #else /* !SunOS */ - pgrp = setpgrp(); - #endif /* !SunOS */ diff --git a/textproc/iiimf-server/pkg-plist b/textproc/iiimf-server/pkg-plist index 6740877..a6a3bb8 100644 --- a/textproc/iiimf-server/pkg-plist +++ b/textproc/iiimf-server/pkg-plist @@ -1,13 +1,19 @@ bin/iiimf-le-tools -etc/iiim/htt.xml.conf.sample +bin/iiimd +etc/iiim/iiimd.xml.conf.sample etc/iiim/le.xml.conf.sample -lib/im/htt -lib/im/htt_server +lib/libiiimutils.a +lib/libiiimutils.la +lib/libiiimutils.so +lib/libiiimutils.so.0 +lib/iiim/iiimd-watchdog libexec/iiimf-segv-logger +include/iiim/lexmlconf.h share/iiim/gdbcmd @dirrm etc/iiim @dirrm share/iiim -@unexec rmdir %D/lib/im > /dev/null 2>&1 || true +@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true +@unexec rmdir %D/include/iiim > /dev/null 2>&1 || true @exec mkdir -p /var/log/iiim @unexec rm -f /var/log/iiim/*.log @unexec rmdir /var/log/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-x-lib/Makefile b/textproc/iiimf-x-lib/Makefile index 2363398..f6f8934 100644 --- a/textproc/iiimf-x-lib/Makefile +++ b/textproc/iiimf-x-lib/Makefile @@ -6,69 +6,56 @@ # PORTNAME= x-lib -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method X Client Framework -LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib \ - iiimcf.2:${PORTSDIR}/textproc/iiimf-client-lib -RUN_DEPENDS= ${LOCALBASE}/lib/im/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv +LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib \ + iiimcf.3:${PORTSDIR}/textproc/iiimf-client-lib +RUN_DEPENDS= ${LOCALBASE}/lib/iiim/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv + +ONLY_FOR_ARCHS= i386 -IIIMF_VER= r12_1-svn2002 USE_BZIP2= yes USE_REINPLACE= yes USE_GETTEXT= yes USE_GMAKE= yes USE_MOTIF= yes USE_OPENSSL= 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 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimxcf/xiiimp.so -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/iiimxcf/xiiimp.so .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 ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib -lintl ${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 + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am + ${REINPLACE_CMD} -e "s,/usr/lib/iiim,${LOCALBASE}/lib/iiim,g" \ + ${WRKSRC}/lib/CSConv/csconv.h pre-configure: - @cd ${WRKSRC}/../.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @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} + @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config .include <bsd.port.post.mk> diff --git a/textproc/iiimf-x-lib/distinfo b/textproc/iiimf-x-lib/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-x-lib/distinfo +++ b/textproc/iiimf-x-lib/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-x-lib/files/patch-Makefile b/textproc/iiimf-x-lib/files/patch-Makefile index bcc2cb2..24542b8 100644 --- a/textproc/iiimf-x-lib/files/patch-Makefile +++ b/textproc/iiimf-x-lib/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 = iiimxcf/xiiimp.so ++#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-x-lib/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-x-lib/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-x-lib/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-x-lib/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-x-lib/files/patch-iiimxcf_xiiimp.so_Makefile.am b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_Makefile.am new file mode 100644 index 0000000..661caf2 --- /dev/null +++ b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_Makefile.am @@ -0,0 +1,7 @@ +--- iiimxcf/xiiimp.so/Makefile.am.orig Fri May 13 15:42:30 2005 ++++ iiimxcf/xiiimp.so/Makefile.am Fri May 13 15:42:47 2005 +@@ -1,3 +1,3 @@ + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles + SUBDIRS = iiimp diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_configure.ac b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_configure.ac deleted file mode 100644 index 33d427a..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_configure.ac +++ /dev/null @@ -1,21 +0,0 @@ ---- iiimxcf/xiiimp.so/configure.ac Wed May 7 12:31:34 2003 -+++ iiimxcf/xiiimp.so/configure.ac Wed Feb 16 21:06:50 2005 -@@ -71,15 +71,15 @@ - - COMMON_INCLUDE='-I$(IM_INCLUDEDIR) -I$(IM_INCLUDEDIR)/iiimp' - - CFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" - - CXXFLAGS="${COMMON_INCLUDE} ${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}" - - dnl -------------------------------------------------------------------------------- - dnl Section 6: compilation test diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_Makefile.am b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_Makefile.am index e9f06ef..2b33855 100644 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_Makefile.am +++ b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_Makefile.am @@ -1,21 +1,13 @@ ---- iiimxcf/xiiimp.so/iiimp/Makefile.am.orig Tue Mar 23 07:37:51 2004 -+++ iiimxcf/xiiimp.so/iiimp/Makefile.am Thu Mar 3 00:37:54 2005 -@@ -1,15 +1,14 @@ - moduledir = $(IMDIR) - xiiimp_la_CFLAGS = $(X_CFLAGS) -I$(X_PRIVATEINC) \ - $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) \ -- -I$(CSCONV_DIR) -+ -I$(CSCONV_DIR) -DUSE_CSCONV -DIMDIR="\"${IMDIR}\"" - xiiimp_la_LDFLAGS = -rpath $(moduledir) -version-info $(XIIIMP_SOX18N_VERSION) \ -- -module -export-dynamic -no-undefined -+ -module -export-dynamic -no-undefined \ -+ -liiimcf -liiimp - # On GNU/Linux system, libtool does not take care of -no-undefined so that +--- iiimxcf/xiiimp.so/iiimp/Makefile.am.orig Mon May 9 19:38:54 2005 ++++ iiimxcf/xiiimp.so/iiimp/Makefile.am Mon May 9 19:40:25 2005 +@@ -8,8 +8,8 @@ # you have to add the following by yourself to check undefined symbols. # -Wl,-z -Wl,defs xiiimp_la_LIBADD = $(X_LIBS) \ - $(IM_LIBDIR)/iiimcf/libiiimcf.la \ - $(IM_LIBDIR)/iiimp/libiiimp.la \ ++ -liiimcf \ ++ -liiimp \ $(DLOPEN_LIBS) $(THREAD_LIBS) xiiimp_la_SOURCES = \ - genutil.c \ + KeyMap.c \ diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_csconv.h b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_csconv.h deleted file mode 100644 index 660c30c..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_csconv.h +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/xiiimp.so/iiimp/csconv.h Fri Mar 16 00:52:22 2001 -+++ iiimxcf/xiiimp.so/iiimp/csconv.h Wed Feb 16 20:48:14 2005 -@@ -64,7 +64,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-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimcfFun.c b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimcfFun.c new file mode 100644 index 0000000..7085c7b --- /dev/null +++ b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimcfFun.c @@ -0,0 +1,12 @@ +--- iiimxcf/xiiimp.so/iiimp/iiimcfFun.c.orig Fri May 13 18:18:29 2005 ++++ iiimxcf/xiiimp.so/iiimp/iiimcfFun.c Fri May 13 18:18:47 2005 +@@ -61,7 +61,9 @@ + #include <iiimcf.h> + #include <langinfo.h> + #include <limits.h> ++#ifndef __FreeBSD__ + #include <values.h> ++#endif + #include <X11/Xlib.h> + #include <X11/Xatom.h> + diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpAux.c b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpAux.c deleted file mode 100644 index 3b08439..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpAux.c +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/xiiimp.so/iiimp/iiimpAux.c Sat Sep 11 01:41:45 2004 -+++ iiimxcf/xiiimp.so/iiimp/iiimpAux.c Wed Feb 16 20:40:57 2005 -@@ -80,7 +80,7 @@ - #include "trace_message.h" - - --#define AUX_BASE_DIR "/usr/lib/im/" -+#define AUX_BASE_DIR IMDIR - - #if defined(__sparcv9) - #define SPARCV9_DIR "sparcv9/" diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpConv.c b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpConv.c deleted file mode 100644 index bfeb601..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpConv.c +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/xiiimp.so/iiimp/iiimpConv.c Wed Apr 28 18:28:59 2004 -+++ iiimxcf/xiiimp.so/iiimp/iiimpConv.c Wed Feb 16 20:41:07 2005 -@@ -68,7 +68,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-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpDL.c b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpDL.c deleted file mode 100644 index dbbb091..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpDL.c +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/xiiimp.so/iiimp/iiimpDL.c Wed May 5 03:55:05 2004 -+++ iiimxcf/xiiimp.so/iiimp/iiimpDL.c Wed Feb 16 20:41:14 2005 -@@ -108,7 +108,7 @@ - } - - #ifndef XLOCALEDIR --#define XLOCALEDIR "/usr/lib/im/modules" -+#define XLOCALEDIR (IMDIR "/modules") - #endif - - static const char* diff --git a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpIM.c b/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpIM.c deleted file mode 100644 index 2ba2ba2..0000000 --- a/textproc/iiimf-x-lib/files/patch-iiimxcf_xiiimp.so_iiimp_iiimpIM.c +++ /dev/null @@ -1,20 +0,0 @@ ---- iiimxcf/xiiimp.so/iiimp/iiimpIM.c Wed Aug 25 15:09:50 2004 -+++ iiimxcf/xiiimp.so/iiimp/iiimpIM.c Wed Feb 16 22:06:57 2005 -@@ -189,7 +189,7 @@ - }; - - #ifndef IMLOCALEDIR --#define IMLOCALEDIR "/usr/lib/im/locale" -+#define IMLOCALEDIR (IMDIR "/locale") - #endif - - #define iscomment(ch) ((ch) == '\0' || (ch) == '#') -@@ -625,7 +625,7 @@ - if (mod) { - mod += strlen(MODIFIER); - -- if (!strncmp(mod, "iiimp/", 6) || !strncmp(mod, "IIIMP/", 6)) { -+ if (!strncasecmp(mod, "iiimp/", 6)) { - mod += 6; - - if (index(mod, ':')) { diff --git a/textproc/iiimf-x-lib/pkg-plist b/textproc/iiimf-x-lib/pkg-plist index beae0f0..45fc6f1 100644 --- a/textproc/iiimf-x-lib/pkg-plist +++ b/textproc/iiimf-x-lib/pkg-plist @@ -1,3 +1,5 @@ -lib/im/xiiimp.so -lib/im/xiiimp.so.2 -@unexec rmdir %D/lib/im > /dev/null 2>&1 || true +lib/iiim/xiiimp.a +lib/iiim/xiiimp.la +lib/iiim/xiiimp.so +lib/iiim/xiiimp.so.2 +@unexec rmdir %D/lib/iiim > /dev/null 2>&1 || true diff --git a/textproc/iiimf-x/Makefile b/textproc/iiimf-x/Makefile index 7a82a8f..163a818 100644 --- a/textproc/iiimf-x/Makefile +++ b/textproc/iiimf-x/Makefile @@ -6,67 +6,54 @@ # PORTNAME= x -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 +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= Internet/Intranet Input Method X Client Framework -LIB_DEPENDS= iiimp.0:${PORTSDIR}/textproc/iiimf-protocol-lib \ - iiimcf.2:${PORTSDIR}/textproc/iiimf-client-lib -RUN_DEPENDS= ${LOCALBASE}/lib/im/xiiimp.so:${PORTSDIR}/textproc/iiimf-x-lib +LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib \ + iiimcf.3:${PORTSDIR}/textproc/iiimf-client-lib +RUN_DEPENDS= ${LOCALBASE}/lib/iiim/xiiimp.so:${PORTSDIR}/textproc/iiimf-x-lib + +ONLY_FOR_ARCHS= i386 -IIIMF_VER= r12_1-svn2002 USE_BZIP2= 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 -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} - -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimxcf/htt_xbe -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/iiimxcf/htt_xbe .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} +CXXFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${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}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" post-patch: - ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ - ${WRKSRC}/../../acfiles/im_common.m4 - -pre-configure: - @cd ${WRKSRC}/../.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @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} + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am \ + ${BUILDDIR}/src/watchdog.c + +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-x/distinfo b/textproc/iiimf-x/distinfo index 440e49d..4416cce 100644 --- a/textproc/iiimf-x/distinfo +++ b/textproc/iiimf-x/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-x/files/patch-Makefile b/textproc/iiimf-x/files/patch-Makefile index bcc2cb2..84f3d22 100644 --- a/textproc/iiimf-x/files/patch-Makefile +++ b/textproc/iiimf-x/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 = iiimxcf/htt_xbe ++#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-x/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-x/files/patch-acfiles_check_sys.m4 index 8626eea..44ee86c 100644 --- a/textproc/iiimf-x/files/patch-acfiles_check_sys.m4 +++ b/textproc/iiimf-x/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-x/files/patch-iiimxcf_htt_xbe_Makefile.am b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_Makefile.am new file mode 100644 index 0000000..9c67f67 --- /dev/null +++ b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_Makefile.am @@ -0,0 +1,7 @@ +--- iiimxcf/htt_xbe/Makefile.am.orig Fri May 13 15:44:05 2005 ++++ iiimxcf/htt_xbe/Makefile.am Fri May 13 15:44:22 2005 +@@ -1,3 +1,3 @@ + AUTOMAKE_OPTIONS = foreign +-ACLOCAL_AMFLAGS = -I ../../acfiles ++ACLOCAL_AMFLAGS = -I %%LOCALBASE%%/share/aclocal -I ../../acfiles + SUBDIRS = lib src diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_configure.ac b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_configure.ac deleted file mode 100644 index 61e6d3e..0000000 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_configure.ac +++ /dev/null @@ -1,21 +0,0 @@ ---- iiimxcf/htt_xbe/configure.ac Wed Mar 24 04:54:26 2004 -+++ iiimxcf/htt_xbe/configure.ac Wed Feb 16 19:38:26 2005 -@@ -140,15 +140,15 @@ - COMMON_CXX_CFLAGS="${COMMON_CXX_CFLAGS} ${DLOPEN_CXX_CFLAGS} -DSUPPORT_R6IM" - LIBS="${LIBS} ${DLOPEN_LIBS}" - - CFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" - - CXXFLAGS="${COMMON_INCLUDE} ${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ - ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ -- ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" - --LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS}" -+LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} ${LDFLAGS}" - - dnl -------------------------------------------------------------------------------- - dnl Section 6: compilation test diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_Makefile.in b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_Makefile.in deleted file mode 100644 index a3a3771..0000000 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_Makefile.in +++ /dev/null @@ -1,21 +0,0 @@ ---- iiimxcf/htt_xbe/lib/IMdkit/Makefile.in.orig Wed May 7 12:25:24 2003 -+++ iiimxcf/htt_xbe/lib/IMdkit/Makefile.in Thu Mar 3 16:25:30 2005 -@@ -57,6 +57,7 @@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - -+IMDIR = @IMDIR@ - IM_TOPDIR = @IM_TOPDIR@ - IM_INCLUDEDIR = @IM_INCLUDEDIR@ - CSCONV_DIR = @CSCONV_DIR@ -@@ -74,8 +75,8 @@ - LINKER = @LINKER@ - RANLIB = @RANLIB@ - --CFLAGS = @CFLAGS@ --CXXFLAGS = @CXXFLAGS@ -+CFLAGS = -DIMDIR="\"${IMDIR}\"" @CFLAGS@ -+CXXFLAGS = -DIMDIR="\"${IMDIR}\"" @CXXFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_common_XIMPublic.cpp b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_common_XIMPublic.cpp deleted file mode 100644 index 3e6552e..0000000 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_common_XIMPublic.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/htt_xbe/lib/IMdkit/common/XIMPublic.cpp Wed Mar 24 04:54:26 2004 -+++ iiimxcf/htt_xbe/lib/IMdkit/common/XIMPublic.cpp Wed Feb 16 21:31:00 2005 -@@ -68,7 +68,7 @@ - #ifdef sun - #define XIIIMP_PATH "/usr/openwin/lib/locale/common/xiiimp.so.2" - #else /* Linux */ --#define XIIIMP_PATH "/usr/lib/im/xiiimp.so.2" -+#define XIIIMP_PATH (IMDIR "/xiiimp.so.2") - #endif /* Linux */ - - #include <stdio.h> diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_r6im_i18nX.c b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_r6im_i18nX.c deleted file mode 100644 index 5866413..0000000 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_lib_IM_r6im_i18nX.c +++ /dev/null @@ -1,13 +0,0 @@ ---- iiimxcf/htt_xbe/lib/IMdkit/r6im/i18nX.c Fri Nov 1 09:15:38 2002 -+++ iiimxcf/htt_xbe/lib/IMdkit/r6im/i18nX.c Wed Feb 16 19:33:10 2005 -@@ -389,8 +389,8 @@ - extern void _Xi18nMessageHandler(XIMS, CARD16, - unsigned char*, Bool*); - Bool delete = True; -- unsigned char *packet; -- int connect_id; -+ unsigned char *packet = NULL; -+ int connect_id = 0; - - if (((XClientMessageEvent *)ev)->message_type == - spec->xim_request) { diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_Makefile.am b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_Makefile.am deleted file mode 100644 index 9d24150..0000000 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ ---- iiimxcf/htt_xbe/src/Makefile.am.orig Thu Mar 3 00:29:58 2005 -+++ iiimxcf/htt_xbe/src/Makefile.am Thu Mar 3 00:30:30 2005 -@@ -4,7 +4,7 @@ - htt_xbe_LDADD = -L../lib/IMdkit -lIMd_ximp -lIMd_r6im $(X_LIBS) -lXt $(THREAD_LIBS) - htt_xbe_SOURCES = ResourceDB.cpp main.cpp - --httx_CFLAGS = $(X_CFLAGS) -+httx_CFLAGS = $(X_CFLAGS) -DIMDIR="\"${IMDIR}\"" - httx_LDADD = $(X_LIBS) -lXt - httx_SOURCES = watchdog.c - diff --git a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_watchdog.c b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_watchdog.c index 1136ab8..31dc363 100644 --- a/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_watchdog.c +++ b/textproc/iiimf-x/files/patch-iiimxcf_htt_xbe_src_watchdog.c @@ -1,14 +1,15 @@ ---- iiimxcf/htt_xbe/src/watchdog.c Tue Jul 13 08:25:40 2004 -+++ iiimxcf/htt_xbe/src/watchdog.c Wed Feb 16 19:12:34 2005 -@@ -81,7 +81,6 @@ +--- iiimxcf/htt_xbe/src/watchdog.c.orig Thu Apr 28 15:09:27 2005 ++++ iiimxcf/htt_xbe/src/watchdog.c Mon May 16 23:39:28 2005 +@@ -79,7 +79,7 @@ + #ifndef OPENWINHOME + #define OPENWINHOME "/usr/openwin" #endif - #define OPENWIN_MOTIF_PRELOAD_ENV "LD_PRELOAD=/usr/dt/lib/libXm.so.3" +-#define OPENWIN_MOTIF_PRELOAD_ENV "LD_PRELOAD=/usr/dt/lib/libXm.so.3" ++#define OPENWIN_MOTIF_PRELOAD_ENV "LD_PRELOAD=/usr/X11R6/lib/libXm.so.3" --#define IMDIR "/usr/lib/im" + #define IMDIR IIIMLIBDIR - static void start_htt_server(int *, char *argv[]); - static void start_htt_props(int *, char *argv[]); -@@ -744,7 +743,11 @@ +@@ -811,7 +811,11 @@ perror("watchdog:fork\n"); exit(errno); case 0: @@ -20,3 +21,12 @@ if (!my_rdb.respond_to_sm) sleep(10); execv(pathname, argv); +@@ -828,7 +832,7 @@ + extern int errno; + int pid; + +- pathname = "/usr/bin/iiimd"; ++ pathname = "%%PREFIX%%" "/bin/iiimd"; + + pid = (*iiimd_pid) = fork(); + switch (*iiimd_pid) { diff --git a/textproc/iiimf-x/pkg-plist b/textproc/iiimf-x/pkg-plist index 2f8604c..cb790e7 100644 --- a/textproc/iiimf-x/pkg-plist +++ b/textproc/iiimf-x/pkg-plist @@ -1,2 +1,2 @@ -lib/im/httx -lib/im/htt_xbe +bin/iiimx +lib/iiim/iiim-xbe |