# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../mplayer/mplayer.conf # Copyright (C) 2006 - 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # # More information can be found in the files COPYING and README. # # 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; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- mplayer_postmake() { if pkginstalled gtk+12 || pkginstalled gtk+ ; then echo "extracting the default GUI ..." mkdir -p $datadir/$pkg/Skin tar $taropt `match_source_file -p Blue` cp -rvf Blue $datadir/$pkg/Skin/ rm -rf $datadir/$pkg/Skin/default ln -sfv Blue $datadir/$pkg/Skin/default fi echo "extracting the default font ..." tar $taropt `match_source_file -p font-arial-iso-8859` -C $datadir/$pkg rm -rf $datadir/$pkg/font ln -sf font-arial-iso-8859-1 $datadir/$pkg/font #echo "copy/move some documentation ..." #cp -fR DOCS/HTML/en/*.{css,html} DOCS/tech $docdir #mv -f $datadir/$pkg/README* $docdir echo "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 echo "correcting permissions and ownership ..." chown -R root:root $datadir/$pkg $docdir $sysconfdir find $datadir/$pkg $docdir $sysconfdir -type d | xargs -r chmod 0755 find $datadir/$pkg $docdir $sysconfdir -type f | xargs -r chmod 0644 } sysconfdir="$sysconfdir/mplayer" confopt="--target=$(echo $arch | arch2uname)-Linux" var_append confopt ' ' "--prefix=$root/$prefix --confdir=$sysconfdir" var_append confopt " " "--enable-menu \ --with-extraincdir=/usr/include/libpng \ --enable-fbdev --enable-largefiles" case "$arch" in x86) var_append confopt " " "--with-win32libdir=$root/$prefix/lib/win32" var_append GCC_WRAPPER_APPEND ' ' "-fomit-frame-pointer" ;; powerpc) # we need to remove the generic cpu selection to get the run-time # detected altivec code built ... :-( -ReneR var_remove_regex GCC_WRAPPER_INSERT " " "-mcpu=.*" ;; esac if [ "$SDECFG_PKG_MPLAYER_RUN_CPUDETECT" != 0 ]; then var_append confopt " " "--enable-runtime-cpudetection" fi if [ "$SDECFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ]; then var_append confopt " " "--enable-bl" fi if pkginstalled gtk+; then var_append confopt " " "--enable-gui" elif pkginstalled gtk+12; then var_append confopt " " "--enable-old-gtk" fi # TODO: used system avformat and postprocess ... if pkginstalled ffmpeg; then var_append confopt " " "--disable-libavcodec" var_append confopt " " "--disable-libavformat" fi if pkginstalled xmms; then var_append confopt " " "--enable-xmms" var_append confopt " " "--with-xmmslibdir=`pkgprefix libdir xmms`" fi if pkginstalled bio2jack; then var_append confopt " " "--enable-jack" var_append GCC_WRAPPER_APPEND " " "-ljack" fi if pkginstalled directfb; then var_append confopt " " "--enable-directfb" fi var_append confopt " " "--enable-tv-v4l2" var_append confopt " " "--enable-tv-v4l" test "$SDECFG_DISABLE_NLS" = 0 || var_append confopt " " "--disable-i18n" # mplayer is not fully lib64 aware, installs (vidix, ...) in /usr/lib var_append confopt ' ' "--libdir=$root/$libdir" hook_add postmake 5 mplayer_postmake