mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
7150c8301f
- Improve codec negotiation logic. - make sure to parse SDP on re-INVITE. o chan_zap.c: - If unanswered Zap channnel is hanged up wait until the calling party in turn hangs up (by detecting ring timeout). Otherwise next ring will trigger a "new" incoming call. This appears to be design limitation of the analogue telephone system - there is no way to reject the call without answering it first. Sponsored by: Porta Software Ltd, PBXpress Inc
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
# New ports collection makefile for: asterisk
|
|
# Date created: 17 October 2003
|
|
# Whom: Maxim Sobolev <sobomax@portaone.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= asterisk
|
|
PORTVERSION= 1.0.7
|
|
PORTREVISION= 4
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
|
|
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
|
|
|
|
PATCHFILES= ${PORTNAME}-1.0.6-${BRIVER}.patch.gz
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
PATCH_SITE_SUBDIR= fjoe
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
COMMENT= An Open Source PBX and telephony toolkit
|
|
|
|
BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex \
|
|
newt.51:${PORTSDIR}/devel/newt
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
|
|
ONLY_FOR_ARCHS= i386 sparc64
|
|
|
|
BRIVER= bristuff-0.2.0-RC7j
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/editline
|
|
USE_GMAKE= yes
|
|
USE_BISON= yes
|
|
USE_RC_SUBR= asterisk.sh
|
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
MKDIR="${MKDIR}" \
|
|
PWLIBDIR=${WRKDIRPREFIX}${PORTSDIR}/devel/pwlib/work/pwlib \
|
|
OPENH323DIR=${WRKDIRPREFIX}${PORTSDIR}/net/openh323/work/openh323 \
|
|
OSVERSION=${OSVERSION} \
|
|
CXX="${CXX}"
|
|
|
|
MAN8= asterisk.8
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "i386"
|
|
WITHOUT_H323= 1
|
|
WITHOUT_ZAPTEL= 1
|
|
.endif
|
|
|
|
.if defined(WITHOUT_H323)
|
|
MAKE_ENV+= WITHOUT_H323=1
|
|
PLIST_SUB+= WITH_H323="@comment "
|
|
.else
|
|
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/pwlib:build \
|
|
${NONEXISTENT}:${PORTSDIR}/net/openh323:build
|
|
PLIST_SUB+= WITH_H323=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_ZAPTEL)
|
|
MAKE_ENV+= WITHOUT_ZAPTEL=1
|
|
PLIST_SUB+= WITH_ZAPTEL="@comment "
|
|
.else
|
|
LIB_DEPENDS+= pri.1:${PORTSDIR}/misc/libpri
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/zaptel.h:${PORTSDIR}/misc/zaptel
|
|
PLIST_SUB+= WITH_ZAPTEL=""
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql40-client
|
|
.endif
|
|
|
|
post-patch:
|
|
${CP} ${FILESDIR}/chan_oss.c ${WRKSRC}/channels
|
|
|
|
.include <bsd.port.post.mk>
|