forked from seanbright/asterisk-opus
-
Notifications
You must be signed in to change notification settings - Fork 22
/
asterisk.patch
37 lines (34 loc) · 1 KB
/
asterisk.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/build_tools/menuselect-deps.in
+++ b/build_tools/menuselect-deps.in
@@ -44,2 +44,3 @@
OPUS=@PBX_OPUS@
+OPUSENC=@PBX_OPUSENC@
OPUSFILE=@PBX_OPUSFILE@
--- a/configure.ac
+++ b/configure.ac
@@ -523,2 +523,3 @@
AST_EXT_LIB_SETUP([OPUS], [Opus], [opus])
+AST_EXT_LIB_SETUP([OPUSENC], [Opusenc], [opusenc])
AST_EXT_LIB_SETUP([OPUSFILE], [Opusfile], [opusfile])
@@ -2524,2 +2525,3 @@
fi
+AST_PKG_CONFIG_CHECK(OPUSENC, libopusenc)
AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include])
--- a/makeopts.in
+++ b/makeopts.in
@@ -228,6 +228,9 @@
OPUS_INCLUDE=@OPUS_INCLUDE@
OPUS_LIB=@OPUS_LIB@
+OPUSENC_INCLUDE=@OPUSENC_INCLUDE@
+OPUSENC_LIB=@OPUSENC_LIB@
+
OPUSFILE_INCLUDE=@OPUSFILE_INCLUDE@
OPUSFILE_LIB=@OPUSFILE_LIB@
--- formats/Makefile
+++ formats/Makefile
@@ -12,4 +12,6 @@
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
+_ASTCFLAGS+=-DASTERISK_VERSION_NUM=${ASTERISKVERSIONNUM}
+
MODULE_PREFIX=format
MENUSELECT_CATEGORY=FORMATS