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.

65 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwebp
  3. PKG_VERSION:=1.0.3
  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:=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. PKG_USE_MIPS16:=0
  14. include $(INCLUDE_DIR)/package.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. CONFIGURE_ARGS += \
  25. --enable-shared \
  26. --disable-static \
  27. --disable-neon-rtcd \
  28. --disable-gl \
  29. --disable-sdl \
  30. --disable-gif \
  31. --disable-jpeg \
  32. --disable-png \
  33. --disable-tiff \
  34. --disable-wic \
  35. --disable-libwebpmux \
  36. --disable-libwebpdemux \
  37. --disable-libwebpdecoder \
  38. --disable-libwebpextras \
  39. --without-pic
  40. TARGET_CFLAGS += $(FPIC) -flto
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include/webp
  43. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/webp/* $(1)/usr/include/webp/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp* $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libwebp.pc $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libwebp/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebp.s* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libwebp))