aboutsummaryrefslogtreecommitdiff
path: root/ports/libwebp/0004-add-missing-linked-library.patch
diff options
context:
space:
mode:
authorThad House <thadhouse1@gmail.com>2019-05-31 13:49:13 -0700
committerThad House <thadhouse1@gmail.com>2019-05-31 13:49:13 -0700
commit788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b (patch)
tree173ade0e6960917458afe9dd9fb0c3c2b7f32051 /ports/libwebp/0004-add-missing-linked-library.patch
parentf483ae4c7fd04eed671a1de595374f84175311e9 (diff)
parent26a9338c5055193915290527eacb37f2ac7fdcb8 (diff)
downloadvcpkg-788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b.tar.gz
vcpkg-788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b.zip
Merge master
Diffstat (limited to 'ports/libwebp/0004-add-missing-linked-library.patch')
-rw-r--r--ports/libwebp/0004-add-missing-linked-library.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/libwebp/0004-add-missing-linked-library.patch b/ports/libwebp/0004-add-missing-linked-library.patch
new file mode 100644
index 000000000..49a34ef4d
--- /dev/null
+++ b/ports/libwebp/0004-add-missing-linked-library.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a98540c..a3697cb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -479,6 +479,10 @@ if(WEBP_BUILD_VWEBP)
+ ${CMAKE_CURRENT_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}/src
+ ${OPENGL_INCLUDE_DIR})
++ if(UNIX AND NOT(ANDROID OR BLACKBERRY OR APPLE))
++ find_package(X11 REQUIRED)
++ target_link_libraries(vwebp ${X11_LIBRARIES} ${X11_Xxf86vm_LIB})
++ endif()
+ install(TARGETS vwebp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ check_c_compiler_flag("-Wno-deprecated-declarations" HAS_NO_DEPRECATED)