[packages/gstreamer0.10-ffmpeg: 38/50] - added vdpau bcond (for FFmpeg) - proper gstreamer deps

jajcus jajcus at pld-linux.org
Thu Jan 10 12:32:11 CET 2013


commit beeb03a5f389ac58295f00213a955b875d3b57aa
Author: Karol Krenski <charles at pld-linux.org>
Date:   Sun Sep 13 21:32:01 2009 +0000

    - added vdpau bcond (for FFmpeg)
    - proper gstreamer deps
    
    Changed files:
        gstreamer-ffmpeg.spec -> 1.34

 gstreamer-ffmpeg.spec | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/gstreamer-ffmpeg.spec b/gstreamer-ffmpeg.spec
index 049bc27..b87a65d 100644
--- a/gstreamer-ffmpeg.spec
+++ b/gstreamer-ffmpeg.spec
@@ -1,5 +1,9 @@
-%define gstname gst-ffmpeg
-%define gst_major_ver   0.10
+# Conditional build:
+%bcond_with	vdpau		# build FFmpeg with nvidia VDPAU
+#
+%define		gstname gst-ffmpeg
+%define		gst_major_ver   0.10
+%define		gst_req_ver	0.10.22
 #
 %include	/usr/lib/rpm/macros.gstreamer
 #
@@ -15,14 +19,18 @@ Source0:	http://gstreamer.freedesktop.org/src/gst-ffmpeg/%{gstname}-%{version}.t
 URL:		http://gstreamer.net/
 BuildRequires:	autoconf >= 2.52
 BuildRequires:	automake
-BuildRequires:	gstreamer-devel >= 0.10.22
+BuildRequires:	gstreamer-devel >= %{gst_req_ver}
 # libavutil,libswscale needed
-BuildRequires:	gstreamer-plugins-base-devel >= 0.10.13
+BuildRequires:	gstreamer-plugins-base-devel >= %{gst_req_ver}
 BuildRequires:	liboil-devel >= 0.3.6
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.470
-Requires:	gstreamer-plugins-base >= 0.10.13
+%if %{with vdpau}
+BuildRequires:	xorg-driver-video-nvidia-devel >= 180.22
+BuildRequires:	xorg-lib-libXvMC-devel
+%endif
+Requires:	gstreamer-plugins-base >= %{gst_req_ver}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -59,6 +67,7 @@ najpopularniejsze formaty multimedialne.
 
 %configure \
 	CPPFLAGS="%{rpmcppflags}" \
+	%{?with_vdpau:--with-ffmpeg-extra-configure="--enable-vdpau"} \
 	--disable-static
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-ffmpeg.git/commitdiff/4744a193b697bff728371a9ccd96c60bc28bc18e



More information about the pld-cvs-commit mailing list