2003-12-28 12:18:18 +01:00
|
|
|
# New ports collection makefile for: iiimf-server
|
|
|
|
# Date created: 6 Dec 2003
|
|
|
|
# Whom: Kuang-che Wu <kcwu@csie.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-10-13 21:56:46 +02:00
|
|
|
PORTNAME= server
|
2005-05-24 14:37:50 +02:00
|
|
|
PORTVERSION= 12.2
|
2007-09-30 06:47:36 +02:00
|
|
|
PORTREVISION= 2
|
2003-12-28 12:18:18 +01:00
|
|
|
CATEGORIES= textproc
|
2004-10-13 21:56:46 +02:00
|
|
|
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
|
|
|
|
PKGNAMEPREFIX= iiimf-
|
2005-05-24 14:37:50 +02:00
|
|
|
DISTNAME= iiimf-src-${PORTVERSION}
|
2003-12-28 12:18:18 +01:00
|
|
|
|
2006-12-07 10:15:12 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-28 12:18:18 +01:00
|
|
|
COMMENT= Internet/Intranet Input Method Server Framework
|
|
|
|
|
2006-02-06 12:56:36 +01:00
|
|
|
LIB_DEPENDS= iiimp.1:${PORTSDIR}/textproc/iiimf-protocol-lib
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2008-01-12 14:11:16 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-05-24 14:37:50 +02:00
|
|
|
USE_RC_SUBR= iiimd.sh
|
2005-02-28 14:52:56 +01:00
|
|
|
USE_BZIP2= yes
|
2005-02-28 05:17:02 +01:00
|
|
|
USE_GMAKE= yes
|
2005-03-04 12:38:18 +01:00
|
|
|
USE_GNOME= pkgconfig libxml2
|
2006-02-06 12:56:36 +01:00
|
|
|
USE_OPENSSL= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= automake:19:env autoconf:262:env libtool:15:env
|
2005-03-04 12:38:18 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
|
|
|
|
BUILDDIR= ${WRKSRC}/iiimsf
|
2004-09-18 19:49:31 +02:00
|
|
|
|
2004-12-17 07:57:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-02-28 05:17:02 +01:00
|
|
|
.if ${OSVERSION} < 503000
|
2006-02-06 12:56:36 +01:00
|
|
|
IGNORE= is supported on FreeBSD 5.3 and later only
|
2004-12-17 07:57:07 +01:00
|
|
|
.endif
|
|
|
|
|
2005-03-04 12:38:18 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CFLAGS+= -g -ggdb -DDEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2005-05-24 14:37:50 +02:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2005-03-04 12:38:18 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2005-05-24 14:37:50 +02:00
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2003-12-28 12:18:18 +01: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,${PREFIX}/lib/iiim,g" \
|
|
|
|
${BUILDDIR}/src/le.xml.conf
|
|
|
|
${MV} ${BUILDDIR}/iiimd.xml.conf ${BUILDDIR}/iiimd.xml.conf.sample
|
|
|
|
${MV} ${BUILDDIR}/src/le.xml.conf ${BUILDDIR}/src/le.xml.conf.sample
|
2003-12-28 12:18:18 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${GMAKE} reconfig
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${GMAKE} config
|
2005-02-28 05:17:02 +01:00
|
|
|
|
2005-05-24 14:37:50 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${BUILDDIR}/src/le.xml.conf.sample ${PREFIX}/etc/iiim/
|
2004-10-13 21:56:46 +02:00
|
|
|
|
2004-12-17 07:57:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|