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.

39 lines
1.3 KiB

  1. mplayer_postmake() {
  2. mkdir -p ${datadir}/${pkg}
  3. echo "extracting the default font ..."
  4. tar ${taropt} ${archdir}/font-arial-iso-8859-1.tar.bz2 -C ${datadir}/${pkg}
  5. rm -rf ${datadir}/${pkg}/font
  6. ln -sf font-arial-24-iso-8859-1 ${datadir}/${pkg}/font
  7. echo "create a default configuration ..."
  8. cat <<- EOT > ${sysconfdir}/mplayer.conf
  9. framedrop=yes
  10. menu=yes
  11. font=/usr/share/mplayer/font/font.desc
  12. EOT
  13. cp -f etc/{input,menu,codecs}.conf ${sysconfdir}
  14. echo "TAB menu up" >> ${sysconfdir}/input.conf
  15. rm -f ${sysconfdir}/*.older
  16. echo "correcting permissions and ownership ..."
  17. chown -R root.root ${datadir}/${pkg} ${docdir} ${sysconfdir}
  18. find ${datadir}/${pkg} ${docdir} ${sysconfdir} -type d | xargs -r chmod 0755
  19. find ${datadir}/${pkg} ${docdir} ${sysconfdir} -type f | xargs -r chmod 0644
  20. }
  21. var_append confopt " " "--enable-static"
  22. sysconfdir="${sysconfdir}/mplayer"
  23. var_append confopt " " "--prefix=${root}/${prefix} --confdir=${sysconfdir} --enable-menu"
  24. var_append confopt " " "--enable-linux-devfs --with-extraincdir=/usr/include/libpng"
  25. var_append confopt " " "--enable-fbdev --enable-largefiles"
  26. if [ ${arch} = x86 ] ; then
  27. var_append confopt " " "--with-win32libdir=${root}/${prefix}/lib/win32"
  28. fi
  29. var_append confopt " " "--enable-runtime-cpudetection"
  30. var_append confopt " " "--disable-i18n"
  31. postmake=mplayer_postmake