From https://github.com/webmproject/libwebp/releases/tag/v1.3.2 - 9/13/2023: version 1.3.2 This is a binary compatible release. * security fix for lossless decoder (chromium: #1479274, CVE-2023-4863) Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libwebp
|
|
PKG_VERSION:=1.3.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
|
|
PKG_HASH:=2a499607df669e40258e53d0ade8035ba4ec0175244869d1025d460562aa09b4
|
|
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
CMAKE_INSTALL:=1
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libwebp
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=WebP library
|
|
URL:=https://www.webmproject.org
|
|
endef
|
|
|
|
define Package/libwebp/description
|
|
The libwebp package contains a library for the WebP format.
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DWEBP_BUILD_ANIM_UTILS=OFF \
|
|
-DWEBP_BUILD_CWEBP=OFF \
|
|
-DWEBP_BUILD_DWEBP=OFF \
|
|
-DWEBP_BUILD_GIF2WEBP=OFF \
|
|
-DWEBP_BUILD_IMG2WEBP=OFF \
|
|
-DWEBP_BUILD_VWEBP=OFF \
|
|
-DWEBP_BUILD_WEBPINFO=OFF \
|
|
-DWEBP_BUILD_WEBPMUX=OFF \
|
|
-DWEBP_BUILD_EXTRAS=OFF
|
|
|
|
ifneq ($(findstring arm,$(CONFIG_ARCH)),)
|
|
ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
|
|
CMAKE_OPTIONS += -DWEBP_ENABLE_SIMD=OFF
|
|
endif
|
|
endif
|
|
|
|
define Package/libwebp/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.s* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libwebp))
|