blob: c953ca541a063720b986bc1e6c8441522089d4d6 (
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
|
# Created by: Fabian Gast <fgast@only640k.org>
# $FreeBSD$
PORTNAME= asterisk14
PORTVERSION= 1.4.13
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
PKGNAMESUFFIX= -addons
DISTNAME= asterisk${PKGNAMESUFFIX}-${DISTVERSION}
MAINTAINER= bamby@sippysoft.com
COMMENT= GPL modules for the Asterisk Open Source PBX
BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk14
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk14
OPTIONS_DEFINE= SAMPLE_CONFIG
SAMPLE_CONFIG_DESC= Install sample configuration files
ONLY_FOR_ARCHS= i386 amd64 powerpc
USE_AUTOTOOLS= libtool
USE_MYSQL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MSAMPLE_CONFIG}
PLIST_SUB+= SAMPLE_CONFIG=""
.else
PLIST_SUB+= SAMPLE_CONFIG="@comment "
.endif
pre-configure:
if ${GREP} -sq fixup_codecs ${LOCALBASE}/include/asterisk/channel.h; \
then \
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/codecnego.diff; \
fi
post-install:
.if ${PORT_OPTIONS:MSAMPLE_CONFIG}
@cd ${WRKSRC} && ${GMAKE} samples
.endif
.include <bsd.port.post.mk>
|