From e41e27d1fae159028d2abf27db9ad941d622a952 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com>
Date: Fri, 30 Nov 2018 09:47:57 +1100
Subject: sdl2_mixer: enable opusfile support

fixes #2246
---
 src/sdl2_mixer.mk | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/sdl2_mixer.mk b/src/sdl2_mixer.mk
index 6e62866..b47fb43 100644
--- a/src/sdl2_mixer.mk
+++ b/src/sdl2_mixer.mk
@@ -9,7 +9,7 @@ $(PKG)_CHECKSUM := b4cf5a382c061cd75081cf246c2aa2f9df8db04bdda8dcdc6b6cca55bede2
 $(PKG)_SUBDIR   := SDL2_mixer-$($(PKG)_VERSION)
 $(PKG)_FILE     := SDL2_mixer-$($(PKG)_VERSION).tar.gz
 $(PKG)_URL      := https://www.libsdl.org/projects/SDL_mixer/release/$($(PKG)_FILE)
-$(PKG)_DEPS     := cc libmodplug mpg123 ogg sdl2 smpeg2 vorbis
+$(PKG)_DEPS     := cc libmodplug mpg123 ogg opusfile sdl2 smpeg2 vorbis
 
 define $(PKG)_UPDATE
     $(WGET) -q -O- 'https://hg.libsdl.org/SDL_mixer/tags' | \
@@ -18,7 +18,7 @@ define $(PKG)_UPDATE
 endef
 
 define $(PKG)_BUILD
-    $(SED) -i 's,^\(Requires:.*\),\1 vorbisfile,' '$(1)/SDL2_mixer.pc.in'
+    $(SED) -i 's,^\(Requires:.*\),\1 opusfile vorbisfile,' '$(1)/SDL2_mixer.pc.in'
     echo \
         'Libs.private:' \
         "`$(TARGET)-pkg-config libmodplug libmpg123 --libs`" \
@@ -47,5 +47,3 @@ define $(PKG)_BUILD
         '$(TOP_DIR)/src/sdl_mixer-test.c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl2_mixer.exe' \
         `'$(TARGET)-pkg-config' SDL2_mixer --cflags --libs`
 endef
-
-
-- 
cgit v0.12