actions.py 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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-version3 \
  17. --enable-nonfree \
  18. --enable-avfilter \
  19. --enable-frei0r \
  20. --enable-gpl \
  21. --enable-ladspa \
  22. --enable-libaom \
  23. --enable-libaribb24 \
  24. --enable-libass \
  25. --enable-libbluray \
  26. --enable-libbs2b \
  27. --enable-libcelt \
  28. --enable-libcdio \
  29. --enable-libcodec2 \
  30. --enable-libdav1d \
  31. --enable-libdavs2 \
  32. --enable-libdc1394 \
  33. --enable-libfdk-aac \
  34. --enable-libflite \
  35. --enable-libfontconfig \
  36. --enable-libfreetype \
  37. --enable-libfribidi \
  38. --enable-libgme \
  39. --enable-libgsm \
  40. --enable-libiec61883 \
  41. --enable-libilbc \
  42. --enable-libjack \
  43. --enable-libkvazaar \
  44. --disable-liblensfun \
  45. --enable-libmodplug \
  46. --enable-libmp3lame \
  47. --enable-libopencore_amrnb \
  48. --enable-libopencore_amrwb \
  49. --enable-libopenjpeg \
  50. --enable-libopus \
  51. --enable-libpulse \
  52. --enable-librsvg \
  53. --enable-librubberband \
  54. --enable-librtmp \
  55. --enable-libshine \
  56. --enable-libsnappy \
  57. --enable-libsoxr \
  58. --enable-libspeex \
  59. --enable-libtheora \
  60. --enable-libtwolame \
  61. --enable-libvidstab \
  62. --enable-libv4l2 \
  63. --enable-libvo-amrwbenc \
  64. --enable-libvorbis \
  65. --enable-libvpx \
  66. --enable-libwebp \
  67. --enable-libx264 \
  68. --enable-libx265 \
  69. --enable-libxavs \
  70. --enable-libxavs2 \
  71. --enable-libxcb \
  72. --enable-libxvid \
  73. --enable-libxml2 \
  74. --enable-libzmq \
  75. --enable-libzimg \
  76. --enable-pic \
  77. --enable-postproc \
  78. --enable-librav1e \
  79. --enable-runtime-cpudetect \
  80. --enable-shared \
  81. --enable-libsvtav1 \
  82. --enable-swresample \
  83. --enable-vdpau \
  84. --enable-opencl \
  85. --enable-openssl \
  86. --enable-libdrm \
  87. --enable-libmfx \
  88. --enable-nvdec \
  89. --enable-nvenc \
  90. --enable-vaapi \
  91. --enable-vdpau \
  92. --enable-omx \
  93. --enable-libsrt \
  94. --extra-ldflags='-lasound -lm'")
  95. # --enable-openal \
  96. def build():
  97. autotools.make()
  98. autotools.make('tools/qt-faststart')
  99. autotools.make("doc/ff{mpeg,play}.1")
  100. def install():
  101. autotools.rawInstall("DESTDIR=%s install-man" % get.installDIR())
  102. pisitools.dobin("tools/qt-faststart")
  103. # pisitools.dosym("/usr/lib/libavcodec.so.60", "/usr/lib/libavcodec.so.58")
  104. # pisitools.dosym("/usr/lib/libswscale.so.7", "/usr/lib/libswscale.so.5")
  105. # pisitools.dosym("/usr/lib/libavutil.so.58", "/usr/lib/libavutil.so.56")
  106. # pisitools.dosym("/usr/lib/libswresample.so.4", "/usr/lib/libswresample.so.3")
  107. # pisitools.dosym("/usr/lib/libavfilter.so.9", "/usr/lib/libavfilter.so.7")
  108. # pisitools.dosym("/usr/lib/libavdevice.so.60", "/usr/lib/libavdevice.so.58")
  109. # pisitools.dosym("/usr/lib/libavformat.so.60", "/usr/lib/libavformat.so.58")
  110. # pisitools.dosym("/usr/lib/libpostproc.so.57", "/usr/lib/libpostproc.so.55")
  111. pisitools.dodoc("Changelog", "README.md", "LICENSE.md", "COPYING*")