asterisk-opus: update to git master as of 2021-11-01
authorAndre Heider <a.heider@gmail.com>
Mon, 18 Oct 2021 12:04:04 +0000 (14:04 +0200)
committerAndre Heider <a.heider@gmail.com>
Wed, 3 Nov 2021 03:36:05 +0000 (04:36 +0100)
Setting AST_MODULE_SELF_SYM is no longer required.

Update the Makefile patch for the new version, the functional changes are
the same except the added -Wall compiler flag.

Switch to AUTORELEASE while at it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
net/asterisk-opus/Makefile
net/asterisk-opus/patches/01-Makefile.patch

index 4d67b2082ebff7f514a867cf4a112826525894bd..90de6e15e398f6cf5b37f7b95313a988b9a6f214 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk-opus
-PKG_RELEASE:=1
+PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE_URL:=https://github.com/traud/asterisk-opus.git
-PKG_SOURCE_DATE:=2017-10-09
-PKG_SOURCE_VERSION:=83e1b458c77e0e287adeca494eeb79edb077b0ff
-PKG_MIRROR_HASH:=c71b859db7518cdafff1650e629c5901b290fe68f8af54ef1afd57bc9f15b122
+PKG_SOURCE_DATE:=2021-11-01
+PKG_SOURCE_VERSION:=20522fbcd3fdf6f0adb20602d096d14cd69055e8
+PKG_MIRROR_HASH:=e14dc42b0e5f4720e3f028e0b426f4e660bf315a103a015820ca3697e1fe9985
 PKG_SOURCE_PROTO:=git
 
 PKG_LICENSE:=GPL-2.0
@@ -23,7 +23,6 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
 include $(INCLUDE_DIR)/package.mk
 
 TARGET_CFLAGS += \
-       -DAST_MODULE_SELF_SYM=__internal_codec_opus_open_source_self \
        $(FPIC)
 
 define Package/asterisk-codec-opus
index 36d65944deb2d24b347802a1de9b701f38840e95..e7f34c46ed91f9dc540685c0aeda3bf3c370e213 100644 (file)
@@ -1,18 +1,21 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -3,17 +3,17 @@ exec_prefix=$(prefix)
- libdir=$(exec_prefix)/lib
+@@ -5,18 +5,18 @@ libdir=$(exec_prefix)/lib
+ # build with `make OPUSENC=0` to disable rewrite support using libopusenc
+ OPUSENC?=1
  
- CC=gcc
--CFLAGS=-pthread -g3 -O3 -D_FORTIFY_SOURCE=2 -fPIC
-+CFLAGS+=-pthread
+-CFLAGS=-pthread -D_FORTIFY_SOURCE=2 -fPIC
+-DEBUG=-g3
+-OPTIMIZE=-O3
++CFLAGS+=-Wall -pthread
++DEBUG=
++OPTIMIZE=
  CPPFLAGS=
  DEFS=
  INSTALL=/usr/bin/install -c
--LDFLAGS=-shared -pthread -Wl,--warn-common
-+LDFLAGS+=-shared -pthread -Wl,--warn-common
+-LDFLAGS=-pthread -Wl,--warn-common
++LDFLAGS+=-pthread -Wl,--warn-common
  LIBS=
- MKDIR_P=/bin/mkdir -p
  SHELL=/bin/sh
  
  ASTMODDIR=$(libdir)/asterisk/modules