diff options
| author | Dale Stammen <dalestam@microsoft.com> | 2017-02-01 06:40:01 -0800 |
|---|---|---|
| committer | Dale Stammen <dalestam@microsoft.com> | 2017-02-01 06:40:01 -0800 |
| commit | f02c8f9e6472e5cf5fa1cc4b7273871bd6cf26c8 (patch) | |
| tree | 10ca64d71f6cec369cd945db5f5ba7fea66b0844 | |
| parent | 0b2dd9bb9834664faadfabf8e3194dfb7da3c5da (diff) | |
| download | vcpkg-f02c8f9e6472e5cf5fa1cc4b7273871bd6cf26c8.tar.gz vcpkg-f02c8f9e6472e5cf5fa1cc4b7273871bd6cf26c8.zip | |
added patch to add missing NO_DEPRECATE defines for UWP
| -rw-r--r-- | ports/libvorbis/0002-Allow-deprecated-functions.patch | 14 | ||||
| -rw-r--r-- | ports/libvorbis/portfile.cmake | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/libvorbis/0002-Allow-deprecated-functions.patch b/ports/libvorbis/0002-Allow-deprecated-functions.patch new file mode 100644 index 000000000..ea1d07e39 --- /dev/null +++ b/ports/libvorbis/0002-Allow-deprecated-functions.patch @@ -0,0 +1,14 @@ +diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt +index 2043294..e273393 100644 +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -61,6 +61,9 @@ if(MSVC) + list(APPEND VORBIS_SOURCES ../win32/vorbis.def) + list(APPEND VORBISENC_SOURCES ../win32/vorbisenc.def) + list(APPEND VORBISFILE_SOURCES ../win32/vorbisfile.def) ++ add_definitions(-D_CRT_SECURE_NO_WARNINGS) ++ add_definitions(-D_CRT_SECURE_NO_DEPRECATE) ++ add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) + endif() + + include_directories(../include) diff --git a/ports/libvorbis/portfile.cmake b/ports/libvorbis/portfile.cmake index 66bfca07c..85fa1d26b 100644 --- a/ports/libvorbis/portfile.cmake +++ b/ports/libvorbis/portfile.cmake @@ -35,7 +35,9 @@ if(NOT EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git") ) message(STATUS "Patching") vcpkg_execute_required_process( - COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Add-vorbisenc.c-to-vorbis-library.patch --ignore-whitespace --whitespace=fix + COMMAND ${GIT} apply ${CMAKE_CURRENT_LIST_DIR}/0001-Add-vorbisenc.c-to-vorbis-library.patch + ${CMAKE_CURRENT_LIST_DIR}/0002-Allow-deprecated-functions.patch + --ignore-whitespace --whitespace=fix WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src LOGNAME patch ) |
