aboutsummaryrefslogtreecommitdiff
path: root/ports/libwebp
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-05-29 06:33:38 +0800
committerPhil Christensen <philc@microsoft.com>2019-05-28 15:33:38 -0700
commit3d4b4c02ede7b343f4cd9cdfebbd3124ad834045 (patch)
treed0b9a672d773e4bca0553a8c9dcb5c11c626ab81 /ports/libwebp
parent0ec60d1f9014559103e207b8b85414b3e856f622 (diff)
downloadvcpkg-3d4b4c02ede7b343f4cd9cdfebbd3124ad834045.tar.gz
vcpkg-3d4b4c02ede7b343f4cd9cdfebbd3124ad834045.zip
[libwebp]Fix static build: add dependency libraries "dxguid winmm". (#6648)
Diffstat (limited to 'ports/libwebp')
-rw-r--r--ports/libwebp/0005-fix-static-build.patch13
-rw-r--r--ports/libwebp/CONTROL2
-rw-r--r--ports/libwebp/portfile.cmake1
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/libwebp/0005-fix-static-build.patch b/ports/libwebp/0005-fix-static-build.patch
new file mode 100644
index 000000000..f17713efd
--- /dev/null
+++ b/ports/libwebp/0005-fix-static-build.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7585fac..83edb3a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -540,7 +540,7 @@ if(WEBP_BUILD_EXTRAS)
+ find_package(SDL)
+ if(SDL_FOUND)
+ add_executable(vwebp_sdl ${VWEBP_SDL_SRCS})
+- target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
++ target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp dxguid winmm)
+ target_include_directories(vwebp_sdl
+ PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
diff --git a/ports/libwebp/CONTROL b/ports/libwebp/CONTROL
index 11647702d..f4f01570a 100644
--- a/ports/libwebp/CONTROL
+++ b/ports/libwebp/CONTROL
@@ -1,5 +1,5 @@
Source: libwebp
-Version: 1.0.2-3
+Version: 1.0.2-4
Description: Lossy compression of digital photographic images.
Build-Depends: opengl
diff --git a/ports/libwebp/portfile.cmake b/ports/libwebp/portfile.cmake
index f0bd669ee..49590a982 100644
--- a/ports/libwebp/portfile.cmake
+++ b/ports/libwebp/portfile.cmake
@@ -11,6 +11,7 @@ vcpkg_from_github(
0002-cmake-config-add-backwards-compatibility.patch
0003-remove-missing-symbol.patch
0004-add-missing-linked-library.patch
+ 0005-fix-static-build.patch
)
set(WEBP_BUILD_ANIM_UTILS OFF)