Main MPlayer Installation
There are two patches related to FFmpeg-6.1 that need to be
applied. Do that now:
patch -Np1 -i ../MPlayer-1.5-upstream_ffmpg6_fixes-1.patch &&
patch -Np1 -d ffmpeg < ../ffmpeg-6.0-binutils_2.41-1.patch
注記
The package maintainers recommend building without any
optimizations.
You may wish to examine the output from ./configure --help to find out
what additional parameters to configure are needed to include
the dependencies you have installed on your system.
Install MPlayer by running the
following commands:
./configure --prefix=/usr \
--confdir=/etc/mplayer \
--enable-dynamic-plugins \
--disable-libmpeg2-internal \
--enable-menu \
--enable-runtime-cpudetection \
--enable-gui &&
make
If you wish to build the HTML documentation, issue the following
command:
make doc
This package does not come with a test suite.
Now, as the root
user:
make install &&
ln -svf ../icons/hicolor/48x48/apps/mplayer.png \
/usr/share/pixmaps/mplayer.png
To install the HTML documentation, issue the following commands
as the root
user:
install -v -m755 -d /usr/share/doc/mplayer-1.5 &&
install -v -m644 DOCS/HTML/en/* \
/usr/share/doc/mplayer-1.5
You will only need codecs.conf
if
you want to change its properties, as the main binary contains an
internal copy of it. Ensure any changes you make to codecs.conf
achieve the desired results, as
incorrect entries in this file have been known to cause errors
and render the player unusable. If necessary, create the file as
the root
user:
install -v -m644 etc/codecs.conf /etc/mplayer
You may alternatively want to copy all the default configuration
files to /etc/mplayer
for future
reference or more customization ability. As the root
user:
install -v -m644 etc/*.conf /etc/mplayer
Skin Installation (Optional)
To enable the Gtk+ 2 frontend of MPlayer, you'll need to install at least one
skin. Extract the desired skin and create the default location
(as the root
user):
tar -xvf ../Clearlooks-2.0.tar.bz2 \
-C /usr/share/mplayer/skins &&
ln -sfvn Clearlooks /usr/share/mplayer/skins/default
注記
This package installs icon files into the /usr/share/icons/hicolor
hierarchy and
desktop files into the /usr/share/applications
hierarchy. You can
improve system performance and memory usage by updating
/usr/share/icons/hicolor/index.theme
and
/usr/share/applications/mimeinfo.cache
. To
perform the update you must have GTK+-3.24.38
installed (for the icon cache) and desktop-file-utils-0.27 (for the
desktop cache) and issue the following commands as the
root
user:
gtk-update-icon-cache -qtf /usr/share/icons/hicolor &&
update-desktop-database -q