ports/emulators/ppsspp/files/patch-cmake_Modules_FindFFmpeg.cmake
Kevin Reinholz 29fccbe5a0 emulators/ppsspp: Update to 1.18.1
* Use to multimedia/ffmpeg3 for compatibility and stability
* Submitter becomes maintainer

Changelog: https://www.ppsspp.org/news/release-1.18/

Reset PORTREVISION for slave ports, emulators/libretro-ppsspp and
emulators/ppsspp-qt5

PR:		282792
2024-12-04 21:26:43 +01:00

36 lines
955 B
CMake

--- cmake/Modules/FindFFmpeg.cmake.orig 2024-02-04 13:08:02 UTC
+++ cmake/Modules/FindFFmpeg.cmake
@@ -56,9 +56,7 @@ function(find_ffmpeg LIBNAME)
set(_FFmpeg_HEADER_swscale swscale)
function(find_ffmpeg LIBNAME)
- if(DEFINED ENV{FFMPEG_DIR})
- set(FFMPEG_DIR $ENV{FFMPEG_DIR})
- endif()
+ set(FFMPEG_DIR /usr/local/ffmpeg3)
if(FFMPEG_DIR)
list(APPEND INCLUDE_PATHS
@@ -79,17 +77,13 @@ function(find_ffmpeg LIBNAME)
NO_CMAKE_FIND_ROOT_PATH
)
else()
- list(APPEND INCLUDE_PATHS
- /usr/local/include/ffmpeg
- /usr/local/include/lib${LIBNAME}
- /usr/include/ffmpeg
- /usr/include/lib${LIBNAME}
- /usr/include/ffmpeg/lib${LIBNAME}
+ list(SET INCLUDE_PATHS
+ /usr/local/ffmpeg3/include/ffmpeg
+ /usr/local/ffmpeg3/include/lib${LIBNAME}
)
- list(APPEND LIB_PATHS
- /usr/local/lib
- /usr/lib
+ list(SET LIB_PATHS
+ /usr/local/ffmpeg3/lib
)
endif()