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 /textproc/iiimf-le-unit/Makefile | |
parent | dfe4984ca786bf71a10a04b833ccf6fa4ca2e1ac (diff) | |
download | ports-c164ad94cfabcd5f8a4856763b207057ffd3659b.tar.gz ports-c164ad94cfabcd5f8a4856763b207057ffd3659b.zip |
Notes
Diffstat (limited to 'textproc/iiimf-le-unit/Makefile')
-rw-r--r-- | textproc/iiimf-le-unit/Makefile | 55 |
1 files changed, 39 insertions, 16 deletions
diff --git a/textproc/iiimf-le-unit/Makefile b/textproc/iiimf-le-unit/Makefile index 1be2521c681a..85b805b9251f 100644 --- a/textproc/iiimf-le-unit/Makefile +++ b/textproc/iiimf-le-unit/Makefile @@ -7,6 +7,7 @@ PORTNAME= le-unit PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/ PKGNAMEPREFIX= iiimf- @@ -16,7 +17,6 @@ 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_1-svn2002 @@ -24,12 +24,14 @@ USE_BZIP2= yes USE_ICONV= yes USE_REINPLACE= yes USE_GMAKE= yes -USE_GNOME= intltool USE_XLIB= yes -WANT_AUTOCONF_VER=253 -WANT_AUTOHEADER_VER=253 -WANT_AUTOMAKE_VER=15 -WANT_LIBTOOL_VER=15 +USE_AUTOCONF_VER= 259 +USE_AUTOHEADER_VER= 259 +USE_AUTOMAKE_VER= 19 +WANT_LIBTOOL_VER= 15 + +AUTOMAKE_ARGS+= --add-missing +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} @@ -44,10 +46,14 @@ IGNORE= "It is supported on FreeBSD 5.3 and later" IGNORE= "${ARCH} is not support." .endif -MAKE_ARGS+= LIBTOOL="${LIBTOOL} --tag=CXX" SED=gsed +CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS} \ + -DIMDIR="\\\"\$${IMDIR}\\\"" +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib -liconv ${PTHREAD_LIBS} +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \ AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \ - LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} + LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \ + ACLOCAL_DIR="-I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR}" post-patch: ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ @@ -55,15 +61,32 @@ post-patch: ${WRKSRC}/../lib/CSConv/csconv.h pre-configure: - (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}) + @cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles + @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ + -I ../../acfiles -I ${LOCALBASE}/share/aclocal -I ${ACLOCAL_DIR} + @cd ${WRKSRC}/../lib/EIMIL && ${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}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} + @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} + @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} + @cd ${WRKSRC}/../lib/EIMIL && ${SETENV} CC="${CC}" CXX="${CXX}" \ + CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${CONFIGURE_ENV} \ + ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} + @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} pre-build: - (cd ${WRKSRC}/../lib/EIMIL && ${GMAKE} ${MAKE_ARGS}) + @cd ${WRKSRC}/../lib/EIMIL && \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} .include <bsd.port.post.mk> |