diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2005-03-04 11:38:18 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2005-03-04 11:38:18 +0000 |
commit | c164ad94cfabcd5f8a4856763b207057ffd3659b (patch) | |
tree | 83be4b2b81a8c09fc64de4c8093119b5c54a7862 /chinese/iiimf-le-ude/files | |
parent | dfe4984ca786bf71a10a04b833ccf6fa4ca2e1ac (diff) | |
download | ports-c164ad94cfabcd5f8a4856763b207057ffd3659b.tar.gz ports-c164ad94cfabcd5f8a4856763b207057ffd3659b.zip |
Notes
Diffstat (limited to 'chinese/iiimf-le-ude/files')
6 files changed, 54 insertions, 98 deletions
diff --git a/chinese/iiimf-le-ude/files/patch-Makefile b/chinese/iiimf-le-ude/files/patch-Makefile index 85df0e345035..bcc2cb24a1c8 100644 --- a/chinese/iiimf-le-ude/files/patch-Makefile +++ b/chinese/iiimf-le-ude/files/patch-Makefile @@ -13,7 +13,7 @@ update-acfiles: cd acfiles && \ - $(ACLOCAL) && $(AUTOMAKE) --add-missing --copy && libtoolize --force --copy && \ -+ $(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: diff --git a/chinese/iiimf-le-ude/files/patch-acfiles_check_sys.m4 b/chinese/iiimf-le-ude/files/patch-acfiles_check_sys.m4 new file mode 100644 index 000000000000..8626eeae1fd1 --- /dev/null +++ b/chinese/iiimf-le-ude/files/patch-acfiles_check_sys.m4 @@ -0,0 +1,38 @@ +--- 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 @@ + CXX=${CC} + fi + ;; ++ cc*:*) ++ COMMON_CFLAGS="${COMMON_CFLAGS} -Wall" ++ SHLIBCFLAGS='-fpic' ++ SHLIBLDFLAGS='-shared' ++ ;; + *) + DEBUG_CXX_CFLAGS="${DEBUG_CXX_CFLAGS} -g" + ;; +@@ -249,8 +254,8 @@ + COMMON_CXX_CFLAGS="${COMMON_CXX_CFLAGS} -DLinux" + ;; + *freebsd*) +- THREAD_LDFLAGS="-pthread" +- PTHREAD_LIBS="" ++ THREAD_LDFLAGS="" ++ PTHREAD_LIBS="${PTHREAD_LIBS}" + ;; + esac + +@@ -288,9 +293,9 @@ + THREAD_CXX_CFLAGS="-mt" + HAVE_THREAD="uithread" + ;; +- *freebsd*@gcc:*) +- THREAD_LDFLAGS="-pthread" +- THREAD_LIBS="" ++ *freebsd*@cc:*|*freebsd*@gcc:*) ++ THREAD_LDFLAGS="" ++ THREAD_LIBS="${PTHREAD_LIBS}" + HAVE_THREAD="freebsd-pthread" + ;; + *linux*) diff --git a/chinese/iiimf-le-ude/files/patch-leif_autogen.sh b/chinese/iiimf-le-ude/files/patch-leif_autogen.sh deleted file mode 100644 index d38d31e628c7..000000000000 --- a/chinese/iiimf-le-ude/files/patch-leif_autogen.sh +++ /dev/null @@ -1,93 +0,0 @@ ---- 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/chinese/iiimf-le-ude/files/patch-leif_configure.ac b/chinese/iiimf-le-ude/files/patch-leif_configure.ac index 8391f93be414..43849b6bf537 100644 --- a/chinese/iiimf-le-ude/files/patch-leif_configure.ac +++ b/chinese/iiimf-le-ude/files/patch-leif_configure.ac @@ -7,15 +7,15 @@ CFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CFLAGS} \ ${DEBUG_CXX_CFLAGS} ${DEBUG_CFLAGS} \ - ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} -I/usr/local/include" ++ ${THREAD_COMMON_CXX_CFLAGS} ${CFLAGS}" CXXFLAGS="${COMMON_CXX_CFLAGS} ${COMMON_CXXFLAGS} \ ${DEBUG_CXX_CFLAGS} ${DEBUG_CXXFLAGS} \ - ${THREAD_COMMON_CXX_CFLAGS}" -+ ${THREAD_COMMON_CXX_CFLAGS} -I/usr/local/include" ++ ${THREAD_COMMON_CXX_CFLAGS} ${CXXFLAGS}" -LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS}" -+LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} -L/usr/local/lib" ++LDFLAGS="${COMMON_LDFLAGS} ${THREAD_LDFLAGS} ${LDFLAGS}" -LE_TARGETS="default template sampleja sampleja2 sampleja3 newpy testEIMIL unit hangul chewing" +LE_TARGETS="udt" diff --git a/chinese/iiimf-le-ude/files/patch-leif_ude_Makefile.am b/chinese/iiimf-le-ude/files/patch-leif_ude_Makefile.am new file mode 100644 index 000000000000..6d80b3552733 --- /dev/null +++ b/chinese/iiimf-le-ude/files/patch-leif_ude_Makefile.am @@ -0,0 +1,11 @@ +--- leif/ude/Makefile.am.orig Thu Mar 3 00:07:57 2005 ++++ leif/ude/Makefile.am Thu Mar 3 00:08:15 2005 +@@ -2,7 +2,7 @@ + datadir = $(IM_LOCALEDIR)/zh_CN/ude/data + udengine_la_CFLAGS = $(SHLIBCFLAGS) $(THREAD_CXX_CFLAGS) \ + -DNO_COLOR_FEEDBACK -DNO_CARET_NEGO \ +- -I$(IM_INCLUDEDIR)/iml ++ -I$(IM_INCLUDEDIR)/iml -DIMDIR="\"${IMDIR}\"" + udengine_la_LDFLAGS = -module -rpath $(IM_LEIFDIR) $(SHLIBLDFLAGS) $(THREAD_LDFLAGS) + udengine_la_LIBADD = $(THREAD_LIBS) + udengine_la_SOURCES = UDEngine.c Converter.c IMHandler.c \ diff --git a/chinese/iiimf-le-ude/files/patch-leif_ude_UDEngine.c b/chinese/iiimf-le-ude/files/patch-leif_ude_UDEngine.c index bec75c081379..c70fc4bea433 100644 --- a/chinese/iiimf-le-ude/files/patch-leif_ude_UDEngine.c +++ b/chinese/iiimf-le-ude/files/patch-leif_ude_UDEngine.c @@ -5,7 +5,7 @@ l->domain = "com.sun.udengine"; l->scope = "udengine"; - l->path = "/usr/lib/im/locale/zh_CN/udengine/udengine_obj.jar"; /* path */ -+ l->path = "/usr/local/lib/im/locale/zh_CN/udengine/udengine_obj.jar"; /* path */ ++ l->path = (IMDIR "/locale/zh_CN/udengine/udengine_obj.jar"); /* path */ l->signature = ""; l->basepath = NULL; /* only for CCDEF */ l->encoding = NULL; /* only for CCDEF */ |