diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index dc32fe3a4fba7d..fff2ce9f58ca06 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -1,6 +1,6 @@ Source: ffmpeg Version: 4.3.1 -Port-Version: 11 +Port-Version: 12 Homepage: https://ffmpeg.org Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations. diff --git a/ports/ffmpeg/vcpkg-cmake-wrapper.cmake b/ports/ffmpeg/vcpkg-cmake-wrapper.cmake index 8e2dd44d008eb1..170bf63336c3d8 100644 --- a/ports/ffmpeg/vcpkg-cmake-wrapper.cmake +++ b/ports/ffmpeg/vcpkg-cmake-wrapper.cmake @@ -1,6 +1,8 @@ set(FFMPEG_PREV_MODULE_PATH ${CMAKE_MODULE_PATH}) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) +cmake_policy(SET CMP0012 NEW) + _find_package(${ARGS}) set(CMAKE_MODULE_PATH ${FFMPEG_PREV_MODULE_PATH}) diff --git a/ports/pangolin/CONTROL b/ports/pangolin/CONTROL index b27c40d4d9998f..7d29b2e2dcee3d 100644 --- a/ports/pangolin/CONTROL +++ b/ports/pangolin/CONTROL @@ -1,7 +1,7 @@ Source: pangolin Version: 0.5 -Port-Version: 11 -Build-Depends: eigen3, glew, libpng, libjpeg-turbo, ffmpeg +Port-Version: 12 +Build-Depends: eigen3, glew, libpng, libjpeg-turbo, ffmpeg[avformat] Homepage: https://github.com/stevenlovegrove/Pangolin Description: Lightweight GUI Library Supports: !uwp & !osx diff --git a/ports/pangolin/add-definition.patch b/ports/pangolin/add-definition.patch new file mode 100644 index 00000000000000..02790216ebd1bd --- /dev/null +++ b/ports/pangolin/add-definition.patch @@ -0,0 +1,13 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 9e0baac..bb3ef76 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -287,6 +287,8 @@ if(BUILD_PANGOLIN_VIDEO AND _LINUX_) + message(STATUS "V4L Found and Enabled") + endif() + ++add_definitions(-DHAVE_FFMPEG_AVPIXELFORMAT) ++ + find_package(FFMPEG QUIET) + if(BUILD_PANGOLIN_VIDEO AND FFMPEG_FOUND) + set(HAVE_FFMPEG 1) diff --git a/ports/pangolin/fix-dependeny-ffmpeg.patch b/ports/pangolin/fix-dependeny-ffmpeg.patch deleted file mode 100644 index bb1581e4fd9c48..00000000000000 --- a/ports/pangolin/fix-dependeny-ffmpeg.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff --git a/CMakeModules/FindFFMPEG.cmake b/CMakeModules/FindFFMPEG.cmake -index 4f77e5a..151762f 100644 ---- a/CMakeModules/FindFFMPEG.cmake -+++ b/CMakeModules/FindFFMPEG.cmake -@@ -21,6 +21,14 @@ FIND_PATH( - SWSCALE_INCLUDE_DIR libswscale/swscale.h - /usr/include /usr/local/include /opt/local/include - ) -+FIND_PATH( -+ AVDEVICE_INCLUDE_DIR libavdevice/avdevice.h -+ /usr/include /usr/local/include /opt/local/include -+) -+FIND_PATH( -+ SWRESAMPLE_INCLUDE_DIR libswresample/swresample.h -+ /usr/include /usr/local/include /opt/local/include -+) - - # Find Library files - FIND_LIBRARY( -@@ -43,15 +51,28 @@ FIND_LIBRARY( - NAMES swscale - PATH /usr/lib /usr/local/lib /opt/local/lib - ) -+FIND_LIBRARY( -+ AVDEVICE_LIBRARY -+ NAMES avdevice -+ PATH /usr/lib /usr/local/lib /opt/local/lib -+) -+FIND_LIBRARY( -+ SWRESAMPLE_LIBRARY -+ NAMES swresample -+ PATH /usr/lib /usr/local/lib /opt/local/lib -+) - - IF( EXISTS "${AVUTIL_INCLUDE_DIR}/libavutil/pixdesc.h" ) - SET( AVUTIL_HAVE_PIXDESC TRUE) - endif() - - IF(AVCODEC_INCLUDE_DIR AND AVFORMAT_INCLUDE_DIR AND AVUTIL_INCLUDE_DIR AND SWSCALE_INCLUDE_DIR AND AVCODEC_LIBRARY AND AVFORMAT_LIBRARY AND AVUTIL_LIBRARY AND SWSCALE_LIBRARY AND AVUTIL_HAVE_PIXDESC) -+ IF (WIN32) -+ SET(AVFORMAT_LIBRARY ${AVFORMAT_LIBRARY} Ws2_32 Secur32 Bcrypt strmiids mfplat mfuuid) -+ ENDIF() - SET(FFMPEG_FOUND TRUE) -- SET(FFMPEG_LIBRARIES ${AVCODEC_LIBRARY} ${AVFORMAT_LIBRARY} ${AVUTIL_LIBRARY} ${SWSCALE_LIBRARY}) -- SET(FFMPEG_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR} ${AVFORMAT_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR}) -+ SET(FFMPEG_LIBRARIES ${AVFORMAT_LIBRARY} ${AVDEVICE_LIBRARY} ${AVCODEC_LIBRARY} ${AVUTIL_LIBRARY} ${SWSCALE_LIBRARY} ${SWRESAMPLE_LIBRARY}) -+ SET(FFMPEG_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR} ${AVFORMAT_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR} ${AVDEVICE_INCLUDE_DIR} ${SWRESAMPLE_INCLUDE_DIR}) - - include(CheckCXXSourceCompiles) - diff --git a/ports/pangolin/portfile.cmake b/ports/pangolin/portfile.cmake index 79080b126980a5..303e697b482b63 100644 --- a/ports/pangolin/portfile.cmake +++ b/ports/pangolin/portfile.cmake @@ -11,11 +11,12 @@ vcpkg_from_github( PATCHES deprecated_constants.patch # Change from upstream pangolin to address build failures from latest ffmpeg library fix-includepath-error.patch # include path has one more ../ - fix-dependeny-ffmpeg.patch fix-dependency-python.patch + add-definition.patch ) file(REMOVE ${SOURCE_PATH}/CMakeModules/FindGLEW.cmake) +file(REMOVE ${SOURCE_PATH}/CMakeModules/FindFFMPEG.cmake) string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" MSVC_USE_STATIC_CRT) diff --git a/versions/baseline.json b/versions/baseline.json index 06e9a65ccaa64f..50f088bcd48912 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1922,7 +1922,7 @@ }, "ffmpeg": { "baseline": "4.3.1", - "port-version": 11 + "port-version": 12 }, "ffnvcodec": { "baseline": "10.0.26.0", @@ -4498,7 +4498,7 @@ }, "pangolin": { "baseline": "0.5", - "port-version": 11 + "port-version": 12 }, "pangomm": { "baseline": "2.40.1", diff --git a/versions/f-/ffmpeg.json b/versions/f-/ffmpeg.json index 2b34eb5c357f2f..e22cc861a9c6d3 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "15e92ca783e70105ccbf4fda0225a2587a760fe9", + "version-string": "4.3.1", + "port-version": 12 + }, { "git-tree": "985bdde5191e69e38ecda3472663614fcd491052", "version-string": "4.3.1", diff --git a/versions/p-/pangolin.json b/versions/p-/pangolin.json index 3f934431c95d22..dabe35abea93e4 100644 --- a/versions/p-/pangolin.json +++ b/versions/p-/pangolin.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "a27ee268db34edfd09ce5d0b51e574c7e6719931", + "version-string": "0.5", + "port-version": 12 + }, { "git-tree": "4632fbe85a4a6afb145b500f689fe47b99b45c71", "version-string": "0.5",