actions.py 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. # Make it build with libtool 1.5
  12. #shelltools.system("rm -rf m4/lt* m4/libtool.m4")
  13. shelltools.system("sed -i '/DEPRECATED/s:^://:' modules/text_renderer/freetype/text_layout.c")
  14. shelltools.system("export CFLAGS+=-I/usr/include/samba-4.0")
  15. shelltools.system("export CPPFLAGS+=-I/usr/include/samba-4.0")
  16. shelltools.system("export CXXFLAGS+=-std=c++11")
  17. shelltools.export("AUTOPOINT", "true")
  18. shelltools.system("./bootstrap")
  19. autotools.autoreconf("-vfi")
  20. autotools.rawConfigure("\
  21. --prefix=/usr \
  22. --libdir=/usr/lib \
  23. --sysconfdir=/etc \
  24. --with-default-font-family=Sans \
  25. --with-default-monospace-font-family=Monospace \
  26. --with-default-font=/usr/share/fonts/dejavu/DejaVuSans.ttf \
  27. --with-default-monospace-font=/usr/share/fonts/dejavu/DejaVuSansMono.ttf \
  28. --with-x \
  29. BUILDCC=gcc \
  30. LUAC=luac LUA_LIBS='`pkg-config --libs lua`' \
  31. RCC=/usr/bin/rcc-qt5 \
  32. --disable-asdcp \
  33. --disable-coverage \
  34. --disable-cprof \
  35. --disable-crystalhd \
  36. --disable-decklink \
  37. --disable-goom \
  38. --disable-kai \
  39. --disable-kva \
  40. --disable-maintainer-mode \
  41. --disable-opensles \
  42. --disable-rpi-omxil \
  43. --disable-shine \
  44. --disable-sndio \
  45. --disable-vsxu \
  46. --disable-wasapi \
  47. --disable-altivec \
  48. --disable-dependency-tracking \
  49. --disable-optimizations \
  50. --disable-jack \
  51. --disable-oss \
  52. --disable-opencv \
  53. --disable-rpath \
  54. --disable-static \
  55. --disable-update-check \
  56. --disable-silent-rules \
  57. --disable-mfx \
  58. --enable-ncurses \
  59. --enable-a52 \
  60. --enable-aa \
  61. --enable-alsa \
  62. --enable-bluray \
  63. --enable-dc1394 \
  64. --enable-dbus \
  65. --enable-dca \
  66. --enable-dvbpsi \
  67. --enable-dvdnav \
  68. --enable-dvdread \
  69. --enable-faad \
  70. --enable-fast-install \
  71. --enable-flac \
  72. --enable-freetype \
  73. --enable-fribidi \
  74. --enable-gnutls \
  75. --enable-libcddb \
  76. --enable-libmpeg2 \
  77. --enable-libxml2 \
  78. --enable-lirc \
  79. --enable-libva \
  80. --enable-live555 \
  81. --enable-lua \
  82. --enable-mad \
  83. --enable-mod \
  84. --enable-mpc \
  85. --enable-nls \
  86. --enable-ogg \
  87. --enable-opus \
  88. --enable-png \
  89. --enable-projectm \
  90. --enable-pulse \
  91. --enable-realrtsp \
  92. --enable-screen \
  93. --enable-sftp \
  94. --enable-schroedinger \
  95. --enable-shared \
  96. --enable-smbclient \
  97. --enable-sout \
  98. --enable-speex \
  99. --enable-svg \
  100. --enable-theora \
  101. --enable-twolame \
  102. --enable-upnp \
  103. --enable-v4l2 \
  104. --enable-vlc \
  105. --enable-vcd \
  106. --enable-mtp \
  107. --enable-vlm \
  108. --enable-vorbis \
  109. --enable-x264 \
  110. --enable-x265 \
  111. --enable-xvideo \
  112. ")
  113. #enable-skins2 \ --disable-qt4 \
  114. #shelltools.export("CFLAGS", "%s -fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_1" % get.CFLAGS())
  115. # for fix unused dependency
  116. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  117. def build():
  118. autotools.make()
  119. def install():
  120. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  121. for icon in ("128x128", "48x48", "32x32", "16x16"):
  122. pisitools.insinto("/usr/share/icons/hicolor/%s/apps/" % icon, "share/icons/%s/vlc*.png" % icon)
  123. pisitools.dodoc("AUTHORS", "THANKS", "NEWS", "README", "COPYING")