aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-10-13 22:31:10 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-10-13 22:31:10 +0000
commitd7da8381ae5c62527dc28fb8dd54874c757b69e2 (patch)
tree407d315371dddd90f88f1ca8c8843b51afbe397f /chinese
parent4addcd869ddaa45331615dc2f417e778ce8f8e0a (diff)
downloadports-d7da8381ae5c62527dc28fb8dd54874c757b69e2.tar.gz
ports-d7da8381ae5c62527dc28fb8dd54874c757b69e2.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/iiimf-le-newpy/Makefile49
-rw-r--r--chinese/iiimf-le-newpy/distinfo4
-rw-r--r--chinese/iiimf-le-newpy/files/patch-leif_configure.ac10
-rw-r--r--chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h10
-rw-r--r--chinese/iiimf-le-newpy/pkg-plist9
5 files changed, 43 insertions, 39 deletions
diff --git a/chinese/iiimf-le-newpy/Makefile b/chinese/iiimf-le-newpy/Makefile
index b66a89a54052..bda6d0243dd2 100644
--- a/chinese/iiimf-le-newpy/Makefile
+++ b/chinese/iiimf-le-newpy/Makefile
@@ -5,52 +5,59 @@
# $FreeBSD$
#
-PORTNAME= iiimf-le-newpy
-PORTVERSION= ${IIIMF_VER:S/_/./:C/-.*//}
-PORTREVISION= 1
+PORTNAME= le-newpy
+PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//}
CATEGORIES= chinese textproc
-MASTER_SITES= http://www.openi18n.org/download/docs/im-sdk/
+MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
+PKGNAMEPREFIX= iiimf-
DISTNAME= im-sdk
-DISTFILES= ${DISTNAME}.${IIIMF_VER:S/-/./}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}-src-${IIIMF_VER}.tgz
MAINTAINER= kcwu@csie.org
-COMMENT= Internet/Intranet Input Method Framework language engine newpy
+COMMENT= IIIMF New PinYin input method engine
-IIIMF_VER= r11_4-1467
+RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server
+
+IIIMF_VER= r12_0_1-svn1891
WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}/leif
BUILD_WRKSRC= ${WRKSRC}/newpy
INSTALL_WRKSRC= ${WRKSRC}/newpy
-USE_BZIP2= yes
-USE_GMAKE= yes
-INSTALLS_SHLIB= yes
USE_REINPLACE= yes
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}
-.if defined(WANT_XAUX)
+USE_AUTOCONF_VER= 259
+USE_AUTOHEADER_VER= 259
+USE_AUTOMAKE_VER= 19
+USE_LIBTOOL_VER= 15
+AUTOMAKE_ARGS+= --add-missing --copy --gnu
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+.if !defined(WITHOUT_XAUX)
USE_MOTIF= yes
PLIST_SUB+= WANT_XAUX=""
+RUN_DEPENDS+= ${LOCALBASE}/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv
.else
CONFIGURE_ARGS+=--without-x
PLIST_SUB+= WANT_XAUX="@comment "
.endif
post-patch:
- ${REINPLACE_CMD} -e "s,-lpthread,-pthread,g" \
- -e "s,-D_POSIX_C_SOURCE=199506L,,g" \
- -e "s,has_xiccallback=no,has_xiccallback=yes,g" \
- -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
- ${WRKSRC}/configure
${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
+ ${WRKSRC}/../acfiles/im_common.m4 \
+ ${WRKSRC}/configure.ac \
${WRKSRC}/newpy/NewPY.c \
${WRKSRC}/newpy/xaux/aux_so.c \
${WRKSRC}/newpy/xaux/aux_win.c
-.if defined(WANT_XAUX)
+pre-configure:
+ cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal -I ../acfiles
+ ${TOUCH} ${WRKSRC}/config.h.in
+ cd ${WRKSRC} && ${LIBTOOLIZE} --copy --force --automake
+
+.if !defined(WITHOUT_XAUX)
post-build:
- cd ${BUILD_WRKSRC}/xaux && ${GMAKE} all
+ cd ${BUILD_WRKSRC}/xaux && ${MAKE} all
post-install:
- cd ${INSTALL_WRKSRC}/xaux && ${GMAKE} install
+ cd ${INSTALL_WRKSRC}/xaux && ${MAKE} install
.endif
.include <bsd.port.mk>
diff --git a/chinese/iiimf-le-newpy/distinfo b/chinese/iiimf-le-newpy/distinfo
index 69d32b06e569..29d049a782bc 100644
--- a/chinese/iiimf-le-newpy/distinfo
+++ b/chinese/iiimf-le-newpy/distinfo
@@ -1,2 +1,2 @@
-MD5 (im-sdk.r11_4.1467.tar.bz2) = ca6b6ac7c41641db6eaa0fa395748f90
-SIZE (im-sdk.r11_4.1467.tar.bz2) = 7253894
+MD5 (im-sdk-src-r12_0_1-svn1891.tgz) = 4e51e4fd07391bd957622db0e89aeefe
+SIZE (im-sdk-src-r12_0_1-svn1891.tgz) = 18206118
diff --git a/chinese/iiimf-le-newpy/files/patch-leif_configure.ac b/chinese/iiimf-le-newpy/files/patch-leif_configure.ac
new file mode 100644
index 000000000000..a28012caf7aa
--- /dev/null
+++ b/chinese/iiimf-le-newpy/files/patch-leif_configure.ac
@@ -0,0 +1,10 @@
+--- configure.ac.orig Wed Sep 8 00:00:58 2004
++++ configure.ac Wed Sep 8 00:02:34 2004
+@@ -10,6 +10,7 @@
+ dnl common initialization
+ dnl AC_CONFIG_AUX_DIR(../acfiles)
+ IM_INIT(..)
++m4_pattern_allow([AM_ET])
+
+ AM_INIT_AUTOMAKE(im-sdk, 11.0)
+ AM_CONFIG_HEADER(config.h)
diff --git a/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h b/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h
deleted file mode 100644
index 0425516db180..000000000000
--- a/chinese/iiimf-le-newpy/files/patch-leif_newpy_PYIM.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- newpy/PYIM.h.orig Sat Dec 6 02:51:17 2003
-+++ newpy/PYIM.h Sat Dec 6 02:51:23 2003
-@@ -47,7 +47,6 @@
-
- #include <stdio.h>
- #include <stdlib.h>
--#include <malloc.h>
- #include <string.h>
- /*
- #include <sys/types.h>
diff --git a/chinese/iiimf-le-newpy/pkg-plist b/chinese/iiimf-le-newpy/pkg-plist
index 41e35a38c178..23bd3b3687b4 100644
--- a/chinese/iiimf-le-newpy/pkg-plist
+++ b/chinese/iiimf-le-newpy/pkg-plist
@@ -4,8 +4,6 @@ lib/im/locale/zh_CN/newpy/data/UdCiku.dat
lib/im/locale/zh_CN/newpy/newpy_obj.jar
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.so.0
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.so
-%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.la
-%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux.a
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/aux_win
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/full.gif
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/gb.gif
@@ -14,7 +12,6 @@ lib/im/locale/zh_CN/newpy/newpy_obj.jar
%%WANT_XAUX%%lib/im/locale/zh_CN/newpy/help.gif
@dirrm lib/im/locale/zh_CN/newpy/data
@dirrm lib/im/locale/zh_CN/newpy
-@dirrm lib/im/locale/zh_CN
-@dirrm lib/im/locale
-@dirrm lib/im/leif
-@unexec rmdir %D/lib/im 2>/dev/null || true
+@unexec rmdir %D/lib/im/locale/zh_CN 2>/dev/null || true
+@unexec rmdir %D/lib/im/locale 2>/dev/null || true
+@unexec rmdir %D/lib/im/leif 2>/dev/null || true