Buildroot Archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/next] fdk-aac: refactor architecture dependency as a blind option
@ 2016-11-06 22:04 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2016-11-06 22:04 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=b60aca590b6ea9b1ef4400b986631548195e6d19
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

In preparation to the addition of a fdk-aac GStreamer plugin that will
have to select the fdk-aac package (and therefore inherits its
dependencies), this commits adds a BR2_PACKAGE_FDK_AAC_ARCH_SUPPORTS
blind option to avoid duplicating the architecture dependencies of
this package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/fdk-aac/Config.in | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/package/fdk-aac/Config.in b/package/fdk-aac/Config.in
index 9e18d22..f51c5ab 100644
--- a/package/fdk-aac/Config.in
+++ b/package/fdk-aac/Config.in
@@ -1,11 +1,14 @@
+# These are the architectures supported by FDK AAC
+config BR2_PACKAGE_FDK_AAC_ARCH_SUPPORTS
+	bool
+	default y if BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \
+		BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
+		BR2_powerpc || BR2_sh
+
 config BR2_PACKAGE_FDK_AAC
 	bool "fdk-aac"
+	depends on BR2_PACKAGE_FDK_AAC_ARCH_SUPPORTS
 	depends on BR2_INSTALL_LIBSTDCPP
-	# These are the architectures supported by FDK AAC
-	depends on BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \
-		   BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
-		   BR2_powerpc || BR2_sh
-
 	help
 	  The Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec")
 	  is software that implements the MPEG Advanced Audio Coding ("AAC")
@@ -14,7 +17,5 @@ config BR2_PACKAGE_FDK_AAC
 	  http://sourceforge.net/projects/opencore-amr/files/fdk-aac/
 
 comment "fdk-aac needs a toolchain w/ C++"
+	depends on BR2_PACKAGE_FDK_AAC_ARCH_SUPPORTS
 	depends on !BR2_INSTALL_LIBSTDCPP
-	depends on BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \
-		   BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
-		   BR2_powerpc || BR2_sh

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-06 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-06 22:04 [Buildroot] [git commit branch/next] fdk-aac: refactor architecture dependency as a blind option Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).