diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-03-12 04:14:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-11 12:14:34 -0800 |
| commit | 2543be2edf60bf38511c2d477bb17b617398a108 (patch) | |
| tree | fadea369f0375b22adf71ec594aacb8af23a5328 | |
| parent | f2ae282c8d7c2a4a5a8e2b88ae42723261b7b298 (diff) | |
| download | vcpkg-2543be2edf60bf38511c2d477bb17b617398a108.tar.gz vcpkg-2543be2edf60bf38511c2d477bb17b617398a108.zip | |
[pangolin] Fix static build error (#15593)
* [pangolin] Fix static build error
* Update versions
* Update dependency for pangolin
* Update pangolin.json
| -rw-r--r-- | ports/ffmpeg/CONTROL | 2 | ||||
| -rw-r--r-- | ports/ffmpeg/vcpkg-cmake-wrapper.cmake | 2 | ||||
| -rw-r--r-- | ports/pangolin/CONTROL | 4 | ||||
| -rw-r--r-- | ports/pangolin/add-definition.patch | 13 | ||||
| -rw-r--r-- | ports/pangolin/fix-dependeny-ffmpeg.patch | 50 | ||||
| -rw-r--r-- | ports/pangolin/portfile.cmake | 3 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/f-/ffmpeg.json | 5 | ||||
| -rw-r--r-- | versions/p-/pangolin.json | 5 |
9 files changed, 32 insertions, 56 deletions
diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index dc32fe3a4..fff2ce9f5 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 8e2dd44d0..170bf6333 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 b27c40d4d..7d29b2e2d 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 000000000..02790216e --- /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 bb1581e4f..000000000 --- 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 79080b126..303e697b4 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 06e9a65cc..50f088bcd 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 2b34eb5c3..e22cc861a 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "15e92ca783e70105ccbf4fda0225a2587a760fe9", + "version-string": "4.3.1", + "port-version": 12 + }, + { "git-tree": "985bdde5191e69e38ecda3472663614fcd491052", "version-string": "4.3.1", "port-version": 11 diff --git a/versions/p-/pangolin.json b/versions/p-/pangolin.json index 3f934431c..dabe35abe 100644 --- a/versions/p-/pangolin.json +++ b/versions/p-/pangolin.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "a27ee268db34edfd09ce5d0b51e574c7e6719931", + "version-string": "0.5", + "port-version": 12 + }, + { "git-tree": "4632fbe85a4a6afb145b500f689fe47b99b45c71", "version-string": "0.5", "port-version": 11 |
