actions.py 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import libtools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.export("CFLAGS", "%s -fcommon -fno-strict-aliasing -fno-force-addr -ffunction-sections -frename-registers -fomit-frame-pointer" % get.CFLAGS())
  13. shelltools.export("CXXFLAGS", "%s -fno-strict-aliasing -fno-force-addr -ffunction-sections -frename-registers -fomit-frame-pointer" % get.CXXFLAGS())
  14. shelltools.export("CCASFLAGS","-Wa,--noexecstack")
  15. # to get rid of cvs
  16. shelltools.export("AUTOPOINT", "true")
  17. #libtools.libtoolize("--force --copy")
  18. autotools.autoreconf("-vfi")
  19. autotools.configure(" \
  20. --prefix=/usr \
  21. --mandir=/usr/share/man \
  22. --disable-altivec \
  23. --disable-artstest \
  24. --disable-dxr3 \
  25. --disable-vidix \
  26. --disable-vcd \
  27. --disable-mpcdec \
  28. --enable-aalib \
  29. --enable-asf \
  30. --enable-directfb \
  31. --enable-faad \
  32. --enable-fb \
  33. --enable-ffmpeg-popular-codecs \
  34. --enable-ffmpeg-uncommon-codecs \
  35. --enable-ipv6 \
  36. --enable-mmap \
  37. --enable-modplug \
  38. --enable-opengl \
  39. --disable-vaapi \
  40. --disable-vdpau \
  41. --disable-samba \
  42. --enable-xinerama \
  43. --with-external-a52dec \
  44. --with-external-ffmpeg \
  45. --with-external-libmad \
  46. --with-libaom \
  47. --with-dav1d \
  48. --with-vorbis \
  49. --with-x \
  50. --with-xcb \
  51. --with-xv-path=/usr/lib \
  52. --with-freetype \
  53. --with-fontconfig \
  54. --without-esound \
  55. --without-imagemagick \
  56. --without-jack \
  57. --disable-gdkpixbuf \
  58. --disable-nls \
  59. --disable-rpath \
  60. --disable-syncfb \
  61. --disable-optimizations \
  62. --disable-dependency-tracking")
  63. # the world is not ready for this code, see bug #8267
  64. # --enable-antialiasing \
  65. #--enable-mng \
  66. #--with-wavpack \
  67. #--with-internal-vcdlibs \
  68. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  69. def build():
  70. autotools.make()
  71. def install():
  72. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  73. pisitools.removeDir("/usr/share/doc/xine-lib")
  74. pisitools.dohtml("doc/faq/faq.html", "doc/hackersguide/*.html", "doc/hackersguide/*.png")
  75. pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO", "doc/README*", "doc/faq/faq.txt")