Author: rathann
Update of /cvs/free/rpms/mplayer/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv11048
Modified Files:
mplayer.spec
Log Message:
* Tue Oct 28 2008 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.102.20080903svn
- rework the build system
- rebuild for new libcaca
Index: mplayer.spec
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/mplayer.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mplayer.spec 16 Oct 2008 20:03:52 -0000 1.7
+++ mplayer.spec 28 Oct 2008 22:27:25 -0000 1.8
@@ -6,7 +6,7 @@
Name: mplayer
Version: 1.0
-Release: 0.101.%{pre}%{?dist}
+Release: 0.102.%{pre}%{?dist}
Summary: Movie player playing most video formats and DVDs
Group: Applications/Multimedia
@@ -135,6 +135,54 @@
%description doc
MPlayer documentation in various languages.
+%define mp_configure \
+./configure \\\
+ --prefix=%{_prefix} \\\
+ --bindir=%{_bindir} \\\
+ --datadir=%{_datadir}/mplayer \\\
+ --mandir=%{_mandir} \\\
+ --confdir=%{_sysconfdir}/mplayer \\\
+ --libdir=%{_libdir} \\\
+ --codecsdir=%{codecdir} \\\
+ \\\
+ --target=%{_target_cpu}-%{_target_os} \\\
+ --language=all \\\
+ \\\
+ --enable-joystick \\\
+ --enable-largefiles \\\
+ --enable-lirc \\\
+ --enable-menu \\\
+ --enable-runtime-cpudetection \\\
+ --enable-unrarexec \\\
+ \\\
+ --disable-dvdread-internal \\\
+ --disable-libdvdcss-internal \\\
+ %{!?_with_nemesi:--disable-nemesi} \\\
+ \\\
+ --disable-faac-lavc \\\
+ --disable-mp3lame-lavc \\\
+ --disable-x264-lavc \\\
+ \\\
+ %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \\\
+ --disable-faad-internal \\\
+ %{!?_with_libmad:--disable-mad} \\\
+ --disable-tremor-internal \\\
+ %{?_with_xmms:--enable-xmms} \\\
+ %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \\\
+ \\\
+ --disable-bitmap-font \\\
+ --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \\\
+ --with-fribidi-config="pkg-config fribidi" \\\
+ %{!?_with_svgalib:--disable-svga} \\\
+ --disable-termcap \\\
+ --enable-xvmc \\\
+ --with-xvmclib=XvMCW \\\
+ \\\
+ %{!?_with_arts:--disable-arts} \\\
+ %{!?_with_esound:--disable-esd} \\\
+ %{!?_with_jack:--disable-jack} \\\
+ %{!?_with_openal:--disable-openal} \\\
+
%prep
%if %{svn}
@@ -165,105 +213,14 @@
%ifarch ppc
export CFLAGS="$CFLAGS -maltivec -mabi=altivec"
%endif
-./configure \
- --prefix=%{_prefix} \
- --bindir=%{_bindir} \
- --datadir=%{_datadir}/mplayer \
- --mandir=%{_mandir} \
- --confdir=%{_sysconfdir}/mplayer \
- --libdir=%{_libdir} \
- --codecsdir=%{codecdir} \
- \
- --disable-faac-lavc \
- --disable-mp3lame-lavc \
- --disable-x264-lavc \
- \
- --enable-gui \
- --enable-largefiles \
- --enable-unrarexec \
- --disable-termcap \
- --disable-bitmap-font \
- --enable-lirc \
- --enable-joystick \
- %{!?_with_nemesi:--disable-nemesi} \
- --disable-dvdread-internal \
- --disable-libdvdcss-internal \
- --enable-menu \
- \
- --disable-faad-internal \
- --disable-tremor-internal \
- %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \
- %{!?_with_libmad:--disable-mad} \
- %{?_with_xmms:--enable-xmms} \
- \
- --enable-xvmc \
- --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \
- %{!?_with_svgalib:--disable-svga} \
- \
- %{!?_with_arts:--disable-arts} \
- %{!?_with_esound:--disable-esd} \
- %{!?_with_jack:--disable-jack} \
- %{!?_with_openal:--disable-openal} \
- \
- --enable-runtime-cpudetection \
- --target=%{_target_cpu}-%{_target_os} \
- --language=all \
- \
- --with-fribidi-config="pkg-config fribidi" \
- %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \
- --with-xvmclib=XvMCW
+%{mp_configure}--enable-gui
%{__make} %{?_smp_mflags}
mv -f mplayer gmplayer
%{__make} distclean
-./configure \
- --prefix=%{_prefix} \
- --bindir=%{_bindir} \
- --datadir=%{_datadir}/mplayer \
- --mandir=%{_mandir} \
- --confdir=%{_sysconfdir}/mplayer \
- --libdir=%{_libdir} \
- --codecsdir=%{codecdir} \
- \
- --disable-faac-lavc \
- --disable-mp3lame-lavc \
- --disable-x264-lavc \
- \
- --enable-largefiles \
- --enable-unrarexec \
- --disable-termcap \
- --disable-bitmap-font \
- --enable-lirc \
- --enable-joystick \
- %{!?_with_nemesi:--disable-nemesi} \
- --disable-dvdread-internal \
- --disable-libdvdcss-internal \
- --enable-menu \
- \
- --disable-faad-internal \
- --disable-tremor-internal \
- %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \
- %{!?_with_libmad:--disable-mad} \
- %{?_with_xmms:--enable-xmms} \
- \
- --enable-xvmc \
- --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \
- %{!?_with_svgalib:--disable-svga} \
- \
- %{!?_with_arts:--disable-arts} \
- %{!?_with_esound:--disable-esd} \
- %{!?_with_jack:--disable-jack} \
- %{!?_with_openal:--disable-openal} \
- \
- --enable-runtime-cpudetection \
- --target=%{_target_cpu}-%{_target_os} \
- --language=all \
- \
- --with-fribidi-config="pkg-config fribidi" \
- %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \
- --with-xvmclib=XvMCW
+%{mp_configure}
%{__make} %{?_smp_mflags}
@@ -390,6 +347,10 @@
%changelog
+* Tue Oct 28 2008 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.102.20080903svn
+- rework the build system
+- rebuild for new libcaca
+
* Thu Oct 16 2008 Dominik Mierzejewski <rpm at greysector.net> -
1.0-0.101.20080903svn
- remove libdvdcss copy from the source tarball
Show replies by date