summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2012-01-17 02:12:52 +0000
committerjnemeth <jnemeth@pkgsrc.org>2012-01-17 02:12:52 +0000
commit9d0816f809bb81193f07773976fdd9cd5ff77005 (patch)
tree859e149998f936ac29dcd70f6179c8e51ed69f74 /comms
parenteca50e67eec7872c0593b8b22d6819817b6c59ed (diff)
downloadpkgsrc-9d0816f809bb81193f07773976fdd9cd5ff77005.tar.gz
PR/35369 -- David Wetzel -- add support for speex codec (enabled by default)
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk16/Makefile3
-rw-r--r--comms/asterisk16/PLIST4
-rw-r--r--comms/asterisk16/options.mk18
3 files changed, 19 insertions, 6 deletions
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile
index 0b54a3417c5..0c05f2add22 100644
--- a/comms/asterisk16/Makefile
+++ b/comms/asterisk16/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.36 2012/01/14 08:30:15 jnemeth Exp $
+# $NetBSD: Makefile,v 1.37 2012/01/17 02:12:52 jnemeth Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked
DISTNAME= asterisk-1.6.2.22
+PKGREVISION= 1
DIST_SUBDIR= ${PKGNAME_NOREV}
DISTFILES= ${DEFAULT_DISTFILES}
EXTRACT_ONLY= ${DISTNAME}.tar.gz
diff --git a/comms/asterisk16/PLIST b/comms/asterisk16/PLIST
index b471f71a7fd..4866e437f31 100644
--- a/comms/asterisk16/PLIST
+++ b/comms/asterisk16/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2011/12/05 04:18:32 jnemeth Exp $
+@comment $NetBSD: PLIST,v 1.20 2012/01/17 02:12:52 jnemeth Exp $
include/asterisk.h
include/asterisk/_private.h
include/asterisk/abstract_jb.h
@@ -205,6 +205,7 @@ lib/asterisk/modules/codec_g726.so
lib/asterisk/modules/codec_gsm.so
${PLIST.ilbc}lib/asterisk/modules/codec_ilbc.so
lib/asterisk/modules/codec_lpc10.so
+${PLIST.speex}lib/asterisk/modules/codec_speex.so
lib/asterisk/modules/codec_ulaw.so
lib/asterisk/modules/format_g723.so
lib/asterisk/modules/format_g726.so
@@ -252,6 +253,7 @@ lib/asterisk/modules/func_rand.so
lib/asterisk/modules/func_realtime.so
lib/asterisk/modules/func_sha1.so
lib/asterisk/modules/func_shell.so
+${PLIST.speex}lib/asterisk/modules/func_speex.so
lib/asterisk/modules/func_sprintf.so
lib/asterisk/modules/func_strings.so
lib/asterisk/modules/func_sysinfo.so
diff --git a/comms/asterisk16/options.mk b/comms/asterisk16/options.mk
index 8978a898193..cfeb9ea27d0 100644
--- a/comms/asterisk16/options.mk
+++ b/comms/asterisk16/options.mk
@@ -1,13 +1,13 @@
-# $NetBSD: options.mk,v 1.12 2011/12/12 05:05:34 jnemeth Exp $
+# $NetBSD: options.mk,v 1.13 2012/01/17 02:12:52 jnemeth Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk
-PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap
+PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap speex
PKG_OPTIONS_LEGACY_OPTS+= gtk:x11
-PKG_SUGGESTED_OPTIONS= ldap
+PKG_SUGGESTED_OPTIONS= ldap speex
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap
+PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap speex
# Asterisk now uses DAHDI, not zaptel; not implemented yet...
#.if !empty(PKG_OPTIONS:Mzaptel)
@@ -95,3 +95,13 @@ PLIST.ldap= yes
.else
CONFIGURE_ARGS+= --without-ldap
.endif
+
+.if !empty(PKG_OPTIONS:Mspeex)
+.include "../../audio/speex/buildlink3.mk"
+CONFIGURE_ARGS+= --with-speex
+CONFIGURE_ARGS+= --with-speexdsp
+PLIST.speex= yes
+.else
+CONFIGURE_ARGS+= --without-speex
+CONFIGURE_ARGS+= --without-speexdsp
+.endif