diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-13 22:31:10 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-10-13 22:31:10 +0000 |
commit | d7da8381ae5c62527dc28fb8dd54874c757b69e2 (patch) | |
tree | 407d315371dddd90f88f1ca8c8843b51afbe397f /chinese/iiimf-le-newpy/Makefile | |
parent | 4addcd869ddaa45331615dc2f417e778ce8f8e0a (diff) | |
download | ports-d7da8381ae5c62527dc28fb8dd54874c757b69e2.tar.gz ports-d7da8381ae5c62527dc28fb8dd54874c757b69e2.zip |
Notes
Diffstat (limited to 'chinese/iiimf-le-newpy/Makefile')
-rw-r--r-- | chinese/iiimf-le-newpy/Makefile | 49 |
1 files changed, 28 insertions, 21 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> |