Fix dependencies when selecting drivers/modules
authorFlorian Fainelli <florian@openwrt.org>
Sun, 1 Jun 2008 21:02:58 +0000 (21:02 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 1 Jun 2008 21:02:58 +0000 (21:02 +0000)
SVN-Revision: 11322

utils/lcd4linux/Makefile

index 4c435d3..cf2b3fd 100644 (file)
@@ -122,6 +122,22 @@ LCD4LINUX_CONFIGURE_PLUGINS:= \
            $(if $(CONFIG_LCD4LINUX_PLUGIN_$(c)),$(c),) \
        )
 
+ifneq ($(CONFIG_LCD4LINUX_DRV_PNG),)
+PKG_BUILD_DEPENDS += libgd
+endif
+
+ifneq ($(CONFIG_LCD4LINUX_DRV_PPM),)
+PKG_BUILD_DEPENDS += libgd
+endif
+
+ifneq ($(CONFIG_LCD4LINUX_DRV_st2205),)
+PKG_BUILD_DEPENDS += st2205tool
+endif
+
+ifneq ($(CONFIG_LCD4LINUX_PLUGIN_gps),)
+PKG_BUILD_DEPENDS += libnmeap
+endif
+
 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib/libiconv/include
 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib