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.

51 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwebp
  3. PKG_VERSION:=1.1.0
  4. PKG_RELEASE:=1
  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:=98a052268cc4d5ece27f76572a7f50293f439c17a98e67c4ea0c7ed6f50ef043
  8. PKG_MAINTAINER:=
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING
  11. CMAKE_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/libwebp
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=WebP library
  19. URL:=https://www.webmproject.org
  20. endef
  21. define Package/libwebp/description
  22. The libwebp package contains a library for the WebP format.
  23. endef
  24. CMAKE_OPTIONS += \
  25. -DBUILD_SHARED_LIBS=ON \
  26. -DWEBP_BUILD_ANIM_UTILS=OFF \
  27. -DWEBP_BUILD_CWEBP=OFF \
  28. -DWEBP_BUILD_DWEBP=OFF \
  29. -DWEBP_BUILD_GIF2WEBP=OFF \
  30. -DWEBP_BUILD_IMG2WEBP=OFF \
  31. -DWEBP_BUILD_VWEBP=OFF \
  32. -DWEBP_BUILD_WEBPINFO=OFF \
  33. -DWEBP_BUILD_WEBPMUX=OFF \
  34. -DWEBP_BUILD_EXTRAS=OFF
  35. TARGET_CFLAGS += -flto
  36. define Package/libwebp/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp.s* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libwebp))