1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/chinese/iiimf-le-ude/Makefile
Daichi GOTO c164ad94cf IIIMF-related ports some changes:
- support CFLAGS of /etc/make.conf
  - replace absolute path with ${LOCALBASE}, ${PREFIX} and others
  - replace -pthread flags with ${THREAD*}
  - m17n fixed of gnome-im-swither
  - fixed vid krisbot

Submitted by:	Masanori OZAWA <ozawa@ongs.co.jp>
2005-03-04 11:38:18 +00:00

64 lines
2.0 KiB
Makefile

# New ports collection makefile for: iiimf-le-ude
# Date created: 11 Sep 2004
# Whom: Kuang-che Wu <kcwu@csie.org>
#
# $FreeBSD$
#
PORTNAME= le-ude
PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//}
PORTREVISION= 1
CATEGORIES= chinese textproc
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
PKGNAMEPREFIX= iiimf-
DISTNAME= im-sdk-src-${IIIMF_VER}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= kcwu@csie.org
COMMENT= IIIMF User Defined language Engine for Simplified Chinese conversion
RUN_DEPENDS= ${LOCALBASE}/lib/im/htt:${PORTSDIR}/textproc/iiimf-server
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_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
BUILD_WRKSRC= ${WRKSRC}/ude
INSTALL_WRKSRC= ${WRKSRC}/ude
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
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}"
post-patch:
${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
${WRKSRC}/../acfiles/im_common.m4
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}
.include <bsd.port.mk>