diff options
author | daichi <daichi@FreeBSD.org> | 2005-05-24 20:37:50 +0800 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2005-05-24 20:37:50 +0800 |
commit | 2fc57c4b8b6311308d0cd7c060698ffba5fdeb98 (patch) | |
tree | 37dac9da04b94e927a5886af6f57c1828f27f13b /chinese/iiimf-le-newpy/Makefile | |
parent | 834341d742892c8f5d7d774127f637922888c5ce (diff) | |
download | freebsd-ports-gnome-2fc57c4b8b6311308d0cd7c060698ffba5fdeb98.tar.gz freebsd-ports-gnome-2fc57c4b8b6311308d0cd7c060698ffba5fdeb98.tar.zst freebsd-ports-gnome-2fc57c4b8b6311308d0cd7c060698ffba5fdeb98.zip |
IIIMF-related ports:
- drop maintainership
- update to r12.2
- some bug fixes
PR: 81184
Submitted by: Masanori OZAWA <ozawa@ongs.co.jp>
Approved by: maintainer
Diffstat (limited to 'chinese/iiimf-le-newpy/Makefile')
-rw-r--r-- | chinese/iiimf-le-newpy/Makefile | 67 |
1 files changed, 29 insertions, 38 deletions
diff --git a/chinese/iiimf-le-newpy/Makefile b/chinese/iiimf-le-newpy/Makefile index a598a48db4a2..f1dd1cf3ba83 100644 --- a/chinese/iiimf-le-newpy/Makefile +++ b/chinese/iiimf-le-newpy/Makefile @@ -6,42 +6,40 @@ # PORTNAME= le-newpy -PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 2 +PORTVERSION= 12.2 CATEGORIES= chinese textproc MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/ PKGNAMEPREFIX= iiimf- -DISTNAME= im-sdk-src-${IIIMF_VER} +DISTNAME= iiimf-src-${PORTVERSION} EXTRACT_SUFX= .tar.bz2 -MAINTAINER= kcwu@csie.org +MAINTAINER= ozawa@ongs.co.jp COMMENT= IIIMF New PinYin input method engine -RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server +RUN_DEPENDS= iiimd:${PORTSDIR}/textproc/iiimf-server + +ONLY_FOR_ARCHS= i386 -IIIMF_VER= r12_1-svn2002 USE_BZIP2= yes USE_REINPLACE= yes USE_GMAKE= yes -USE_AUTOCONF_VER= 259 -USE_AUTOHEADER_VER= 259 -USE_AUTOMAKE_VER= 19 +WANT_AUTOCONF_VER= 259 +WANT_AUTOHEADER_VER= 259 +WANT_AUTOMAKE_VER= 19 WANT_LIBTOOL_VER= 15 -AUTOMAKE_ARGS+= --add-missing -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +BUILDDIR= ${WRKSRC}/leif -WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} +LE_TARGETS= newpy .if !defined(WITHOUT_XAUX) +LE_TARGETS+= newpy/xaux USE_MOTIF= yes CFLAGS+= -I${X11BASE}/include LDFLAGS+= -L${X11BASE}/lib 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 @@ -51,33 +49,26 @@ PLIST_SUB+= WANT_XAUX="@comment " IGNORE= "It is supported on FreeBSD 5.3 and later" .endif -.if ${ARCH} != "i386" -IGNORE= "${ARCH} is not support." -.endif - CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" -UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \ - AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \ - LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \ - ACLOCAL_DIR="-I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR}" +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" post-patch: - ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ - ${WRKSRC}/../acfiles/im_common.m4 \ - ${WRKSRC}/../lib/CSConv/csconv.h + ${REINPLACE_CMD} \ + -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am \ + ${BUILDDIR}/newpy/xaux/aux_win.c \ + ${BUILDDIR}/newpy/xaux/aux_so.c -pre-configure: - @cd ${WRKSRC}/../ && ${GMAKE} ${UPDATE_ARGS} update-acfiles - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --force --copy - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ - -I ../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR} - @cd ${WRKSRC} && ${REINPLACE_CMD} \ - -e "s^\$$ac_aux_dir/ltconfig^${LTCONFIG}^g" \ - -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \ - -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \ - ${LIBTOOLFILES} - @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} +do-configure: +.if defined(WITHOUT_XAUX) + @cd ${WRKSRC} && \ + ${REINPLACE_CMD} -e '/^CONFIG_FLAGS =/s,$$, --without-x,' Makefile +.endif + @cd ${BUILDDIR} && ${REINPLACE_CMD} \ + -e "/LE_TARGETS=/s,%%LE_TARGETS%%,${LE_TARGETS}," configure.ac + @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config .include <bsd.port.post.mk> |