mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
2.8 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/jimmy/mplayer/mplayer.conf
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
mplayer_postmake() {
if type -p gtk-config > /dev/null ; then
echo "extracting the default GUI ..."
mkdir -p $datadir/$pkg/Skin
tar $taropt $archdir/default-1.7.tar.bz2 -C $datadir/$pkg/Skin
fi
echo "extracting the default font ..."
tar $taropt $archdir/font-arial-iso-8859-1.tar.bz2 -C $datadir/$pkg
rm -rf $datadir/$pkg/font
ln -sf font-arial-24-iso-8859-1 $datadir/$pkg/font
echo "copy/move some documentation ..."
cp -fR DOCS/*.{css,html} DOCS/tech $docdir
rm -f $docdir/users_against_developers.html
mv -f $datadir/$pkg/README* $docdir
echo "correcting permissions and ownership ..."
chown -R root.root $datadir/$pkg/*
find $datadir/$pkg $docdir -type d | xargs -r chmod 0755
find $datadir/$pkg $docdir -type f | xargs -r chmod 0644
# create a default configuration
cat <<- 'EOT' > $sysconfdir/mplayer.conf
# Write your default config options here!
framedrop=yes
menu=yes
# vop=pp
# autoq=6
EOT
cp -f etc/{input,menu,codecs}.conf $sysconfdir
echo "TAB menu up" >> $sysconfdir/input.conf
rm -f $sysconfdir/*.older
}
sysconfdir="$sysconfdir/mplayer"
confopt="--prefix=$root/$prefix --confdir=$sysconfdir --enable-menu"
confopt="$confopt --enable-linux-devfs --with-extraincdir=/usr/include/libpng"
confopt="$confopt --enable-fbdev --enable-largefiles --enable-streaming"
confopt="$confopt --enable-shared-pp"
if [ $arch = x86 ] ; then
var_append confopt " " "--with-win32libdir=$root/$prefix/lib/win32"
fi
if test "$ROCKCFG_PKG_MPLAYER_RUN_CPUDETECT" != 0 ; then
var_append confopt " " "--enable-runtime-cpudetection"
fi
if test "$ROCKCFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ; then
var_append confopt " " "--enable-bl"
fi
type -p gtk-config > /dev/null && var_append confopt " " "--enable-gui"
test "$ROCKCFG_DISABLE_NLS" = 1 && var_append confopt " " "--disable-i18n"
postmake=mplayer_postmake