diff options
author | jnemeth <jnemeth> | 2012-01-17 02:12:52 +0000 |
---|---|---|
committer | jnemeth <jnemeth> | 2012-01-17 02:12:52 +0000 |
commit | 9d5e6a4c6812744558cdd7019c01f669f502a644 (patch) | |
tree | 859e149998f936ac29dcd70f6179c8e51ed69f74 /comms/asterisk16 | |
parent | 42902bd618c7393f9d5d5ddb2c6d39d4e557b039 (diff) | |
download | pkgsrc-9d5e6a4c6812744558cdd7019c01f669f502a644.tar.gz |
PR/35369 -- David Wetzel -- add support for speex codec (enabled by default)
Diffstat (limited to 'comms/asterisk16')
-rw-r--r-- | comms/asterisk16/Makefile | 3 | ||||
-rw-r--r-- | comms/asterisk16/PLIST | 4 | ||||
-rw-r--r-- | comms/asterisk16/options.mk | 18 |
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 |