package/kodi: Rework audio encoder support

Make option BR2_PACKAGE_KODI_OPTICALDRIVE invisible, it is only
needed when an audio encoder addon is enabled.

Add Kconfig submenu for audio encoders to prepare for addition of
more binary addons.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2015-07-22 22:30:28 +02:00 committed by Thomas Petazzoni
parent 0818a6551f
commit 81c438aa20
5 changed files with 11 additions and 13 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_KODI_AUDIOENCODER_FLAC
bool "kodi-audioencoder-flac"
select BR2_PACKAGE_FLAC
select BR2_PACKAGE_KODI_OPTICALDRIVE
select BR2_PACKAGE_LIBOGG
help
An audioencoder addon for Kodi

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_KODI_AUDIOENCODER_LAME
bool "kodi-audioencoder-lame"
select BR2_PACKAGE_KODI_OPTICALDRIVE
select BR2_PACKAGE_LAME
help
An audioencoder addon for Kodi

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_KODI_AUDIOENCODER_VORBIS
bool "kodi-audioencoder-vorbis"
select BR2_PACKAGE_KODI_OPTICALDRIVE
select BR2_PACKAGE_LIBOGG
select BR2_PACKAGE_LIBVORBIS
help

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_KODI_AUDIOENCODER_WAV
bool "kodi-audioencoder-wav"
select BR2_PACKAGE_KODI_OPTICALDRIVE
help
An audioencoder addon for Kodi

View File

@ -245,20 +245,14 @@ config BR2_PACKAGE_KODI_WAVPACK
Select this if you want to play back WV files.
config BR2_PACKAGE_KODI_OPTICALDRIVE
bool "optical drive"
help
Enable support for optical drives
bool
if BR2_PACKAGE_KODI_OPTICALDRIVE
comment "Kodi audioencoder addons"
source "package/kodi-audioencoder-flac/Config.in"
source "package/kodi-audioencoder-lame/Config.in"
source "package/kodi-audioencoder-vorbis/Config.in"
source "package/kodi-audioencoder-wav/Config.in"
endif # BR2_PACKAGE_KODI_OPTICALDRIVE
menu "Audio encoder addons"
source "package/kodi-audioencoder-flac/Config.in"
source "package/kodi-audioencoder-lame/Config.in"
source "package/kodi-audioencoder-vorbis/Config.in"
source "package/kodi-audioencoder-wav/Config.in"
endmenu
comment "Kodi PVR addons"