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.

81 lines
2.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/jimmy/mplayer/mplayer.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. mplayer_postmake() {
  23. if type -p gtk-config > /dev/null ; then
  24. echo "extracting the default GUI ..."
  25. mkdir -p $datadir/$pkg/Skin
  26. tar $taropt $archdir/default-1.7.tar.bz2 -C $datadir/$pkg/Skin
  27. fi
  28. echo "extracting the default font ..."
  29. tar $taropt $archdir/font-arial-iso-8859-1.tar.bz2 -C $datadir/$pkg
  30. rm -rf $datadir/$pkg/font
  31. ln -sf font-arial-24-iso-8859-1 $datadir/$pkg/font
  32. echo "correcting permissions and ownership ..."
  33. chown -R root.root $datadir/$pkg/*
  34. find $datadir/$pkg -type d | xargs -r chmod 0755
  35. find $datadir/$pkg -type f | xargs -r chmod 0644
  36. cp -fR DOCS/*.{css,html} DOCS/tech $docdir
  37. rm -f $docdir/users_against_developers.html
  38. mv -f $datadir/$pkg/README* $docdir
  39. # create a default configuration
  40. cat <<- 'EOT' > $sysconfdir/mplayer.conf
  41. # Write your default config options here!
  42. framedrop=yes
  43. menu=yes
  44. # vop=pp
  45. # autoq=6
  46. EOT
  47. cp -f etc/{input,menu}.conf $sysconfdir
  48. echo "TAB menu up" >> $sysconfdir/input.conf
  49. rm -f $sysconfdir/*.older
  50. }
  51. sysconfdir="$sysconfdir/mplayer"
  52. confopt="--prefix=$root/$prefix --confdir=$sysconfdir --enable-menu"
  53. confopt="$confopt --enable-linux-devfs --with-extraincdir=/usr/include/libpng"
  54. confopt="$confopt --enable-fbdev --enable-largefiles --enable-streaming"
  55. confopt="$confopt --enable-shared-pp"
  56. if [ $arch = x86 ] ; then
  57. var_append confopt " " "--with-win32libdir=$root/$prefix/lib/win32"
  58. fi
  59. if test "$ROCKCFG_PKG_MPLAYER_RUN_CPUDETECT" != 0 ; then
  60. var_append confopt " " "--enable-runtime-cpudetection"
  61. fi
  62. if test "$ROCKCFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ; then
  63. var_append confopt " " "--enable-bl"
  64. fi
  65. type -p gtk-config > /dev/null && var_append confopt " " "--enable-gui"
  66. test "$ROCKCFG_DISABLE_NLS" = 1 && var_append confopt " " "--disable-i18n"
  67. postmake=mplayer_postmake