packages: gstreamer-ffmpeg/gstreamer-ffmpeg.spec - added vdpau bcond (for F...

charles charles at pld-linux.org
Sun Sep 13 23:32:07 CEST 2009


Author: charles                      Date: Sun Sep 13 21:32:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added vdpau bcond (for FFmpeg)
- proper gstreamer deps

---- Files affected:
packages/gstreamer-ffmpeg:
   gstreamer-ffmpeg.spec (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec
diff -u packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec:1.33 packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec:1.34
--- packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec:1.33	Tue Jun 30 11:16:04 2009
+++ packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec	Sun Sep 13 23:32:01 2009
@@ -1,6 +1,10 @@
 # $Revision$, $Date$
-%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
 #
@@ -16,14 +20,18 @@
 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
@@ -60,6 +68,7 @@
 
 %configure \
 	CPPFLAGS="%{rpmcppflags}" \
+	%{?with_vdpau:--with-ffmpeg-extra-configure="--enable-vdpau"} \
 	--disable-static
 %{__make}
 
@@ -87,6 +96,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.34  2009/09/13 21:32:01  charles
+- added vdpau bcond (for FFmpeg)
+- proper gstreamer deps
+
 Revision 1.33  2009/06/30 09:16:04  patrys
 - 0.10.8
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gstreamer-ffmpeg/gstreamer-ffmpeg.spec?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list