aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@hamburg.de>2020-02-03 11:21:47 +0100
committerAlexander Neumann <alexander.neumann@hamburg.de>2020-02-03 11:21:47 +0100
commitd8167d3188d5d15c57fe608a968c65cd41bd5358 (patch)
tree8385bba54fa7cbba813ed8bb9607d119a0c1bca2
parent09dca6dbf444b64d0d691c388b64a05f8b81c291 (diff)
downloadvcpkg-d8167d3188d5d15c57fe608a968c65cd41bd5358.tar.gz
vcpkg-d8167d3188d5d15c57fe608a968c65cd41bd5358.zip
fix extra dependencies and build errors
-rw-r--r--ports/libwebp/0001-build.patch3
-rw-r--r--ports/libwebp/0006-fix-dependecies-platform.patch3
-rw-r--r--ports/libwebp/CONTROL2
3 files changed, 5 insertions, 3 deletions
diff --git a/ports/libwebp/0001-build.patch b/ports/libwebp/0001-build.patch
index 25166e292..bc61b9b51 100644
--- a/ports/libwebp/0001-build.patch
+++ b/ports/libwebp/0001-build.patch
@@ -23,7 +23,7 @@ index 9503daacb..2fb9ef137 100644
endif()
if(WEBP_BUILD_GIF2WEBP)
-@@ -524,7 +528,10 @@ if(WEBP_BUILD_EXTRAS)
+@@ -524,7 +528,11 @@ if(WEBP_BUILD_EXTRAS)
# webp_quality
add_executable(webp_quality ${WEBP_QUALITY_SRCS} ${WEBP_EXTRAS_SRCS})
@@ -33,4 +33,5 @@ index 9503daacb..2fb9ef137 100644
+ endif()
target_include_directories(webp_quality
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR})
diff --git a/ports/libwebp/0006-fix-dependecies-platform.patch b/ports/libwebp/0006-fix-dependecies-platform.patch
index fc7a7c98a..819c1f90b 100644
--- a/ports/libwebp/0006-fix-dependecies-platform.patch
+++ b/ports/libwebp/0006-fix-dependecies-platform.patch
@@ -2,7 +2,7 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83edb3a..f634094 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -540,7 +540,10 @@ if(WEBP_BUILD_EXTRAS)
+@@ -540,7 +540,11 @@ if(WEBP_BUILD_EXTRAS)
find_package(SDL)
if(SDL_FOUND)
add_executable(vwebp_sdl ${VWEBP_SDL_SRCS})
@@ -11,6 +11,7 @@ index 83edb3a..f634094 100644
+ if (MSVC)
+ target_link_libraries(vwebp_sdl dxguid winmm)
+ endif()
++ target_compile_definitions(vwebp_sdl PRIVATE WEBP_HAVE_JUST_SDL_H)
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 e18e5b7b6..a868771f6 100644
--- a/ports/libwebp/CONTROL
+++ b/ports/libwebp/CONTROL
@@ -33,7 +33,7 @@ Description: Build the webpmux command line tool.
Feature: extras
Description: Build extras.
-Build-Depends: sdl1 (windows)
+Build-Depends: sdl1 (windows), libwebp[vwebp]
Feature: nearlossless
Description: Enable near-lossless encoding