diff options
Diffstat (limited to 'textproc/iiimf-le-unit/Makefile')
-rw-r--r-- | textproc/iiimf-le-unit/Makefile | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/textproc/iiimf-le-unit/Makefile b/textproc/iiimf-le-unit/Makefile index 85e95e5aa7b1..7eced22160da 100644 --- a/textproc/iiimf-le-unit/Makefile +++ b/textproc/iiimf-le-unit/Makefile @@ -10,48 +10,59 @@ PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} CATEGORIES= textproc MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/ PKGNAMEPREFIX= iiimf- -DISTNAME= im-sdk -DISTFILES= ${DISTNAME}-src-${IIIMF_VER}.tgz +DISTNAME= im-sdk-src-${IIIMF_VER} +EXTRACT_SUFX= .tar.bz2 MAINTAINER= kcwu@csie.org COMMENT= IIIMF UNIcode Table based generic composition engine +BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed 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}/unit -INSTALL_WRKSRC= ${WRKSRC}/unit +IIIMF_VER= r12_1-svn2002 USE_ICONV= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_GNOME= intltool USE_XLIB= yes -USE_REINPLACE= yes -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} +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-//} .include <bsd.port.pre.mk> -.if ${OSVERSION} < 500000 -IGNORE= does not build on FreBSD 4.x because of missing fputwc() function in libc +.if ${OSVERSION} < 503000 +IGNORE= "It is supported on FreeBSD 5.3 and later" .endif -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -BROKEN= "Segfault during build on amd64 and ia64" +.if ${ARCH} != "i386" +IGNORE= "${ARCH} is not support." .endif +MAKE_ARGS+= LIBTOOL="${LIBTOOL} --tag=CXX" SED=gsed +UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \ + AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \ + LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} + post-patch: ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ ${WRKSRC}/../acfiles/im_common.m4 \ - ${WRKSRC}/configure.ac \ - ${WRKSRC}/unit/include/unit_input.h \ - ${WRKSRC}/unit/phonetic_im/phonetic_im.c + ${WRKSRC}/../lib/CSConv/csconv.h pre-configure: - cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal -I ../acfiles - ${TOUCH} ${WRKSRC}/config.h.in - cd ${WRKSRC} && ${LIBTOOLIZE} --copy --force --automake + (cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles) + (cd ${WRKSRC}/../acfiles/ && ${TOUCH} ltconfig) + (cd ${WRKSRC} && ${TOUCH} ltconfig) + +do-configure: + (cd ${WRKSRC}/../lib/EIMIL && ./autogen.sh) + (cd ${WRKSRC} && ./autogen.sh --prefix=${PREFIX}) + +pre-build: + (cd ${WRKSRC}/../lib/EIMIL && ${GMAKE} ${MAKE_ARGS}) .include <bsd.port.post.mk> |