summaryrefslogtreecommitdiffstats
path: root/php-ffmpeg-incl.patch
blob: 26b6c7a1269a6f607228941250362aeda2d526b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
diff -up ./config.m4.incl ./config.m4
--- ./config.m4.incl	2009-07-02 19:15:48.000000000 +0200
+++ ./config.m4	2013-01-02 09:05:39.525828877 +0100
@@ -33,13 +33,14 @@ if test "$PHP_FFMPEG" != "no"; then
     elif test -f $i/include/libavcodec/avcodec.h; then
       dnl ffmpeg svn revision 12194 and newer put each header in its own dir
       dnl so we have to include them all.
-      PHP_ADD_INCLUDE($i/include/libavcodec/)
-      PHP_ADD_INCLUDE($i/include/libavformat/)
-      PHP_ADD_INCLUDE($i/include/libavutil/)
-      PHP_ADD_INCLUDE($i/include/libswscale/)
-      PHP_ADD_INCLUDE($i/include/libavfilter/)
-      PHP_ADD_INCLUDE($i/include/libavdevice/)
-      FFMPEG_INC_FOUND=$i/include/libavcodec
+      PHP_ADD_INCLUDE($i/include)
+      FFMPEG_INC_FOUND=$i/include
+      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)
+      FFMPEG_INC_FOUND=$i
       break
     fi
   done
diff -up ./ffmpeg_errorhandler.c.incl ./ffmpeg_errorhandler.c
--- ./ffmpeg_errorhandler.c.incl	2009-02-25 21:48:46.000000000 +0100
+++ ./ffmpeg_errorhandler.c	2013-01-02 09:05:39.525828877 +0100
@@ -34,7 +34,7 @@
  */
 
 #include "php.h"
-#include <avcodec.h>
+#include <libavcodec/avcodec.h>
 
 /* {{{ ffmpeg_errorhandler()
  */
diff -up ./ffmpeg_frame.c.incl ./ffmpeg_frame.c
--- ./ffmpeg_frame.c.incl	2012-01-14 02:49:31.000000000 +0100
+++ ./ffmpeg_frame.c	2013-01-02 09:05:39.526828871 +0100
@@ -57,7 +57,7 @@
    allow ffmpeg-php to be built without access to the php sources
    */
 #if HAVE_LIBGD20
-#include "gd.h" 
+#include "gd/libgd/gd.h" 
 
 #define FFMPEG_PHP_FETCH_IMAGE_RESOURCE(gd_img, ret) { \
     ZEND_GET_RESOURCE_TYPE_ID(le_gd, "gd"); \
diff -up ./ffmpeg_frame.h.incl ./ffmpeg_frame.h
--- ./ffmpeg_frame.h.incl	2009-06-22 06:22:21.000000000 +0200
+++ ./ffmpeg_frame.h	2013-01-02 09:05:39.527828864 +0100
@@ -38,9 +38,9 @@
 
 #include "php_version.h"
 
-#include <avcodec.h>
-#include <avformat.h>
-#include <avutil.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavutil/avutil.h>
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
diff -up ./ffmpeg_movie.c.incl ./ffmpeg_movie.c
--- ./ffmpeg_movie.c.incl	2012-01-14 02:49:31.000000000 +0100
+++ ./ffmpeg_movie.c	2013-01-02 09:07:37.865917445 +0100
@@ -34,10 +34,10 @@
 #include "php_globals.h"
 #include "ext/standard/info.h"
 
-#include <avcodec.h>
-#include <avformat.h>
-#include <pixfmt.h>
-#include <pixdesc.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavutil/pixfmt.h>
+#include <libavutil/pixdesc.h>
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
diff -up ./ffmpeg-php.c.incl ./ffmpeg-php.c
--- ./ffmpeg-php.c.incl	2012-01-14 02:49:31.000000000 +0100
+++ ./ffmpeg-php.c	2013-01-02 09:05:39.528828857 +0100
@@ -39,11 +39,11 @@
 
 #include "php.h"
 
-#include <avcodec.h>
-#include <avformat.h>
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
 
 #if HAVE_SWSCALER
-#include <swscale.h>
+#include <libswscale/swscale.h>
 #endif
 
 #include "php_ini.h"
diff -up ./ffmpeg_tools.c.incl ./ffmpeg_tools.c
--- ./ffmpeg_tools.c.incl	2009-06-22 06:22:21.000000000 +0200
+++ ./ffmpeg_tools.c	2013-01-02 09:05:39.529828850 +0100
@@ -42,7 +42,7 @@
 #include "ffmpeg_tools.h"
 
 #if LIBAVCODEC_VERSION_MAJOR >= 52
-#include <swscale.h>
+#include <libswscale/swscale.h>
 
 /* {{{ ffmpeg_img_convert() 
  * wrapper around ffmpeg image conversion routines
diff -up ./ffmpeg_tools.h.incl ./ffmpeg_tools.h
--- ./ffmpeg_tools.h.incl	2009-06-22 06:22:21.000000000 +0200
+++ ./ffmpeg_tools.h	2013-01-02 09:05:39.529828850 +0100
@@ -36,11 +36,11 @@
 #ifndef FFMPEG_TOOLS_H
 #define FFMPEG_TOOLS_H
 
-#include <avcodec.h>
+#include <libavcodec/avcodec.h>
 
 #if LIBAVCODEC_VERSION_MAJOR >= 52
 
-#include <swscale.h>
+#include <libswscale/swscale.h>
 
 // Starting from this version, ImgReSampleContext doesn't exist anymore.
 // This code implements the previous functions with a similar interface