Description: integrate opus module with asterisk build routines Original patch adapted by Jonas Smedegaard to fit Debian packaging, and to remove original patch file to help detect later upstream changes. Author: Sean Bright Author: Alexander Traud Author: Jonas Smedegaard Source: https://github.com/traud/asterisk-opus/blob/asterisk-13.7/asterisk.patch Forwarded: not-needed Last-Update: 2023-08-27 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/build_tools/menuselect-deps.in +++ b/build_tools/menuselect-deps.in @@ -44,6 +44,7 @@ NEON29=@PBX_NEON29@ OGG=@PBX_OGG@ OPUS=@PBX_OPUS@ +OPUSENC=@PBX_OPUSENC@ OPUSFILE=@PBX_OPUSFILE@ PGSQL=@PBX_PGSQL@ PJPROJECT=@PBX_PJPROJECT@ --- a/configure.ac +++ b/configure.ac @@ -598,6 +598,7 @@ AST_EXT_LIB_SETUP([OGG], [OGG], [ogg]) AST_EXT_LIB_SETUP([OPENR2], [MFR2], [openr2]) AST_EXT_LIB_SETUP([OPUS], [Opus], [opus]) +AST_EXT_LIB_SETUP([OPUSENC], [Opusenc], [opusenc]) AST_EXT_LIB_SETUP([OPUSFILE], [Opusfile], [opusfile]) AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres]) AST_EXT_LIB_SETUP([BEANSTALK], [Beanstalk Job Queue], [beanstalk]) @@ -2644,6 +2645,7 @@ if test -z "$__opus_include" -o x"$__opus_include" = x" " ; then __opus_include=-I/usr/include/opus fi +AST_PKG_CONFIG_CHECK(OPUSENC, libopusenc) AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include]) for ver in ${LUA_VERSIONS:-5.4 5.3 5.2 5.1}; do --- a/makeopts.in +++ b/makeopts.in @@ -230,6 +230,9 @@ OPUS_INCLUDE=@OPUS_INCLUDE@ OPUS_LIB=@OPUS_LIB@ +OPUSENC_INCLUDE=@OPUSENC_INCLUDE@ +OPUSENC_LIB=@OPUSENC_LIB@ + OPUSFILE_INCLUDE=@OPUSFILE_INCLUDE@ OPUSFILE_LIB=@OPUSFILE_LIB@ --- a/formats/Makefile +++ b/formats/Makefile @@ -11,6 +11,8 @@ -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps +_ASTCFLAGS+=-DASTERISK_VERSION_NUM=${ASTERISKVERSIONNUM} + MODULE_PREFIX=format MENUSELECT_CATEGORY=FORMATS MENUSELECT_DESCRIPTION=Format Interpreters --- a/Xopus/asterisk.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/build_tools/menuselect-deps.in -+++ b/build_tools/menuselect-deps.in -@@ -44,2 +44,3 @@ - OPUS=@PBX_OPUS@ -+OPUSENC=@PBX_OPUSENC@ - OPUSFILE=@PBX_OPUSFILE@ ---- a/configure.ac -+++ b/configure.ac -@@ -523,2 +523,3 @@ - AST_EXT_LIB_SETUP([OPUS], [Opus], [opus]) -+AST_EXT_LIB_SETUP([OPUSENC], [Opusenc], [opusenc]) - AST_EXT_LIB_SETUP([OPUSFILE], [Opusfile], [opusfile]) -@@ -2524,2 +2525,3 @@ - fi -+AST_PKG_CONFIG_CHECK(OPUSENC, libopusenc) - AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include]) ---- a/makeopts.in -+++ b/makeopts.in -@@ -228,6 +228,9 @@ - OPUS_INCLUDE=@OPUS_INCLUDE@ - OPUS_LIB=@OPUS_LIB@ - -+OPUSENC_INCLUDE=@OPUSENC_INCLUDE@ -+OPUSENC_LIB=@OPUSENC_LIB@ -+ - OPUSFILE_INCLUDE=@OPUSFILE_INCLUDE@ - OPUSFILE_LIB=@OPUSFILE_LIB@ - ---- formats/Makefile -+++ formats/Makefile -@@ -12,4 +12,6 @@ - -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps - -+_ASTCFLAGS+=-DASTERISK_VERSION_NUM=${ASTERISKVERSIONNUM} -+ - MODULE_PREFIX=format - MENUSELECT_CATEGORY=FORMATS