1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/www/kannel/Makefile
Sunpoet Po-Chuan Hsieh 83427aa49f - Eliminate coredump on amd64
- Bump PORTREVISION

PR:		ports/151436
Submitted by:	Dmitry Pryanishnikov <lynx.ripe@gmail.com>
Approved by:	pgollucci (mentor, implicit)
2010-10-16 09:17:20 +00:00

85 lines
1.9 KiB
Makefile

# New ports collection makefile for: kannel
# Date created: 19 Jun 2000
# Whom: Domas Mituzas <midom@dammit.lt>
#
# $FreeBSD$
PORTNAME= kannel
PORTVERSION= 1.4.3
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.kannel.org/download/
MASTER_SITE_SUBDIR= ${PORTVERSION}
DISTNAME= gateway-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= WAP / SMS Gateway
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
USE_RC_SUBR= kannel
USE_GNOME= libxml2
USE_OPENSSL= yes
USE_GMAKE= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cflags="${CPPFLAGS}" --with-libs="${LDFLAGS}" \
--enable-pcre=yes --enable-docs=no --with-malloc=native \
--enable-start-stop-daemon=no --without-sdb --without-oracle \
--without-sqlite2
MAN1= mtbatch.1 seewbmp.1 wmlsc.1 wmlsdasm.1
MAN8= kannel.8 run_kannel_box.8
OPTIONS= MYSQL "Enable MySQL support" off \
PGSQL "Enable PostgreSQL support" off \
SQLITE3 "Enable SQLite support" off
.include <bsd.port.options.mk>
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.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
.if ${ARCH} == "alpha"
BROKEN= Does not compile on alpha
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-pthread||g ; \
s|-lc_r||g ; \
s|-lkse||g' ${WRKSRC}/configure
post-install:
.for filename in wapkannel.conf smskannel.conf
${INSTALL_DATA} ${WRKSRC}/gw/${filename} ${PREFIX}/etc/${filename}.sample
.endfor
.for filename in mtbatch seewbmp wmlsc wmlsdasm
@${STRIP_CMD} ${PREFIX}/bin/${filename}
.endfor
.for filename in bearerbox run_kannel_box smsbox wapbox
@${STRIP_CMD} ${PREFIX}/sbin/${filename}
.endfor
.include <bsd.port.mk>