kumquat-buildroot/package/jpeg/jpeg.mk
Thomas Petazzoni 30c695ef01 jpeg: convert to a real package
jpeg is a virtual package, but since it is listed in the dependencies
of other packages, it should obey to all the normal make rules for
packages. Notably, the jpeg-show-depends target is mandatory for the
graph-depends script to work.

Instead to implement such a make target manually, make jpeg a normal
generic-package, except that it doesn't have any source.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-03-09 22:27:02 +01:00

25 lines
473 B
Makefile

#############################################################
#
# Virtual jpeg package
#
#############################################################
JPEG_SOURCE =
ifeq ($(BR2_PACKAGE_JPEG_TURBO),y)
JPEG_DEPENDENCIES += jpeg-turbo
endif
ifeq ($(BR2_PACKAGE_LIBJPEG),y)
JPEG_DEPENDENCIES += libjpeg
endif
ifeq ($(JPEG_DEPENDENCIES),)
define JPEG_CONFIGURE_CMDS
echo "No JPEG implementation defined. Configuration error"
exit 1
endef
endif
$(eval $(generic-package))