For the underlying reasons, see previous patch, titled:
package/opengl/libegl: switch to package-defined providers
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
endchoice
+config BR2_PACKAGE_PROVIDES_JPEG
+ string
+ default "libjpeg" if BR2_PACKAGE_LIBJPEG
+ default "jpeg-turbo" if BR2_PACKAGE_JPEG_TURBO
+
endif
################################################################################
JPEG_SOURCE =
-
-ifeq ($(BR2_PACKAGE_JPEG_TURBO),y)
-JPEG_DEPENDENCIES += jpeg-turbo
-endif
-
-ifeq ($(BR2_PACKAGE_LIBJPEG),y)
-JPEG_DEPENDENCIES += libjpeg
-endif
+JPEG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_JPEG))
ifeq ($(JPEG_DEPENDENCIES),)
define JPEG_CONFIGURE_CMDS