You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwebp
  3. PKG_VERSION:=1.0.3
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
  7. PKG_HASH:=e20a07865c8697bba00aebccc6f54912d6bc333bb4d604e6b07491c1a226b34f
  8. PKG_MAINTAINER:=
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libwebp
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=WebP library
  18. URL:=https://www.webmproject.org
  19. endef
  20. define Package/libwebp/description
  21. The libwebp package contains a library for the WebP format.
  22. endef
  23. CONFIGURE_ARGS += \
  24. --enable-shared \
  25. --disable-static \
  26. --disable-neon-rtcd \
  27. --disable-gl \
  28. --disable-sdl \
  29. --disable-gif \
  30. --disable-jpeg \
  31. --disable-png \
  32. --disable-tiff \
  33. --disable-wic \
  34. --disable-libwebpmux \
  35. --disable-libwebpdemux \
  36. --disable-libwebpdecoder \
  37. --disable-libwebpextras \
  38. --without-pic
  39. TARGET_CFLAGS += $(FPIC) -flto
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include/webp
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/webp/* $(1)/usr/include/webp/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libwebp.pc $(1)/usr/lib/pkgconfig/
  47. endef
  48. define Package/libwebp/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp.s* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,libwebp))