################################################################################
################################################################################
FBV_SITE = http://s-tech.elsat.net.pl/fbv
FBV_LICENSE_FILES = COPYING
### image format dependencies and configure options
FBV_DEPENDENCIES = # empty
FBV_CONFIGURE_OPTS = # empty
ifeq ($(BR2_PACKAGE_FBV_PNG),y)
FBV_DEPENDENCIES += libpng
# libpng in turn depends on other libraries
ifeq ($(BR2_STATIC_LIBS),y)
FBV_CONFIGURE_OPTS += "--libs=`$(PKG_CONFIG_HOST_BINARY) --libs libpng`"
FBV_CONFIGURE_OPTS += --without-libpng
ifeq ($(BR2_PACKAGE_FBV_JPEG),y)
FBV_CONFIGURE_OPTS += --without-libjpeg
ifeq ($(BR2_PACKAGE_FBV_GIF),y)
FBV_DEPENDENCIES += giflib
FBV_CONFIGURE_OPTS += --without-libungif
#fbv doesn't support cross-compilation
define FBV_CONFIGURE_CMDS
(cd $(FBV_DIR); rm -f config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
define FBV_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/fbv $(TARGET_DIR)/usr/bin/fbv
$(eval $(autotools-package))