libv4l: add optional sdl2_image dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 29 Jun 2018 19:52:47 +0000 (21:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 30 Jun 2018 16:19:31 +0000 (18:19 +0200)
The configure.ac script simply uses PKG_CHECK_MODULES(), so there is
not --enable/--disable option.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libv4l/libv4l.mk

index 11061306c7579ba934edcc0dd002ee3dc6171651..95a700b2d5b1166686f5f475a5d995200efc4de3 100644 (file)
@@ -73,6 +73,10 @@ else
 LIBV4L_CONF_OPTS += --disable-v4l-utils
 endif
 
+ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
+LIBV4L_DEPENDENCIES += sdl2_image
+endif
+
 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
 
 $(eval $(autotools-package))