| 1 | Description: integrate mp3 module with asterisk |
| 2 | Also, remove original patch file to help detect later upstream changes. |
| 3 | Author: Jonas Smedegaard <[email protected]> |
| 4 | Source: contrib/scripts/get_mp3_source.sh |
| 5 | Forwarded: not-needed |
| 6 | Last-Update: 2023-08-27 |
| 7 | --- |
| 8 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 9 | --- a/Xmp3/interface.c |
| 10 | +++ b/Xmp3/interface.c |
| 11 | @@ -1,4 +1,5 @@ |
| 12 | #define WRAP_LIBC_MALLOC |
| 13 | +#define ASTMM_LIBC ASTMM_REDIRECT |
| 14 | #include "asterisk.h" |
| 15 | #include "asterisk/logger.h" |
| 16 | |
| 17 | --- a/contrib/scripts/get_mp3_source.sh |
| 18 | +++ /dev/null |
| 19 | @@ -1,26 +0,0 @@ |
| 20 | -#!/bin/sh -e |
| 21 | - |
| 22 | -if [ -f addons/mp3/mpg123.h ]; then |
| 23 | - echo "***" |
| 24 | - echo "The MP3 source code appears to already be present and does not" |
| 25 | - echo "need to be downloaded." |
| 26 | - echo "***" |
| 27 | - |
| 28 | - # Manually patch interface.c if not done yet. |
| 29 | - if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then |
| 30 | - sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \ |
| 31 | - addons/mp3/interface.c |
| 32 | - fi |
| 33 | - |
| 34 | - exit 1 |
| 35 | -fi |
| 36 | - |
| 37 | -svn export https://svn.digium.com/svn/thirdparty/mp3/trunk addons/mp3 $@ |
| 38 | - |
| 39 | -# Manually patch interface.c if not done yet. |
| 40 | -if ! grep -q ASTMM_LIBC addons/mp3/interface.c; then |
| 41 | - sed -i -e '/#include "asterisk.h"/i#define ASTMM_LIBC ASTMM_REDIRECT' \ |
| 42 | - addons/mp3/interface.c |
| 43 | -fi |
| 44 | - |
| 45 | -exit 0 |