2000-07-19 14:23:22 +00:00
|
|
|
# New ports collection makefile for: kannel
|
|
|
|
# Date created: 19 Jun 2000
|
|
|
|
# Whom: Domas Mituzas <midom@dammit.lt>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= kannel
|
2009-03-22 17:48:51 +00:00
|
|
|
PORTVERSION= 1.4.3
|
2010-10-16 09:17:20 +00:00
|
|
|
PORTREVISION= 2
|
2000-07-19 14:23:22 +00:00
|
|
|
CATEGORIES= www
|
2010-07-16 00:03:49 +00:00
|
|
|
MASTER_SITES= http://www.kannel.org/download/
|
2003-02-02 13:32:37 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
2000-07-19 14:23:22 +00:00
|
|
|
DISTNAME= gateway-${PORTVERSION}
|
|
|
|
|
2009-03-09 19:29:12 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= WAP / SMS Gateway
|
2000-07-19 14:23:22 +00:00
|
|
|
|
2004-12-22 08:28:51 +00:00
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
|
2007-06-09 22:10:22 +00:00
|
|
|
USE_RC_SUBR= kannel
|
2004-12-20 09:25:39 +00:00
|
|
|
USE_GNOME= libxml2
|
|
|
|
USE_OPENSSL= yes
|
2000-07-19 14:23:22 +00:00
|
|
|
USE_GMAKE= yes
|
2006-10-08 18:34:51 +00:00
|
|
|
USE_BZIP2= yes
|
2003-02-02 13:32:37 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-20 09:25:39 +00:00
|
|
|
CONFIGURE_ARGS= --with-cflags="${CPPFLAGS}" --with-libs="${LDFLAGS}" \
|
|
|
|
--enable-pcre=yes --enable-docs=no --with-malloc=native \
|
2010-07-16 00:03:49 +00:00
|
|
|
--enable-start-stop-daemon=no --without-sdb --without-oracle \
|
|
|
|
--without-sqlite2
|
2003-02-02 13:32:37 +00:00
|
|
|
|
2004-12-20 09:25:39 +00:00
|
|
|
MAN1= mtbatch.1 seewbmp.1 wmlsc.1 wmlsdasm.1
|
2003-02-02 13:32:37 +00:00
|
|
|
MAN8= kannel.8 run_kannel_box.8
|
|
|
|
|
2010-07-16 00:03:49 +00:00
|
|
|
OPTIONS= MYSQL "Enable MySQL support" off \
|
|
|
|
PGSQL "Enable PostgreSQL support" off \
|
|
|
|
SQLITE3 "Enable SQLite support" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2004-12-20 09:25:39 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
2010-07-16 00:03:49 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE3)
|
|
|
|
USE_SQLITE= 3
|
|
|
|
CONFIGURE_ARGS+=--with-sqlite3
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-sqlite3
|
|
|
|
.endif
|
2004-02-23 23:08:55 +00:00
|
|
|
|
2009-07-27 07:13:44 +00:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
BROKEN= Does not compile on alpha
|
2004-02-23 23:08:55 +00:00
|
|
|
.endif
|
|
|
|
|
2003-02-02 13:32:37 +00:00
|
|
|
post-patch:
|
2004-12-20 09:25:39 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-pthread||g ; \
|
|
|
|
s|-lc_r||g ; \
|
|
|
|
s|-lkse||g' ${WRKSRC}/configure
|
2003-02-02 13:32:37 +00:00
|
|
|
|
2000-07-19 14:23:22 +00:00
|
|
|
post-install:
|
2006-10-08 18:34:51 +00:00
|
|
|
.for filename in wapkannel.conf smskannel.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gw/${filename} ${PREFIX}/etc/${filename}.sample
|
2003-02-02 13:32:37 +00:00
|
|
|
.endfor
|
2006-10-08 18:34:51 +00:00
|
|
|
.for filename in mtbatch seewbmp wmlsc wmlsdasm
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${filename}
|
2003-02-02 13:32:37 +00:00
|
|
|
.endfor
|
2006-10-08 18:34:51 +00:00
|
|
|
.for filename in bearerbox run_kannel_box smsbox wapbox
|
|
|
|
@${STRIP_CMD} ${PREFIX}/sbin/${filename}
|
2003-02-02 13:32:37 +00:00
|
|
|
.endfor
|
2000-07-19 14:23:22 +00:00
|
|
|
|
2010-07-16 00:03:49 +00:00
|
|
|
.include <bsd.port.mk>
|