2004-10-13 21:35:34 +02:00
|
|
|
# New ports collection makefile for: iiimf-x-lib
|
|
|
|
# Date created: 8 Sep 2004
|
|
|
|
# Whom: Kuang-che Wu <kcwu@csie.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= x-lib
|
2005-05-24 14:37:50 +02:00
|
|
|
PORTVERSION= 12.2
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 4
|
2004-10-13 21:35:34 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
|
|
|
|
PKGNAMEPREFIX= iiimf-
|
2005-05-24 14:37:50 +02:00
|
|
|
DISTNAME= iiimf-src-${PORTVERSION}
|
2004-10-13 21:35:34 +02:00
|
|
|
|
2006-12-07 10:15:12 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-13 21:35:34 +02:00
|
|
|
COMMENT= Internet/Intranet Input Method X Client Framework
|
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib \
|
|
|
|
iiimcf.3:${PORTSDIR}/textproc/iiimf-client-lib
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/iiim/csconv/csconv.so:${PORTSDIR}/textproc/iiimf-csconv
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2005-02-28 14:52:56 +01:00
|
|
|
USE_BZIP2= yes
|
2005-03-04 12:38:18 +01:00
|
|
|
USE_GETTEXT= yes
|
2005-02-28 05:17:02 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-06 12:56:36 +01:00
|
|
|
USE_MOTIF= yes
|
|
|
|
USE_OPENSSL= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= automake:19:env autoconf:262:env libtool:22:env
|
2005-03-04 12:38:18 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
|
|
|
|
BUILDDIR= ${WRKSRC}/iiimxcf/xiiimp.so
|
2004-10-13 21:35:34 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-04 12:38:18 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}
|
2005-05-24 14:37:50 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2004-10-13 21:35:34 +02:00
|
|
|
post-patch:
|
2005-05-24 14:37:50 +02:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \
|
|
|
|
-e "s,%%PREFIX%%,${PREFIX},g" \
|
|
|
|
${WRKSRC}/Makefile ${BUILDDIR}/Makefile.am
|
|
|
|
${REINPLACE_CMD} -e "s,/usr/lib/iiim,${LOCALBASE}/lib/iiim,g" \
|
|
|
|
${WRKSRC}/lib/CSConv/csconv.h
|
2004-10-13 21:35:34 +02:00
|
|
|
|
|
|
|
pre-configure:
|
2005-05-24 14:37:50 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig
|
2009-08-07 14:05:34 +02:00
|
|
|
@${REINPLACE_CMD} -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} ${LTMAIN}^g" \
|
|
|
|
-e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
|
|
|
|
${BUILDDIR}/configure
|
2005-05-24 14:37:50 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config
|
2004-10-13 21:35:34 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|