aedi: update webp to 1.2.2

This commit is contained in:
alexey.lysiuk 2022-06-29 09:45:44 +03:00
parent f0646bdd13
commit 397c14c12f
2 changed files with 15 additions and 3 deletions

View file

@ -413,12 +413,13 @@ class WebpTarget(CMakeStaticDependencyTarget):
def prepare_source(self, state: BuildState):
state.download_source(
'https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.0.tar.gz',
'2fc8bbde9f97f2ab403c0224fb9ca62b2e6852cbc519e91ceaa7c153ffd88a0c')
'https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.2.tar.gz',
'7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6',
patches='webp-fix-cmake')
def configure(self, state: BuildState):
option_suffices = (
'ANIM_UTILS', 'CWEBP', 'DWEBP', 'EXTRAS', 'GIF2WEBP', 'IMG2WEBP', 'VWEBP', 'WEBPINFO', 'WEBPMUX'
'ANIM_UTILS', 'CWEBP', 'DWEBP', 'EXTRAS', 'GIF2WEBP', 'IMG2WEBP', 'LIBWEBPMUX', 'VWEBP', 'WEBPINFO',
)
for suffix in option_suffices:

11
patch/webp-fix-cmake.diff Normal file
View file

@ -0,0 +1,11 @@
--- a/cmake/WebPConfig.cmake.in
+++ b/cmake/WebPConfig.cmake.in
@@ -5,7 +5,7 @@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
-set(WebP_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
+set(WebP_INCLUDE_DIRS "webp")
set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIRS})
set(WebP_LIBRARIES "@INSTALLED_LIBRARIES@")
set(WEBP_LIBRARIES "${WebP_LIBRARIES}")