]> git.pld-linux.org Git - packages/mplayer.git/commitdiff
- build with internal ffmpeg libs; rel 6 auto/th/mplayer-1_0-5_rc2_6 auto/ti/mplayer-1_0-5_rc2_6
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 19 Feb 2008 00:31:15 +0000 (00:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mplayer.spec -> 1.394

mplayer.spec

index 1307131010371d2f03c4a86f8e719c86f1e0c354..5bc27db64e74352545e055bacc5b0cad60b43ff9 100644 (file)
@@ -56,6 +56,7 @@
 %bcond_with    amr             # enable 3GPP Adaptive Multi Rate (AMR) speech codec support
 %bcond_without gnomess         # disable controling gnome screensaver
 %bcond_with    ssse3   # sse3 optimizations (needs binutils >= 2.16.92)
+%bcond_with    system_ffmpeg   # use ffmpeg-devel, rather bundled sources (needs more work or mplayer snapshot)
 
 %ifnarch %{ix86}
 %undefine      with_win32
@@ -74,7 +75,7 @@
 %endif
 
 %define                subver  rc2
-%define                rel             5.5
+%define                rel             6
 
 Summary:       MPlayer - THE Movie Player for UN*X
 Summary(de.UTF-8):     MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player
@@ -147,7 +148,7 @@ BuildRequires:      amrwb-devel >= 5.3.0
 %{?with_esd:BuildRequires:     esound-devel}
 BuildRequires: faac-devel
 %{?with_faad:BuildRequires:    faad2-devel >= 2.0}
-BuildRequires: ffmpeg-devel >= 0.4.9-3.20070626.1.1
+%{?with_system_ffmpeg:BuildRequires:   ffmpeg-devel >= 0.4.9-3.20070626.1.1}
 BuildRequires: freetype-devel
 BuildRequires: fribidi-devel
 %{?with_vidix:BuildRequires:   vidix-devel}
@@ -340,7 +341,7 @@ for a in mencoder-on2flixenglinux/*.diff; do
        patch -p0 < $a
 done
 
-%patch22 -p1
+%{?with_system_ffmpeg:%patch22 -p1}
 %patch23 -p1
 %patch24 -p0
 cd stream
@@ -352,6 +353,11 @@ cd -
 sed -e '/Delete this default/d' etc/example.conf > etc/mplayer.conf
 rm -f font-*/runme
 
+%if %{with system_ffmpeg}
+# using external ffmpeg, but mplayer adds these to includepath
+rm -rf libavcodec libavdevice libavformat libavutil libpostproc libswscale
+%endif
+
 %build
 %if %{with shared}
 CFLAGS="%{rpmcflags} -fPIC"
@@ -371,6 +377,7 @@ set -x
        --with-extraincdir=%{_includedir}/xvid \
        --with-extralibdir=%{?_x_libraries}%{!?_x_libraries:%{_libdir}} \
        --enable-menu \
+%if %{with system_ffmpeg}
        --disable-libavutil_a \
        --disable-libavcodec_a \
        --disable-libavformat_a \
@@ -379,6 +386,7 @@ set -x
        --enable-libavcodec_so \
        --enable-libavformat_so \
        --enable-libpostproc_so \
+%endif
 %ifnarch %{ix86} %{x8664}
        --disable-mmx \
        --disable-mmxext \
This page took 0.664134 seconds and 4 git commands to generate.