devel/ignition-cmake: Force usage of FFmpeg 4
Consumers (devel/ignition-common) fails to build with FFmpeg 6 PR: 270198 Approved by: portmgr (blanket, build fix) Sponsored by: Blinkinblox
This commit is contained in:
parent
a62d83a677
commit
4f1ddd2085
6 changed files with 52 additions and 0 deletions
|
@ -22,4 +22,16 @@ NO_ARCH= yes
|
|||
|
||||
PLIST_SUB+= CMAKE_IGN_VER=cmake${DISTVERSION:R:R}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${PATCH_WRKSRC}/cmake/FindAVCODEC.cmake
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${PATCH_WRKSRC}/cmake/FindAVDEVICE.cmake
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${PATCH_WRKSRC}/cmake/FindAVFORMAT.cmake
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${PATCH_WRKSRC}/cmake/FindAVUTIL.cmake
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${PATCH_WRKSRC}/cmake/FindSWSCALE.cmake
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
8
devel/ignition-cmake/files/patch-cmake_FindAVCODEC.cmake
Normal file
8
devel/ignition-cmake/files/patch-cmake_FindAVCODEC.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- cmake/FindAVCODEC.cmake.orig 2023-04-24 07:29:13 UTC
|
||||
+++ cmake/FindAVCODEC.cmake
|
||||
@@ -16,4 +16,5 @@
|
||||
########################################
|
||||
# Find avcodec
|
||||
include(IgnPkgConfig)
|
||||
+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
|
||||
ign_pkg_check_modules(AVCODEC libavcodec)
|
|
@ -0,0 +1,8 @@
|
|||
--- cmake/FindAVDEVICE.cmake.orig 2023-04-24 07:29:47 UTC
|
||||
+++ cmake/FindAVDEVICE.cmake
|
||||
@@ -20,4 +20,5 @@ set(av_minor ${AVDEVICE_FIND_VERSION_MINOR})
|
||||
set(av_patch ${AVDEVICE_FIND_VERSION_PATCH})
|
||||
|
||||
include(IgnPkgConfig)
|
||||
+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
|
||||
ign_pkg_check_modules(AVDEVICE "libavdevice >= ${av_major}.${av_minor}.${av_patch}")
|
|
@ -0,0 +1,8 @@
|
|||
--- cmake/FindAVFORMAT.cmake.orig 2023-04-24 07:30:02 UTC
|
||||
+++ cmake/FindAVFORMAT.cmake
|
||||
@@ -16,4 +16,5 @@
|
||||
########################################
|
||||
# Find AV format
|
||||
include(IgnPkgConfig)
|
||||
+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
|
||||
ign_pkg_check_modules(AVFORMAT libavformat)
|
8
devel/ignition-cmake/files/patch-cmake_FindAVUTIL.cmake
Normal file
8
devel/ignition-cmake/files/patch-cmake_FindAVUTIL.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- cmake/FindAVUTIL.cmake.orig 2023-04-24 07:30:38 UTC
|
||||
+++ cmake/FindAVUTIL.cmake
|
||||
@@ -16,4 +16,5 @@
|
||||
########################################
|
||||
# Find avutil
|
||||
include(IgnPkgConfig)
|
||||
+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
|
||||
ign_pkg_check_modules(AVUTIL libavutil)
|
8
devel/ignition-cmake/files/patch-cmake_FindSWSCALE.cmake
Normal file
8
devel/ignition-cmake/files/patch-cmake_FindSWSCALE.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- cmake/FindSWSCALE.cmake.orig 2023-04-25 18:35:25 UTC
|
||||
+++ cmake/FindSWSCALE.cmake
|
||||
@@ -16,4 +16,5 @@
|
||||
########################################
|
||||
# Find libswscale format
|
||||
include(IgnPkgConfig)
|
||||
+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
|
||||
ign_pkg_check_modules(SWSCALE libswscale)
|
Loading…
Reference in a new issue