actions.py 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. shelltools.system("./configure --prefix=/usr \
  12. --mandir=/usr/share/man \
  13. --disable-debug \
  14. --disable-static \
  15. --disable-stripping \
  16. --enable-avfilter \
  17. --enable-avresample \
  18. --enable-fontconfig \
  19. --enable-gnutls \
  20. --enable-gpl \
  21. --enable-libass \
  22. --enable-libbluray \
  23. --enable-libfreetype \
  24. --enable-libgsm \
  25. --enable-libmodplug \
  26. --enable-libmp3lame \
  27. --enable-libopencore_amrnb \
  28. --enable-libopencore_amrwb \
  29. --enable-libopenjpeg \
  30. --enable-libopus \
  31. --enable-libpulse \
  32. --enable-librtmp \
  33. --enable-libspeex \
  34. --enable-libtheora \
  35. --enable-libv4l2 \
  36. --enable-libvorbis \
  37. --enable-libvpx \
  38. --enable-libx264 \
  39. --enable-libx265 \
  40. --enable-libxvid \
  41. --enable-pic \
  42. --enable-postproc \
  43. --enable-runtime-cpudetect \
  44. --enable-shared \
  45. --enable-swresample \
  46. --enable-vdpau \
  47. --enable-version3 \
  48. --enable-libdc1394 \
  49. --enable-libcelt \
  50. --enable-frei0r \
  51. --enable-libcdio \
  52. --enable-libvo-amrwbenc \
  53. --enable-nonfree")
  54. def build():
  55. autotools.make()
  56. autotools.make('tools/qt-faststart')
  57. autotools.make("doc/ff{mpeg,play}.1")
  58. def install():
  59. autotools.rawInstall("DESTDIR=%s install-man" % get.installDIR())
  60. pisitools.dobin("tools/qt-faststart")
  61. pisitools.dodoc("Changelog", "README.md", "LICENSE.md", "COPYING*")