mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
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" <yann.morin.1998@free.fr> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Mike Zick <minimod@morethan.org> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
10650a7125
commit
5e82185537
@ -30,6 +30,9 @@ config BR2_PACKAGE_JPEG_TURBO
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config BR2_PACKAGE_HAS_JPEG
|
||||||
|
def_bool y
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_JPEG
|
config BR2_PACKAGE_PROVIDES_JPEG
|
||||||
string
|
string
|
||||||
default "libjpeg" if BR2_PACKAGE_LIBJPEG
|
default "libjpeg" if BR2_PACKAGE_LIBJPEG
|
||||||
|
@ -4,14 +4,4 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
JPEG_SOURCE =
|
$(eval $(virtual-package))
|
||||||
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))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user