asterisk-opus: enable format_ogg_opus_open_source
[feed/telephony.git] / net / asterisk-opus / patches / 01-Makefile.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -5,18 +5,18 @@ libdir=$(exec_prefix)/lib
4 # build with `make OPUSENC=0` to disable rewrite support using libopusenc
5 OPUSENC?=1
6
7 -CFLAGS=-pthread -D_FORTIFY_SOURCE=2 -fPIC
8 -DEBUG=-g3
9 -OPTIMIZE=-O3
10 +CFLAGS+=-Wall -pthread
11 +DEBUG=
12 +OPTIMIZE=
13 CPPFLAGS=
14 DEFS=
15 INSTALL=/usr/bin/install -c
16 -LDFLAGS=-pthread -Wl,--warn-common
17 +LDFLAGS+=-pthread -Wl,--warn-common
18 LIBS=
19 SHELL=/bin/sh
20
21 ASTMODDIR=$(libdir)/asterisk/modules
22 -MODULES=codec_opus_open_source format_ogg_opus_open_source format_vp8 res_format_attr_opus
23 +MODULES=codec_opus_open_source format_ogg_opus_open_source
24
25 .SUFFIXES: .c .so
26
27 @@ -38,7 +38,7 @@ codec_opus_open_source: DEFS+=-DAST_MODU
28 -DAST_MODULE_SELF_SYM=__internal_codec_opus_open_source_self
29 codec_opus_open_source: codecs/codec_opus_open_source.so
30
31 -format_ogg_opus_open_source: CPATH+=-I/usr/include/opus
32 +format_ogg_opus_open_source: CPATH+=-I$(STAGING_DIR)/usr/include/opus
33 format_ogg_opus_open_source: LIBS+=-lopus -lopusfile
34 format_ogg_opus_open_source: DEFS+=-DAST_MODULE=\"format_ogg_opus_open_source\" \
35 -DAST_MODULE_SELF_SYM=__internal_format_ogg_opus_open_source_self