aboutsummaryrefslogtreecommitdiff
path: root/www/kannel/Makefile
blob: 61c179c00919de571413824aedbfcfbacc320b88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: Domas Mituzas <midom@dammit.lt>
# $FreeBSD$

PORTNAME=	kannel
PORTVERSION=	1.4.4
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	www
MASTER_SITES=	http://www.kannel.org/download/${PORTVERSION}/
DISTNAME=	gateway-${PORTVERSION}

MAINTAINER=	dbaio@bsd.com.br
COMMENT=	WAP/SMS gateway

LICENSE=	The_Kannel_Software_License
LICENSE_NAME=	The Kannel Software License, Version 1.0
LICENSE_FILE=	${WRKSRC}/LICENSE
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre

USERS=		kannel
GROUPS=		kannel

USES=		tar:bzip2 gmake bison
USE_GCC=	yes
USE_GNOME=	libxml2
USE_OPENSSL=	yes
USE_RC_SUBR=	${PORTNAME}_bearerbox ${PORTNAME}_smsbox ${PORTNAME}_wapbox
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

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -pthread

OPTIONS_DEFINE=	MYSQL PGSQL SQLITE3
OPTIONS_DEFAULT=	MYSQL

SQLITE3_USE=	SQLITE=3
SQLITE3_CONFIGURE_WITH=	sqlite3

MYSQL_USE=	MYSQL=yes
MYSQL_CONFIGURE_WITH=	mysql

PGSQL_USES=	pgsql
PGSQL_CONFIGURE_WITH=	pgsql

post-install:
.for filename in wapkannel.conf smskannel.conf
	${INSTALL_DATA} ${WRKSRC}/gw/${filename} \
		${STAGEDIR}${PREFIX}/etc/${filename}.sample
.endfor
.for filename in mtbatch seewbmp wmlsc wmlsdasm decode_emimsg
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${filename}
.endfor
.for filename in bearerbox run_kannel_box smsbox wapbox
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${filename}
.endfor
	@${MKDIR} ${STAGEDIR}/var/log/kannel
	@${MKDIR} ${STAGEDIR}/var/run/kannel

.include <bsd.port.mk>