diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-01-12 16:48:20 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-01-12 16:48:20 -0800 |
| commit | 3a175393f1f0227ec23325e0c495e669d983450f (patch) | |
| tree | 3afa98de5978b0ee4c0e81ae2adfb150e3e04f0c | |
| parent | 5a3881a083b475adbace2097a1c3a62e1d3627f3 (diff) | |
| parent | 860344120371cb51150dbe587a3364b6587b6b17 (diff) | |
| download | vcpkg-3a175393f1f0227ec23325e0c495e669d983450f.tar.gz vcpkg-3a175393f1f0227ec23325e0c495e669d983450f.zip | |
Merge branch 'tiff-uwp' of https://github.com/stammen/vcpkg into stammen-tiff-uwp
| -rw-r--r-- | ports/tiff/fix-uwp.patch | 25 | ||||
| -rw-r--r-- | ports/tiff/portfile.cmake | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/tiff/fix-uwp.patch b/ports/tiff/fix-uwp.patch new file mode 100644 index 000000000..6fce8d573 --- /dev/null +++ b/ports/tiff/fix-uwp.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 439e26a..05416d8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -187,6 +187,7 @@ endforeach(flag ${test_flags}) + + if(MSVC) + set(CMAKE_DEBUG_POSTFIX "d") ++ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) + endif() + + option(ld-version-script "Enable linker version script" ON) +diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c +index a0dc68b..3c4e101 100644 +--- a/libtiff/tif_dirread.c ++++ b/libtiff/tif_dirread.c +@@ -3690,7 +3690,7 @@ TIFFReadDirectory(TIFF* tif) + case TIFFTAG_SMAXSAMPLEVALUE: + { + +- double *data; ++ double *data = NULL; + enum TIFFReadDirEntryErr err; + uint32 saved_flags; + int m; diff --git a/ports/tiff/portfile.cmake b/ports/tiff/portfile.cmake index 345024fe0..281d681b9 100644 --- a/ports/tiff/portfile.cmake +++ b/ports/tiff/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_extract_source_archive(${ARCHIVE}) vcpkg_apply_patches( SOURCE_PATH ${SOURCE_PATH} PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-component-options.patch + ${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch ) vcpkg_configure_cmake( |
