Patch5: %{name}-histedit.patch
Patch6: x32.patch
Patch7: %{name}-ilbc.patch
-Patch8: bundled_pjproject_libs.patch
URL: http://www.asterisk.org/
BuildRequires: OSPToolkit-devel >= 4.0.0
%{?with_oss:BuildRequires: SDL-devel}
BuildRequires: alsa-lib-devel
BuildRequires: autoconf >= 2.60
BuildRequires: automake
-%if %{without system_pjproject} && %{with pjsip}
-BuildRequires: bcg729-devel >= 1.0.2
-%endif
# libbfd (used only for debug builds?)
#BuildRequires: binutils-devel
BuildRequires: bison >= 2
%patch5 -p1
%patch6 -p1
%patch7 -p1
-%patch8 -p1
%if %{with opus_vp8}
%if %{without system_pjproject} && %{with pjsip}
export EXTERNALS_CACHE_DIR="$PWD/externals"
+export PJPROJECT_CONFIGURE_OPTS="--disable-bcg729"
%endif
# be sure to invoke ./configure with our flags
+++ /dev/null
-diff -dur asterisk-15.2.2.orig/main/Makefile asterisk-15.2.2/main/Makefile
---- asterisk-15.2.2.orig/main/Makefile 2018-03-12 10:54:07.000000000 +0100
-+++ asterisk-15.2.2/main/Makefile 2018-03-12 11:20:07.000000000 +0100
-@@ -273,7 +273,7 @@
-
- $(ASTPJ_LIB).$(ASTPJ_SO_VERSION): _ASTLDFLAGS+=-Wl,-soname=$(ASTPJ_LIB).$(ASTPJ_SO_VERSION) $(PJ_LDFLAGS)
- $(ASTPJ_LIB).$(ASTPJ_SO_VERSION): _ASTCFLAGS+=-fPIC -DAST_MODULE=\"asteriskpj\" -DAST_NOT_MODULE $(PJ_CFLAGS)
--$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): LIBS+=$(PJPROJECT_LDLIBS) $(OPENSSL_LIB) $(UUID_LIB) -lm -lpthread $(RT_LIB)
-+$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): LIBS+=$(PJPROJECT_LDLIBS) -lbcg729 $(OPENSSL_LIB) $(UUID_LIB) -lm -lpthread $(RT_LIB)
- ifeq ($(GNU_LD),1)
- $(ASTPJ_LIB).$(ASTPJ_SO_VERSION): SO_SUPPRESS_SYMBOLS=-Wl,--version-script,libasteriskpj.exports,--warn-common
- endif