diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2005-02-28 04:20:30 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2005-02-28 04:20:30 +0000 |
commit | 64e4fa747fc409451ea2f56db6d5d673d99d9428 (patch) | |
tree | 3b933eb031bac5566ef9a91d82bd5edfb0e0cdcb /japanese/iiimf-le-canna | |
parent | 806320585f11517fb0170fe185bbab72146f4afb (diff) | |
download | ports-64e4fa747fc409451ea2f56db6d5d673d99d9428.tar.gz ports-64e4fa747fc409451ea2f56db6d5d673d99d9428.zip |
Notes
Diffstat (limited to 'japanese/iiimf-le-canna')
-rw-r--r-- | japanese/iiimf-le-canna/Makefile | 76 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/distinfo | 2 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-Makefile | 19 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-leif_autogen.sh | 93 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-leif_canna_CannaLE.c | 28 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-leif_canna_Makefile.am | 8 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-leif_canna_xaux_Makefile.am | 11 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/files/patch-leif_configure.ac | 33 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/pkg-descr | 6 | ||||
-rw-r--r-- | japanese/iiimf-le-canna/pkg-plist | 7 |
10 files changed, 283 insertions, 0 deletions
diff --git a/japanese/iiimf-le-canna/Makefile b/japanese/iiimf-le-canna/Makefile new file mode 100644 index 000000000000..6446d541534b --- /dev/null +++ b/japanese/iiimf-le-canna/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: iiimf-le-canna +# Date created: 18 Feb 2005 +# Whom: Masanori OZAWA <ozawa@ongs.co.jp> +# +# $FreeBSD$ +# + +PORTNAME= le-canna +PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} +CATEGORIES= japanese textproc +MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/ +PKGNAMEPREFIX= iiimf- +DISTNAME= im-sdk-src-${IIIMF_VER} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= daichi@freebsd.org +COMMENT= Canna language engine for IIIMF + +LIB_DEPENDS= canna16.1:${PORTSDIR}/japanese/Canna +RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server + +IIIMF_VER= r12_1-svn2002 +USE_ICONV= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_GNOME= intltool +WANT_AUTOCONF_VER=253 +WANT_AUTOHEADER_VER=253 +WANT_AUTOMAKE_VER=15 +WANT_LIBTOOL_VER=15 + +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif +PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} + +.if !defined(WITHOUT_XAUX) +USE_XLIB= yes +PLIST_SUB+= WANT_XAUX="" +RUN_DEPENDS+= ${LOCALBASE}/lib/im/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv +.else +CONFIGURE_ARGS+=--without-x +PLIST_SUB+= WANT_XAUX="@comment " +.endif + +.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." +.endif + +MAKE_ARGS+= LIBTOOL="${LIBTOOL} --tag=CXX" +UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \ + AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \ + LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} +AUTOGEN_ARGS+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ + --prefix=${PREFIX} ${CONFIGURE_ARGS} + +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}/../acfiles/ && ${TOUCH} ltconfig) + (cd ${WRKSRC}/ && ${TOUCH} ltconfig) + +do-configure: + (cd ${WRKSRC}/ && ./autogen.sh ${AUTOGEN_ARGS}) + +.include <bsd.port.post.mk> diff --git a/japanese/iiimf-le-canna/distinfo b/japanese/iiimf-le-canna/distinfo new file mode 100644 index 000000000000..440e49d16220 --- /dev/null +++ b/japanese/iiimf-le-canna/distinfo @@ -0,0 +1,2 @@ +MD5 (im-sdk-src-r12_1-svn2002.tar.bz2) = 51f3f10b11f8d4a206e2b190ec36a32a +SIZE (im-sdk-src-r12_1-svn2002.tar.bz2) = 18141292 diff --git a/japanese/iiimf-le-canna/files/patch-Makefile b/japanese/iiimf-le-canna/files/patch-Makefile new file mode 100644 index 000000000000..85df0e345035 --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-Makefile @@ -0,0 +1,19 @@ +--- 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 + + CONFIG_CMD = $(ACLOCAL) -I $${acfilesdir} && \ + $(AUTOHEADER) && \ +@@ -21,7 +22,7 @@ + + update-acfiles: + cd acfiles && \ +- $(ACLOCAL) && $(AUTOMAKE) --add-missing --copy && libtoolize --force --copy && \ ++ $(ACLOCAL) && $(AUTOMAKE) --add-missing --copy && $(LIBTOOLIZE) --force --copy && \ + rm -f Makefile.in aclocal.m4 + + config: diff --git a/japanese/iiimf-le-canna/files/patch-leif_autogen.sh b/japanese/iiimf-le-canna/files/patch-leif_autogen.sh new file mode 100644 index 000000000000..d38d31e628c7 --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-leif_autogen.sh @@ -0,0 +1,93 @@ +--- leif/autogen.sh Thu Dec 11 15:29:55 2003 ++++ leif/autogen.sh Wed Feb 16 16:53:53 2005 +@@ -6,6 +6,14 @@ + + DIE=0 + ++LIBTOOL=libtool15 ++INTLTOOLIZE=intltoolize ++LIBTOOLIZE=libtoolize15 ++ACLOCAL=aclocal15 ++AUTOHEADER=autoheader253 ++AUTOMAKE=automake15 ++AUTOCONF=autoconf253 ++ + ACLOCAL_FLAGS="-I ../acfiles $ACLOCAL_FLAGS" + + if [ -n "$GNOME2_DIR" ]; then +@@ -22,7 +30,7 @@ + exit 1 + } + +-(autoconf --version) < /dev/null > /dev/null 2>&1 || { ++(${AUTOCONF} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`autoconf' installed." + echo "Download the appropriate package for your distribution," +@@ -31,7 +39,7 @@ + } + + (grep "^AC_PROG_INTLTOOL" $srcdir/configure.ac >/dev/null) && { +- (intltoolize --version) < /dev/null > /dev/null 2>&1 || { ++ (${INTLTOOLIZE} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`intltool' installed." + echo "You can get it from:" +@@ -41,7 +49,7 @@ + } + + (grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && { +- (libtool --version) < /dev/null > /dev/null 2>&1 || { ++ (${LIBTOOL} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`libtool' installed." + echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" +@@ -59,7 +67,7 @@ + } + } + +-(automake --version) < /dev/null > /dev/null 2>&1 || { ++(${AUTOMAKE} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`automake' installed." + echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" +@@ -69,7 +77,7 @@ + + + # if no automake, don't bother testing for aclocal +-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { ++test -n "$NO_AUTOMAKE" || (${ACLOCAL} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: Missing \`aclocal'. The version of \`automake'" + echo "installed doesn't appear recent enough." +@@ -114,24 +122,24 @@ + fi + if grep "^AC_PROG_INTLTOOL" configure.ac >/dev/null; then + echo "Running intltoolize..." +- intltoolize --copy --force --automake ++ ${INTLTOOLIZE} --copy --force --automake + fi + if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then + if test -z "$NO_LIBTOOLIZE" ; then + echo "Running libtoolize..." +- libtoolize --force --copy ++ ${LIBTOOLIZE} --force --copy + fi + fi + echo "Running aclocal $aclocalinclude ..." +- aclocal $aclocalinclude ++ ${ACLOCAL} $aclocalinclude + if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then + echo "Running autoheader..." +- autoheader ++ ${AUTOHEADER} + fi + echo "Running automake --gnu $am_opt ..." +- automake --add-missing --copy --gnu $am_opt ++ ${AUTOMAKE} --add-missing --copy --gnu $am_opt + echo "Running autoconf ..." +- autoconf ++ ${AUTOCONF} + ) + fi + done diff --git a/japanese/iiimf-le-canna/files/patch-leif_canna_CannaLE.c b/japanese/iiimf-le-canna/files/patch-leif_canna_CannaLE.c new file mode 100644 index 000000000000..e26d9ffb726c --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-leif_canna_CannaLE.c @@ -0,0 +1,28 @@ +--- leif/canna/CannaLE.c Wed Oct 13 00:26:27 2004 ++++ leif/canna/CannaLE.c Thu Feb 17 01:55:18 2005 +@@ -86,7 +86,7 @@ + + #include <dlfcn.h> + #include "csconv.h" +-#define CSC_PATH "/usr/lib/im/csconv/csconv.so" ++#define CSC_PATH "/usr/local/lib/im/csconv/csconv.so" + #define CSC_OPEN_LOCALE "csconv_open_locale" + #define CSC_OPEN "csconv_open" + #define CSC_CONV "csconv" +@@ -104,11 +104,11 @@ + char **, size_t *); + typedef int (* csc_close_t)(csconv_t); + +-static void * csc_handle; +-static csc_open_locale_t csc_open_locale; +-static csc_open_t csc_open; +-static csc_conv_t csc_conv; +-static csc_close_t csc_close; ++static void * csc_handle = NULL; ++static csc_open_locale_t csc_open_locale = NULL; ++static csc_open_t csc_open = NULL; ++static csc_conv_t csc_conv = NULL; ++static csc_close_t csc_close = NULL; + static csconv_t csconv_cd = NULL; + + Bool if_canna_OpenIF(); diff --git a/japanese/iiimf-le-canna/files/patch-leif_canna_Makefile.am b/japanese/iiimf-le-canna/files/patch-leif_canna_Makefile.am new file mode 100644 index 000000000000..e6ef41e17505 --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-leif_canna_Makefile.am @@ -0,0 +1,8 @@ +--- leif/canna/Makefile.am.orig Mon Feb 28 03:00:36 2005 ++++ leif/canna/Makefile.am Mon Feb 28 03:00:44 2005 +@@ -1,5 +1,3 @@ +-SUBDIRS = xaux +- + LE_FILES = CannaLE.so + CannaLE_la_CFLAGS = $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) \ + -DNO_COLOR_FEEDBACK -DNO_CARET_NEGO \ diff --git a/japanese/iiimf-le-canna/files/patch-leif_canna_xaux_Makefile.am b/japanese/iiimf-le-canna/files/patch-leif_canna_xaux_Makefile.am new file mode 100644 index 000000000000..97229748b59b --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-leif_canna_xaux_Makefile.am @@ -0,0 +1,11 @@ +--- leif/canna/xaux/Makefile.am Mon Sep 6 17:41:11 2004 ++++ leif/canna/xaux/Makefile.am Wed Feb 16 14:20:49 2005 +@@ -10,7 +10,7 @@ + -g \ + $(NULL) + +-AM_LDFLAGS = \ ++LDFLAGS = \ + $(THREAD_LDFLAGS) \ + $(NULL) + diff --git a/japanese/iiimf-le-canna/files/patch-leif_configure.ac b/japanese/iiimf-le-canna/files/patch-leif_configure.ac new file mode 100644 index 000000000000..616253ca25b4 --- /dev/null +++ b/japanese/iiimf-le-canna/files/patch-leif_configure.ac @@ -0,0 +1,33 @@ +--- leif/configure.ac Wed Oct 6 23:00:36 2004 ++++ leif/configure.ac Fri Feb 18 01:19:12 2005 +@@ -61,25 +61,19 @@ + IM_CONSTRUCT_FLAGS + IM_CONSTRUCT_THREAD_FLAGS + + CFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ + ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ +- ${THREAD_COMMON_CXX_CFLAGS}" ++ ${THREAD_COMMON_CXX_CFLAGS} -I/usr/local/include -I/usr/X11R6/include" + + CXXFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ + ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ +- ${THREAD_COMMON_CXX_CFLAGS}" ++ ${THREAD_COMMON_CXX_CFLAGS} -I/usr/local/include -I/usr/X11R6/include" + +-LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS}" ++LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} -L/usr/local/lib -L/usr/X11R6/lib" + +-LE_TARGETS="default template sampleja sampleja2 sampleja3 newpy testEIMIL unit hangul chewing" ++LE_TARGETS="canna" + +-IM_ADD_TARGET(LE_TARGETS, HAVE_CANNA, canna) ++IM_ADD_TARGET(LE_TARGETS, HAVE_X, canna/xaux) +-IM_ADD_TARGET(LE_TARGETS, HAVE_FREEWNN, freewnn) +-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/japanese/iiimf-le-canna/pkg-descr b/japanese/iiimf-le-canna/pkg-descr new file mode 100644 index 000000000000..c398e74a1b49 --- /dev/null +++ b/japanese/iiimf-le-canna/pkg-descr @@ -0,0 +1,6 @@ +IIIMF stands for Internet/Intranet Input Method Framework. +IIIMF is designed to be the next generation of input method framework. + +CannaLE - Interface module to the Canna language engine for IIIMF. + +WWW: http://www.openi18n.org/subgroups/im/IIIMF/ diff --git a/japanese/iiimf-le-canna/pkg-plist b/japanese/iiimf-le-canna/pkg-plist new file mode 100644 index 000000000000..385ebd7c4c6b --- /dev/null +++ b/japanese/iiimf-le-canna/pkg-plist @@ -0,0 +1,7 @@ +lib/im/leif/CannaLE.so +%%WANT_XAUX%%lib/im/locale/ja/CannaLE/aux.so +%%WANT_XAUX%%lib/im/locale/ja/CannaLE/auxmenu +%%WANT_XAUX%%@dirrm lib/im/locale/ja/CannaLE +%%WANT_XAUX%%@dirrm lib/im/locale/ja +@unexec rmdir %D/lib/im/leif > /dev/null 2>&1 || true +@unexec rmdir %D/lib/im/locale > /dev/null 2>&1 || true |