From: Romain Naour Date: Sun, 5 Jan 2020 11:32:01 +0000 (+0100) Subject: package/alure: add opus decoder option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a32fd8dba0a318f971074ba61b8ff60fae3ff6d6;p=buildroot.git package/alure: add opus decoder option The opus option is available only when libogg is detected by the build system. Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- diff --git a/package/alure/Config.in b/package/alure/Config.in index df86ff2a92..7947e30a1f 100644 --- a/package/alure/Config.in +++ b/package/alure/Config.in @@ -23,6 +23,13 @@ config BR2_PACKAGE_ALURE_FLAC_DECODER help Enables the built-in FLAC decoder. +config BR2_PACKAGE_ALURE_OPUS_DECODER + bool "opus decoder" + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_OPUS + help + Enables the built-in libopusfile decoder. + endif comment "alure needs a toolchain w/ C++, gcc >= 4.9, NPTL, wchar" diff --git a/package/alure/alure.mk b/package/alure/alure.mk index afcc333683..8d01282ccf 100644 --- a/package/alure/alure.mk +++ b/package/alure/alure.mk @@ -17,7 +17,6 @@ ALURE_DEPENDENCIES = openal ALURE_CONF_OPTS = -DALURE_INSTALL=ON \ -DALURE_BUILD_EXAMPLES=OFF \ -DALURE_ENABLE_MINIMP3=OFF \ - -DALURE_ENABLE_OPUS=OFF \ -DALURE_ENABLE_SNDFILE=OFF \ -DALURE_ENABLE_VORBIS=OFF \ -DALURE_ENABLE_WAVE=ON @@ -28,6 +27,13 @@ else ALURE_CONF_OPTS += -DALURE_ENABLE_FLAC=OFF endif +ifeq ($(BR2_PACKAGE_ALURE_OPUS_DECODER),y) +ALURE_CONF_OPTS += -DALURE_ENABLE_OPUS=ON +ALURE_DEPENDENCIES += libogg opus +else +ALURE_CONF_OPTS += -DALURE_ENABLE_OPUS=OFF +endif + ifeq ($(BR2_STATIC_LIBS),y) ALURE_CONF_OPTS += -DALURE_BUILD_SHARED=OFF \ -DALURE_BUILD_STATIC=ON