OpenSDE Packages Database (without history before r20070)
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.

111 lines
3.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mplayer/mplayer.conf
  5. # Copyright (C) 2006 - 2010 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. mplayer_postmake() {
  17. if pkginstalled gtk+12 || pkginstalled gtk+ ; then
  18. echo "extracting the default GUI ..."
  19. mkdir -p $datadir/$pkg/Skin
  20. tar $taropt `match_source_file -p Blue`
  21. cp -rvf Blue $datadir/$pkg/Skin/
  22. rm -rf $datadir/$pkg/Skin/default
  23. ln -sfv Blue $datadir/$pkg/Skin/default
  24. fi
  25. echo "extracting the default font ..."
  26. tar $taropt `match_source_file -p font-arial-iso-8859` -C $datadir/$pkg
  27. rm -rf $datadir/$pkg/font
  28. ln -sf font-arial-iso-8859-1 $datadir/$pkg/font
  29. #echo "copy/move some documentation ..."
  30. #cp -fR DOCS/HTML/en/*.{css,html} DOCS/tech $docdir
  31. #mv -f $datadir/$pkg/README* $docdir
  32. echo "create a default configuration ..."
  33. cat <<- 'EOT' > $sysconfdir/mplayer.conf
  34. # Write your default config options here!
  35. framedrop=yes
  36. menu=yes
  37. # vop=pp
  38. # autoq=6
  39. EOT
  40. cp -f etc/{input,menu,codecs}.conf $sysconfdir
  41. echo "TAB menu up" >> $sysconfdir/input.conf
  42. rm -f $sysconfdir/*.older
  43. echo "correcting permissions and ownership ..."
  44. chown -R root:root $datadir/$pkg $docdir $sysconfdir
  45. find $datadir/$pkg $docdir $sysconfdir -type d | xargs -r chmod 0755
  46. find $datadir/$pkg $docdir $sysconfdir -type f | xargs -r chmod 0644
  47. }
  48. sysconfdir="$sysconfdir/mplayer"
  49. confopt="--target=$(echo $arch | arch2uname)-Linux"
  50. var_append confopt ' ' "--prefix=$root/$prefix --confdir=$sysconfdir"
  51. var_append confopt " " "--enable-menu \
  52. --with-extraincdir=/usr/include/libpng \
  53. --enable-fbdev --enable-largefiles"
  54. case "$arch" in
  55. x86) var_append confopt " " "--with-win32libdir=$root/$prefix/lib/win32"
  56. var_append GCC_WRAPPER_APPEND ' ' "-fomit-frame-pointer"
  57. ;;
  58. powerpc)
  59. # we need to remove the generic cpu selection to get the run-time
  60. # detected altivec code built ... :-( -ReneR
  61. var_remove_regex GCC_WRAPPER_INSERT " " "-mcpu=.*"
  62. ;;
  63. esac
  64. if [ "$SDECFG_PKG_MPLAYER_RUN_CPUDETECT" != 0 ]; then
  65. var_append confopt " " "--enable-runtime-cpudetection"
  66. fi
  67. if [ "$SDECFG_PKG_MPLAYER_BLINKENLIGHTS" != 0 ]; then
  68. var_append confopt " " "--enable-bl"
  69. fi
  70. if pkginstalled gtk+; then
  71. var_append confopt " " "--enable-gui"
  72. elif pkginstalled gtk+12; then
  73. var_append confopt " " "--enable-old-gtk"
  74. fi
  75. # TODO: used system avformat and postprocess ...
  76. if pkginstalled ffmpeg; then
  77. var_append confopt " " "--disable-libavcodec"
  78. var_append confopt " " "--disable-libavformat"
  79. fi
  80. if pkginstalled xmms; then
  81. var_append confopt " " "--enable-xmms"
  82. var_append confopt " " "--with-xmmslibdir=`pkgprefix libdir xmms`"
  83. fi
  84. if pkginstalled bio2jack; then
  85. var_append confopt " " "--enable-jack"
  86. var_append GCC_WRAPPER_APPEND " " "-ljack"
  87. fi
  88. var_append confopt " " "--enable-tv-v4l2"
  89. var_append confopt " " "--enable-tv-v4l"
  90. test "$SDECFG_DISABLE_NLS" = 0 || var_append confopt " " "--disable-i18n"
  91. # mplayer is not fully lib64 aware, installs (vidix, ...) in /usr/lib
  92. var_append confopt ' ' "--libdir=$root/$libdir"
  93. hook_add postmake 5 mplayer_postmake
  94. var_append GCC_WRAPPER_APPEND ' ' '-std=gnu99'