summaryrefslogtreecommitdiffstats
path: root/php-ffmpeg.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-10 07:14:25 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-10 07:14:25 +0200
commit05cda3059ea0aad765966895e625dba15082e06f (patch)
tree94829192826fee05601efc725704506472df056e /php-ffmpeg.patch
repo reorg
Diffstat (limited to 'php-ffmpeg.patch')
-rw-r--r--php-ffmpeg.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/php-ffmpeg.patch b/php-ffmpeg.patch
new file mode 100644
index 0000000..0d2761b
--- /dev/null
+++ b/php-ffmpeg.patch
@@ -0,0 +1,23 @@
+diff -up ffmpeg-php-0.6.0/config.m4.orig ffmpeg-php-0.6.0/config.m4
+--- ffmpeg-php-0.6.0/config.m4.orig 2010-03-21 09:05:15.000000000 +0100
++++ ffmpeg-php-0.6.0/config.m4 2010-03-21 09:12:32.000000000 +0100
+@@ -41,6 +41,18 @@ if test "$PHP_FFMPEG" != "no"; then
+ PHP_ADD_INCLUDE($i/include/libavdevice/)
+ FFMPEG_INC_FOUND=$i/include/libavcodec
+ break
++ elif test -f $i/libavcodec/avcodec.h; then
++ dnl ffmpeg svn revision 12194 and newer put each header in its own dir
++ dnl ffmpeg-devel RPM install in /usr/include/ffmpeg/*
++ PHP_ADD_INCLUDE($i)
++ PHP_ADD_INCLUDE($i/libavcodec/)
++ PHP_ADD_INCLUDE($i/libavformat/)
++ PHP_ADD_INCLUDE($i/libavutil/)
++ PHP_ADD_INCLUDE($i/libswscale/)
++ PHP_ADD_INCLUDE($i/libavfilter/)
++ PHP_ADD_INCLUDE($i/libavdevice/)
++ FFMPEG_INC_FOUND=$i
++ break
+ fi
+ done
+
+