aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk12-addons/Makefile
blob: 420f060e633284074dd0af69884fcb3e0caf2633 (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
# New ports collection makefile for:    asterisk-addons
# Date created:             23 March 2006
# Whom:                 Fabian Gast <fgast@only640k.org>
#
# $FreeBSD$
#

PORTNAME=   asterisk-addons
PORTVERSION=    1.2.3
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://ftp.digium.com/pub/asterisk/ \
        http://ftp.digium.com/pub/asterisk/old-releases/ \
        ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
        ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/

MAINTAINER= fgast@only640k.org
COMMENT=    Additional modules for the Asterisk Open Source PBX

BUILD_DEPENDS=  asterisk:${PORTSDIR}/net/asterisk
RUN_DEPENDS=    asterisk:${PORTSDIR}/net/asterisk

ONLY_FOR_ARCHS= i386 sparc64 amd64
USE_MYSQL=  yes
USE_GMAKE=  yes

CONF_SAMPLES=   cdr_mysql.conf.sample res_mysql.conf.sample
ASTETCDIR=  ${PREFIX}/etc/asterisk

post-patch:
    @${REINPLACE_CMD} 's,^CFLAGS+=-I../asterisk,CFLAGS+=-I${LOCALBASE}/include,' ${WRKSRC}/Makefile

post-install:
    ${MKDIR} ${ASTETCDIR}
.for f in ${CONF_SAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/configs/$f ${ASTETCDIR}
.endfor

.include <bsd.port.mk>