diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-05-16 12:02:51 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-05-16 12:02:51 +0000 |
commit | 3ec5ae82cf0d79f98a29f5ba846d772c727290af (patch) | |
tree | 414bb82184beed075fb99be5f58fbf442e377b1d /games-arcade/performous/files | |
parent | Apply correction to REQUIRED_USE, bug #416245. (diff) | |
download | gentoo-2-3ec5ae82cf0d79f98a29f5ba846d772c727290af.tar.gz gentoo-2-3ec5ae82cf0d79f98a29f5ba846d772c727290af.tar.bz2 gentoo-2-3ec5ae82cf0d79f98a29f5ba846d772c727290af.zip |
Build with libav and thus depend on virtual/ffmpeg.
(Portage version: 2.2.0_alpha105/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade/performous/files')
-rw-r--r-- | games-arcade/performous/files/performous-0.6.1-libav.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/games-arcade/performous/files/performous-0.6.1-libav.patch b/games-arcade/performous/files/performous-0.6.1-libav.patch new file mode 100644 index 000000000000..b598dc0a488a --- /dev/null +++ b/games-arcade/performous/files/performous-0.6.1-libav.patch @@ -0,0 +1,41 @@ +diff -urN Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake +--- Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:44:26.112930173 +0200 ++++ Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:56:10.229914635 +0200 +@@ -25,9 +25,15 @@ + if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h") + set(AVUtil_INCLUDE "${suffix}avutil.h") + endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h") ++ if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h") ++ set(AVUtilMath_INCLUDE "${suffix}mathematics.h") ++ endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h") + endif(NOT AVUtil_INCLUDE) + endforeach(suffix) + ++ if(NOT AVUtilMath_INCLUDE) ++ message(FATAL_ERROR "Found mathematics.h include dir, but not the header file. Perhaps you need to clear CMake cache?") ++ endif(NOT AVUtilMath_INCLUDE) + if(NOT AVUtil_INCLUDE) + message(FATAL_ERROR "Found avutil.h include dir, but not the header file. Perhaps you need to clear CMake cache?") + endif(NOT AVUtil_INCLUDE) +diff -urN Performous-0.6.1-Source.old/game/config.cmake.hh Performous-0.6.1-Source/game/config.cmake.hh +--- Performous-0.6.1-Source.old/game/config.cmake.hh 2012-05-16 13:44:26.103930173 +0200 ++++ Performous-0.6.1-Source/game/config.cmake.hh 2012-05-16 13:59:24.552910345 +0200 +@@ -15,6 +15,7 @@ + #define AVCODEC_INCLUDE <@AVCodec_INCLUDE@> + #define AVFORMAT_INCLUDE <@AVFormat_INCLUDE@> + #define SWSCALE_INCLUDE <@SWScale_INCLUDE@> ++#define AVUTILMATH_INCLUDE <@AVUtilMath_INCLUDE@> + + #endif + +diff -urN Performous-0.6.1-Source.old/game/ffmpeg.cc Performous-0.6.1-Source/game/ffmpeg.cc +--- Performous-0.6.1-Source.old/game/ffmpeg.cc 2012-05-16 13:44:26.101930173 +0200 ++++ Performous-0.6.1-Source/game/ffmpeg.cc 2012-05-16 14:00:38.278908717 +0200 +@@ -10,6 +10,7 @@ + #include AVCODEC_INCLUDE + #include AVFORMAT_INCLUDE + #include SWSCALE_INCLUDE ++#include AVUTILMATH_INCLUDE + } + + // #define USE_FFMPEG_CRASH_RECOVERY |