aboutsummaryrefslogtreecommitdiffstats
path: root/www/kannel/Makefile
blob: 8dca10c895e742b0bd333bc1a6319043b49eea9d (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
# New ports collection makefile for:   kannel
# Date created:     19 Jun 2000
# Whom:         Domas Mituzas <midom@dammit.lt>
#
# $FreeBSD$

PORTNAME=   kannel
PORTVERSION=    1.0.3
CATEGORIES= www
MASTER_SITES=   http://www.kannel.3glab.org/download/${PORTVERSION}/
DISTNAME=   gateway-${PORTVERSION}

MAINTAINER= martti.kuparinen@iki.fi

LIB_DEPENDS=    xml2:${PORTSDIR}/textproc/libxml2

USE_AUTOCONF=   yes
USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/
CFLAGS+=    ${PTHREAD_LIBS}
CONFIGURE_ARGS+=    --with-malloc=native

do-install:
.if !defined(NOPORTDOCS)
    @cd ${WRKSRC} && make install-docs
.endif
    @cd ${WRKSRC} && make install
    ${INSTALL_DATA} ${WRKSRC}/gw/wapkannel.conf ${PREFIX}/etc/
    ${INSTALL_DATA} ${WRKSRC}/gw/smskannel.conf ${PREFIX}/etc/

.if !defined(NOPORTDOCS)
post-install:
    @cd ${WRKSRC}/doc && \
        for a in `/usr/bin/find . -type f | ${SED} -e 's:^\./::g'` ; \
            do ${ECHO_CMD} share/doc/kannel/$$a >> ${TMPPLIST} ; done
    @${ECHO_CMD} "@dirrm share/doc/kannel/arch" >> ${TMPPLIST}
    @${ECHO_CMD} "@dirrm share/doc/kannel/userguide" >> ${TMPPLIST}
    @${ECHO_CMD} "@dirrm share/doc/kannel" >> ${TMPPLIST}
.endif

.include <bsd.port.mk>