From: Yann E. MORIN Date: Sat, 5 Apr 2014 15:21:54 +0000 (+0200) Subject: package/jpeg: convert to the virtual-package infrastructure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e82185537209962a6d6283e2ea898eff8129271;p=buildroot.git package/jpeg: convert to the virtual-package infrastructure Since this package is implemented via a choice rather than the usual separate-package providers, we only need BR2_PACKAGE_HAS_JPEG to be always defined when the 'jpeg' package is selected. Signed-off-by: "Yann E. MORIN" Cc: Eric Le Bihan Cc: Thomas Petazzoni Cc: Thomas De Schampheleire Cc: Mike Zick Reviewed-by: Samuel Martin Signed-off-by: Thomas Petazzoni --- diff --git a/package/jpeg/Config.in b/package/jpeg/Config.in index b7cdfeb79a..3042d247f9 100644 --- a/package/jpeg/Config.in +++ b/package/jpeg/Config.in @@ -30,6 +30,9 @@ config BR2_PACKAGE_JPEG_TURBO endchoice +config BR2_PACKAGE_HAS_JPEG + def_bool y + config BR2_PACKAGE_PROVIDES_JPEG string default "libjpeg" if BR2_PACKAGE_LIBJPEG diff --git a/package/jpeg/jpeg.mk b/package/jpeg/jpeg.mk index 3695bc818d..2d56be6a7c 100644 --- a/package/jpeg/jpeg.mk +++ b/package/jpeg/jpeg.mk @@ -4,14 +4,4 @@ # ################################################################################ -JPEG_SOURCE = -JPEG_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_JPEG)) - -ifeq ($(JPEG_DEPENDENCIES),) -define JPEG_CONFIGURE_CMDS - echo "No JPEG implementation defined. Configuration error" - exit 1 -endef -endif - -$(eval $(generic-package)) +$(eval $(virtual-package))