summaryrefslogtreecommitdiff
path: root/pcr/zoneminder/patch-ffmpeg-configure.patch
blob: ba1674a4aba23a2f09c2d14a0242b137db7bb453 (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
--- configure.old	2011-08-23 12:10:37.000000000 -0300
+++ configure		2012-09-26 16:23:33.211940267 -0300
@@ -3026,8 +3026,8 @@
 fi
 
 
-FFMPEG_LIBS="-L${FFMPEG_PREFIX}/${LIB_ARCH}"
-FFMPEG_CFLAGS="-I${FFMPEG_PREFIX}/include"
+FFMPEG_LIBS=`pkg-config --cflags libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale`
+FFMPEG_CFLAGS=`pkg-config --cflags libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale`
 
 
 
--- configure.ac.old	2011-08-23 12:10:32.000000000 -0300
+++ configure.ac	2012-09-26 18:16:44.146848335 -0300
@@ -88,8 +88,8 @@
     e.g. --with-ffmpeg=/usr/local])
 )
 AC_SUBST(FFMPEG_PREFIX)
-FFMPEG_LIBS="-L${FFMPEG_PREFIX}/${LIB_ARCH}"
-FFMPEG_CFLAGS="-I${FFMPEG_PREFIX}/include"
+FFMPEG_LIBS=`pkg-config --libs libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale`
+FFMPEG_CFLAGS=`pkg-config --libs libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale`
 AC_SUBST(FFMPEG_LIBS)
 AC_SUBST(FFMPEG_CFLAGS)