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.

57 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. 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. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  36. ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
  37. CMAKE_OPTIONS += -DWEBP_ENABLE_SIMD=OFF
  38. endif
  39. endif
  40. TARGET_CFLAGS += -flto
  41. define Package/libwebp/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp*.s* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libwebp))