webp.mk 1.9 KB

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