diff options
author | jnemeth <jnemeth@pkgsrc.org> | 2012-01-17 07:07:33 +0000 |
---|---|---|
committer | jnemeth <jnemeth@pkgsrc.org> | 2012-01-17 07:07:33 +0000 |
commit | b48731106efd41348cac68fe4092c16acd07ba03 (patch) | |
tree | cdfeff9f3d83a40e987e23f8ea8c864c68f3b2b9 | |
parent | ab61f7c3de191d1df4748513f687182ff3e09db3 (diff) | |
download | pkgsrc-b48731106efd41348cac68fe4092c16acd07ba03.tar.gz |
PR/35369 -- David Wetzel -- add support for speex codec (enabled by default)
-rw-r--r-- | comms/asterisk10/Makefile | 3 | ||||
-rw-r--r-- | comms/asterisk10/PLIST | 4 | ||||
-rw-r--r-- | comms/asterisk10/options.mk | 17 |
3 files changed, 19 insertions, 5 deletions
diff --git a/comms/asterisk10/Makefile b/comms/asterisk10/Makefile index 39663ffb959..79cd6122f9e 100644 --- a/comms/asterisk10/Makefile +++ b/comms/asterisk10/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.1.1.1 2012/01/15 18:36:18 jnemeth Exp $ +# $NetBSD: Makefile,v 1.2 2012/01/17 07:07:33 jnemeth Exp $ # # NOTE: when updating this package, there are two places that sound # tarballs need to be checked DISTNAME= asterisk-10.0.0 +PKGREVISION= 1 DIST_SUBDIR= ${PKGNAME_NOREV} DISTFILES= ${DEFAULT_DISTFILES} EXTRACT_ONLY= ${DISTNAME}.tar.gz diff --git a/comms/asterisk10/PLIST b/comms/asterisk10/PLIST index 9fc12308cbb..bf85b07069d 100644 --- a/comms/asterisk10/PLIST +++ b/comms/asterisk10/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/15 18:36:20 jnemeth Exp $ +@comment $NetBSD: PLIST,v 1.2 2012/01/17 07:07:33 jnemeth Exp $ include/asterisk.h include/asterisk/_private.h include/asterisk/abstract_jb.h @@ -241,6 +241,7 @@ lib/asterisk/modules/codec_gsm.so ${PLIST.ilbc}lib/asterisk/modules/codec_ilbc.so lib/asterisk/modules/codec_lpc10.so lib/asterisk/modules/codec_resample.so +${PLIST.speex}lib/asterisk/modules/codec_speex.so lib/asterisk/modules/codec_ulaw.so lib/asterisk/modules/format_g719.so lib/asterisk/modules/format_g723.so @@ -292,6 +293,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_srv.so lib/asterisk/modules/func_strings.so diff --git a/comms/asterisk10/options.mk b/comms/asterisk10/options.mk index 9277c4edd2a..36f0d3f76f2 100644 --- a/comms/asterisk10/options.mk +++ b/comms/asterisk10/options.mk @@ -1,14 +1,15 @@ -# $NetBSD: options.mk,v 1.1.1.1 2012/01/15 18:36:21 jnemeth Exp $ +# $NetBSD: options.mk,v 1.2 2012/01/17 07:07:33 jnemeth Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap spandsp -PKG_SUPPORTED_OPTIONS+= jabber +PKG_SUPPORTED_OPTIONS+= jabber speex PKG_OPTIONS_LEGACY_OPTS+= gtk:x11 -PKG_SUGGESTED_OPTIONS= ldap jabber +PKG_SUGGESTED_OPTIONS= ldap jabber speex .include "../../mk/bsd.options.mk" PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap spandsp jabber +PLIST_VARS+= speex # Asterisk now uses DAHDI, not zaptel; not implemented yet... #.if !empty(PKG_OPTIONS:Mzaptel) @@ -108,3 +109,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 |