diff options
Diffstat (limited to 'ports/avcpp')
| -rw-r--r-- | ports/avcpp/0002-av_init_packet_deprecation.patch | 16 | ||||
| -rw-r--r-- | ports/avcpp/portfile.cmake | 1 | ||||
| -rw-r--r-- | ports/avcpp/vcpkg.json | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/ports/avcpp/0002-av_init_packet_deprecation.patch b/ports/avcpp/0002-av_init_packet_deprecation.patch new file mode 100644 index 000000000..a243b0dfe --- /dev/null +++ b/ports/avcpp/0002-av_init_packet_deprecation.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a5fed05..7875b91 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,6 +24,11 @@ set (AVCPP_WARNING_OPTIONS + $<$<CXX_COMPILER_ID:MSVC>: + /W4>) + ++# fixes vcpkg uwp failures due to /sdl ++if(MSVC) ++ add_compile_options(/wd4996) ++endif() ++ + # -pthread sets also some useful compile-time flags + set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Threads) diff --git a/ports/avcpp/portfile.cmake b/ports/avcpp/portfile.cmake index d6412fce8..c472590ee 100644 --- a/ports/avcpp/portfile.cmake +++ b/ports/avcpp/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_from_github( HEAD_REF master
PATCHES
0001-remove-problematic-compound-literal.patch
+ 0002-av_init_packet_deprecation.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AVCPP_ENABLE_STATIC)
diff --git a/ports/avcpp/vcpkg.json b/ports/avcpp/vcpkg.json index afb9a18a4..8a2495d98 100644 --- a/ports/avcpp/vcpkg.json +++ b/ports/avcpp/vcpkg.json @@ -1,6 +1,7 @@ { "name": "avcpp", "version-date": "2021-05-06", + "port-version": 1, "description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.", "homepage": "https://github.com/h4tr3d/avcpp", "dependencies": [ |
