Description: integrate mp3 module with asterisk Also, remove original patch file to help detect later upstream changes. Author: Jonas Smedegaard Source: contrib/scripts/get_mp3_source.sh Forwarded: not-needed Last-Update: 2023-08-27 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Xmp3/interface.c +++ b/Xmp3/interface.c @@ -1,4 +1,5 @@ #define WRAP_LIBC_MALLOC +#define ASTMM_LIBC ASTMM_REDIRECT #include "asterisk.h" #include "asterisk/logger.h" --- a/contrib/scripts/get_mp3_source.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -e - -if [ -f addons/mp3/mpg123.h ]; then - echo "***" - echo "The MP3 source code appears to already be present and does not" - echo "need to be downloaded." - echo "***" - - # Manually patch interface.c if not done yet. - if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then - sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \ - addons/mp3/interface.c - fi - - exit 1 -fi - -svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@ - -# Manually patch interface.c if not done yet. -if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then - sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \ - addons/mp3/interface.c -fi - -exit 0