--- /dev/null
+--- configure.orig 2012-07-09 07:30:07.231478952 +0200
++++ configure 2012-07-09 08:46:38.701177339 +0200
+@@ -3222,7 +3222,7 @@
+ enabled libnut && require libnut libnut.h nut_demuxer_init -lnut
+ enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
+ enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
+-enabled libopencv && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
++enabled libopencv && add_extralibs -lopencv_core -lopencv_features2d -lopencv_imgproc -lopencv_objdetect -lgcrypt
+ enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
+ enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
+ enabled librtmp && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo
Name: ffmpeg
Version: 0.11.1
-Release: 2
+Release: 3
# LGPL or GPL, chosen at configure time (GPL version is more featured)
# (postprocessing, some filters, x264, xavs, xvid, x11grab)
# using v3 allows Apache-licensed libs (opencore-amr, libvo-*enc)
Source2: ffserver.sysconfig
Source3: ffserver.conf
Patch0: %{name}-gsm.patch
+Patch1: %{name}-opencv24.patch
URL: http://www.ffmpeg.org/
%{?with_openal:BuildRequires: OpenAL-devel}
BuildRequires: SDL-devel >= 1.2.1
%prep
%setup -q
%patch0 -p1
+%patch1 -p0
# package the grep result for mplayer, the result formatted as ./mplayer/configure
cat <<EOF > ffmpeg-avconfig
--libdir=%{_libdir} \
--shlibdir=%{_libdir} \
--mandir=%{_mandir} \
- --cc="%{__cc}" \
--extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}" \
--extra-ldflags="%{rpmcflags} %{rpmldflags}" \
+ --cc="%{__cc}" \
--disable-debug \
--disable-optimizations \
--disable-stripping \