Skip to content

Commit

Permalink
games/openmw: Move to FFmpeg 4
Browse files Browse the repository at this point in the history
Move to FFmpeg 4 due to dependency of graphics/osg

Approved by:	portmgr (blanket, build fix)
Sponsored by:	Blinkinblox
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Apr 27, 2023
1 parent 8ae71fb commit 3e05155
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion games/openmw/Makefile
Expand Up @@ -11,7 +11,7 @@ WWW= https://openmw.org/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
LIB_DEPENDS= libavcodec.so.58:multimedia/ffmpeg4 \
libboost_thread.so:devel/boost-libs \
libMyGUIEngine.so:x11-toolkits/mygui \
libBulletCollision.so:devel/bullet@double \
Expand Down Expand Up @@ -44,6 +44,9 @@ DOCS_USES= python:build

PORTDOCS= *

post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${PATCH_WRKSRC}/cmake/FindFFmpeg.cmake
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*

Expand Down
11 changes: 11 additions & 0 deletions games/openmw/files/patch-cmake_FindFFmpeg.cmake
@@ -0,0 +1,11 @@
--- cmake/FindFFmpeg.cmake.orig 2023-04-24 10:57:53 UTC
+++ cmake/FindFFmpeg.cmake
@@ -33,6 +33,8 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

+set(CMAKE_PREFIX_PATH "%%LOCALBASE%%/ffmpeg4;%%LOCALBASE%%/ffmpeg4/libexec")
+
include(LibFindMacros)
include(FindPackageHandleStandardArgs)

0 comments on commit 3e05155

Please sign in to comment.