Patchwork opus-tools: disable flac when it is not selected

login
register
mail settings
Submitter Gustavo Zacarias
Date Sept. 10, 2013, 6:07 p.m.
Message ID <1378836465-25626-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/273973/
State Accepted
Commit 685e50f5171eea2ad560523ff31d38ff6e3c0376
Headers show

Comments

Gustavo Zacarias - Sept. 10, 2013, 6:07 p.m.
opus-tools expects flac since the 0.1.7 bump unless otherwise told so.
Disable it when it's not selected. Fixes:
http://autobuild.buildroot.net/results/c8c/c8c1a682336c150ee401f76b173944611b96bd4e/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/opus-tools/opus-tools.mk | 6 ++++++
 1 file changed, 6 insertions(+)
Peter Korsgaard - Sept. 10, 2013, 7:50 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> opus-tools expects flac since the 0.1.7 bump unless otherwise told so.
 Gustavo> Disable it when it's not selected. Fixes:
 Gustavo> http://autobuild.buildroot.net/results/c8c/c8c1a682336c150ee401f76b173944611b96bd4e/

Committed, thanks.

Patch

diff --git a/package/opus-tools/opus-tools.mk b/package/opus-tools/opus-tools.mk
index bb11a19..f4dee74 100644
--- a/package/opus-tools/opus-tools.mk
+++ b/package/opus-tools/opus-tools.mk
@@ -19,4 +19,10 @@  else
 OPUS_TOOLS_CONF_OPT += --disable-sse
 endif
 
+ifeq ($(BR2_PACKAGE_FLAC),y)
+OPUS_TOOLS_DEPENDENCIES += flac
+else
+OPUS_TOOLS_CONF_OPT += --without-flac
+endif
+
 $(eval $(autotools-package))