Skip to content

Instantly share code, notes, and snippets.

@ssinyagin
Last active October 2, 2022 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssinyagin/b27f4e41cc02f49d31a0 to your computer and use it in GitHub Desktop.
Save ssinyagin/b27f4e41cc02f49d31a0 to your computer and use it in GitHub Desktop.
FreeSWITCH patch for ARM architecture
diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh
index 7458934..c525bf7 100755
--- a/debian/bootstrap.sh
+++ b/debian/bootstrap.sh
@@ -298,7 +298,7 @@ Build-Depends:
# bootstrapping
automake (>= 1.9), autoconf, ${libtool_dep},
# core build
- dpkg-dev (>= 1.15.8.12), gcc (>= 4:4.4.5), g++ (>= 4:4.4.5),
+ dpkg-dev (>= 1.15.8.12), gcc-4.7, g++-4.7,
libc6-dev (>= 2.11.3), make (>= 3.81),
libpcre3-dev,
libedit-dev (>= 2.11),
diff --git a/debian/rules b/debian/rules
index d85cf4e..f4c92fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,8 @@ export DH_VERBOSE=1
export VERBOSE=1
export V=1
-FS_CC?=gcc
-FS_CXX?=g++
+FS_CC?=gcc-4.7
+FS_CXX?=g++-4.7
FS_CPPFLAGS?=-D_FORTIFY_SOURCE=2
FS_CFLAGS?=-g3 -O2 -fPIC -fstack-protector --param=ssp-buffer-size=4
FS_CXXFLAGS?=$(FS_CFLAGS)
diff --git a/debian/util.sh b/debian/util.sh
index a30e5bf..e7f6684 100755
--- a/debian/util.sh
+++ b/debian/util.sh
@@ -112,7 +112,7 @@ getlibs () {
getlib http://files.freeswitch.org/downloads/libs/freeradius-client-1.1.6.tar.gz
getlib http://files.freeswitch.org/downloads/libs/lame-3.98.4.tar.gz
getlib http://files.freeswitch.org/downloads/libs/libshout-2.2.2.tar.gz
- getlib http://files.freeswitch.org/downloads/libs/mpg123-1.13.2.tar.gz
+ getlib http://files.freeswitch.org/downloads/libs/mpg123-1.19.0.tar.gz
getlib http://files.freeswitch.org/downloads/libs/v8-3.24.14.tar.bz2
# cleanup mongo
(
diff --git a/freeswitch.spec b/freeswitch.spec
index 529253e..7475957 100644
--- a/freeswitch.spec
+++ b/freeswitch.spec
@@ -119,7 +119,7 @@ Source1: http://files.freeswitch.org/downloads/libs/celt-0.10.0.tar.gz
Source2: http://files.freeswitch.org/downloads/libs/flite-2.0.0-release.tar.bz2
Source3: http://files.freeswitch.org/downloads/libs/lame-3.98.4.tar.gz
Source4: http://files.freeswitch.org/downloads/libs/libshout-2.2.2.tar.gz
-Source5: http://files.freeswitch.org/downloads/libs/mpg123-1.13.2.tar.gz
+Source5: http://files.freeswitch.org/downloads/libs/mpg123-1.19.0.tar.gz
#Source6: http://files.freeswitch.org/downloads/libs/openldap-2.4.11.tar.gz
Source6: http://files.freeswitch.org/downloads/libs/pocketsphinx-0.8.tar.gz
Source7: http://files.freeswitch.org/downloads/libs/soundtouch-1.7.1.tar.gz
diff --git a/src/mod/formats/mod_shout/Makefile.am b/src/mod/formats/mod_shout/Makefile.am
index 20cbc04..71fff4c 100644
--- a/src/mod/formats/mod_shout/Makefile.am
+++ b/src/mod/formats/mod_shout/Makefile.am
@@ -3,7 +3,7 @@ MODNAME=mod_shout
LAME=lame-3.98.4
SHOUT=libshout-2.2.2
-MPG123=mpg123-1.13.2
+MPG123=mpg123-1.19.0
LAME_DIR=$(switch_srcdir)/libs/$(LAME)
SHOUT_DIR=$(switch_srcdir)/libs/$(SHOUT)
@ssinyagin
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment