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.

56 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwebp
  3. PKG_VERSION:=1.2.0
  4. PKG_RELEASE:=$(AUTORELEASE)
  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:=2fc8bbde9f97f2ab403c0224fb9ca62b2e6852cbc519e91ceaa7c153ffd88a0c
  8. PKG_MAINTAINER:=
  9. PKG_LICENSE:=BSD-3-Clause
  10. PKG_LICENSE_FILES:=COPYING
  11. CMAKE_INSTALL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. include ../../devel/ninja/ninja-cmake.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. CMAKE_OPTIONS += \
  24. -DBUILD_SHARED_LIBS=ON \
  25. -DWEBP_BUILD_ANIM_UTILS=OFF \
  26. -DWEBP_BUILD_CWEBP=OFF \
  27. -DWEBP_BUILD_DWEBP=OFF \
  28. -DWEBP_BUILD_GIF2WEBP=OFF \
  29. -DWEBP_BUILD_IMG2WEBP=OFF \
  30. -DWEBP_BUILD_VWEBP=OFF \
  31. -DWEBP_BUILD_WEBPINFO=OFF \
  32. -DWEBP_BUILD_WEBPMUX=OFF \
  33. -DWEBP_BUILD_EXTRAS=OFF
  34. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  35. ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
  36. CMAKE_OPTIONS += -DWEBP_ENABLE_SIMD=OFF
  37. endif
  38. endif
  39. TARGET_CFLAGS += -flto
  40. define Package/libwebp/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp*.s* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libwebp))