1################################################################################ 2# 3# webp 4# 5################################################################################ 6 7WEBP_VERSION = 1.2.1 8WEBP_SOURCE = libwebp-$(WEBP_VERSION).tar.gz 9WEBP_SITE = http://downloads.webmproject.org/releases/webp 10WEBP_LICENSE = BSD-3-Clause 11WEBP_LICENSE_FILES = COPYING 12WEBP_CPE_ID_VENDOR = webmproject 13WEBP_CPE_ID_PRODUCT = libwebp 14WEBP_INSTALL_STAGING = YES 15 16WEBP_CONF_OPTS += \ 17 --with-jpegincludedir=$(STAGING_DIR)/usr/include \ 18 --with-jpeglibdir=$(STAGING_DIR)/usr/lib \ 19 --with-tiffincludedir=$(STAGING_DIR)/usr/include \ 20 --with-tifflibdir=$(STAGING_DIR)/usr/lib 21 22HOST_WEBP_CONF_OPTS += --enable-libwebpdemux --enable-libwebpmux 23 24ifeq ($(BR2_PACKAGE_WEBP_DEMUX),y) 25WEBP_CONF_OPTS += --enable-libwebpdemux 26else 27WEBP_CONF_OPTS += --disable-libwebpdemux 28endif 29 30ifeq ($(BR2_PACKAGE_WEBP_MUX),y) 31WEBP_CONF_OPTS += --enable-libwebpmux 32else 33WEBP_CONF_OPTS += --disable-libwebpmux 34endif 35 36ifeq ($(BR2_PACKAGE_GIFLIB),y) 37WEBP_DEPENDENCIES += giflib 38WEBP_CONF_OPTS += --enable-gif 39else 40WEBP_CONF_OPTS += --disable-gif 41endif 42 43ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y) 44WEBP_DEPENDENCIES += libfreeglut 45WEBP_CONF_OPTS += --enable-gl 46else 47WEBP_CONF_OPTS += --disable-gl 48endif 49 50ifeq ($(BR2_PACKAGE_LIBPNG),y) 51WEBP_DEPENDENCIES += libpng 52WEBP_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config 53else 54WEBP_CONF_ENV += ac_cv_path_LIBPNG_CONFIG=/bin/false 55endif 56 57WEBP_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg) 58WEBP_DEPENDENCIES += $(if $(BR2_PACKAGE_TIFF),tiff) 59 60$(eval $(autotools-package)) 61$(eval $(host-autotools-package)) 62