|
|
@@ -0,0 +1,139 @@
|
|
|
+##
|
|
|
+## mplayer.spec -- OpenPKG RPM Specification
|
|
|
+## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
|
|
|
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
|
|
|
+## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
|
|
|
+##
|
|
|
+## Permission to use, copy, modify, and distribute this software for
|
|
|
+## any purpose with or without fee is hereby granted, provided that
|
|
|
+## the above copyright notice and this permission notice appear in all
|
|
|
+## copies.
|
|
|
+##
|
|
|
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
|
|
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
|
|
|
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
+## SUCH DAMAGE.
|
|
|
+##
|
|
|
+
|
|
|
+# ms: FIXME Insert the following block after install PROG to BINDIR
|
|
|
+# FIXME The fibmap_mplayer allows viewing of CSS encrypted media
|
|
|
+# %{l_shtool} install -c -o %{l_susr} -g %{l_sgrp} -m 4755 \
|
|
|
+# fibmap_mplayer \
|
|
|
+# $RPM_BUILD_ROOT%{l_prefix}/bin/
|
|
|
+
|
|
|
+# package information
|
|
|
+Name: mplayer
|
|
|
+Summary: Multimedia Player
|
|
|
+URL: http://www.mplayerhq.hu/
|
|
|
+Vendor: Árpád Gereöffy et al.
|
|
|
+Packager: The OpenPKG Project
|
|
|
+Distribution: OpenPKG [EVAL]
|
|
|
+Group: Video
|
|
|
+License: GPL
|
|
|
+Version: 0.90
|
|
|
+Release: 20030508
|
|
|
+
|
|
|
+# list of sources
|
|
|
+Source0: ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.bz2
|
|
|
+Source1: ftp://ftp1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
|
|
+
|
|
|
+# build information
|
|
|
+Prefix: %{l_prefix}
|
|
|
+BuildRoot: %{l_buildroot}
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030103, X11, zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs
|
|
|
+PreReq: OpenPKG, openpkg >= 20030103, X11, zlib, libiconv, sdl, freetype, jpeg, png, vorbis-libs
|
|
|
+AutoReq: no
|
|
|
+AutoReqProv: no
|
|
|
+
|
|
|
+%description
|
|
|
+ This is the Unix movie player. MPlayer can play most standard
|
|
|
+ video formats out of the box and almost all others with the help
|
|
|
+ of external codecs. MPlayer works best from the command line, but
|
|
|
+ visual feedback for many functions is available from its onscreen
|
|
|
+ status display (OSD), which is also used for displaying subtitles.
|
|
|
+
|
|
|
+%prep
|
|
|
+ %setup -q -n MPlayer-%{version}
|
|
|
+
|
|
|
+%build
|
|
|
+ CC="%{l_cc}" \
|
|
|
+ CXX="%{l_cxx}" \
|
|
|
+ CFLAGS="%{l_cflags -O}" \
|
|
|
+ CXXFLAGS="%{l_cxxflags -O}" \
|
|
|
+ CPPFLAGS="%{l_cppflags}" \
|
|
|
+ LDFLAGS="%{l_ldflags}" \
|
|
|
+ ./configure \
|
|
|
+ --prefix=%{l_prefix} \
|
|
|
+ --confdir=%{l_prefix}/etc/mplayer/ \
|
|
|
+ --enable-largefiles \
|
|
|
+ --enable-streaming \
|
|
|
+ --enable-xvid \
|
|
|
+ --enable-freetype \
|
|
|
+ --enable-vorbis \
|
|
|
+ --enable-menu \
|
|
|
+ --enable-jpeg \
|
|
|
+ --enable-png \
|
|
|
+ --enable-sdl \
|
|
|
+ --enable-x11 \
|
|
|
+ --enable-vesa \
|
|
|
+ --enable-runtime-cpudetection \
|
|
|
+ --with-x11incdir=`%{l_prefix}/etc/rc --query x11_incdir` \
|
|
|
+ --with-x11libdir=`%{l_prefix}/etc/rc --query x11_libdir` \
|
|
|
+ --with-extraincdir=%{l_prefix}/include/ \
|
|
|
+ --with-extralibdir=%{l_prefix}/lib/ \
|
|
|
+ --with-sdl-config=%{l_prefix}/bin/sdl-config \
|
|
|
+ --with-freetype-config=%{l_prefix}/bin/freetype-config \
|
|
|
+ --enable-static \
|
|
|
+ --disable-i18n
|
|
|
+ %{l_make} %{l_mflags -O}
|
|
|
+
|
|
|
+%install
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+
|
|
|
+ # create installation tree
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/mplayer \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/font
|
|
|
+
|
|
|
+ # install binaries
|
|
|
+ %{l_shtool} install -s -c -m 755 \
|
|
|
+ mplayer \
|
|
|
+ mencoder \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin/
|
|
|
+
|
|
|
+ # install manpages
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ DOCS/mplayer.1 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1/
|
|
|
+ (
|
|
|
+ cd $RPM_BUILD_ROOT%{l_prefix}/man/man1
|
|
|
+ ln -sf mplayer.1 mencoder.1
|
|
|
+ )
|
|
|
+
|
|
|
+ # install codecs configuration
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
+ etc/codecs.conf \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/mplayer/
|
|
|
+
|
|
|
+ # install fonts for OSD and subtitles
|
|
|
+ %{l_bzip2} -dc %{SOURCE font-arial-iso-8859-1.tar.bz2} | %{l_tar} -xvf -
|
|
|
+ cp -f font-arial-24-iso-8859-1/* $RPM_BUILD_ROOT%{l_prefix}/share/mplayer/font/
|
|
|
+
|
|
|
+ # determine installation files
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
+
|
|
|
+%files -f files
|
|
|
+
|
|
|
+%clean
|
|
|
+ rm -rf $RPM_BUILD_ROOT
|
|
|
+
|