actions.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 -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-samba \
  40. --enable-xinerama \
  41. --with-external-a52dec \
  42. --with-external-ffmpeg \
  43. --with-external-libmad \
  44. --with-vorbis \
  45. --with-x \
  46. --with-xcb \
  47. --with-xv-path=/usr/lib \
  48. --with-freetype \
  49. --with-fontconfig \
  50. --without-esound \
  51. --without-imagemagick \
  52. --without-jack \
  53. --disable-gdkpixbuf \
  54. --disable-nls \
  55. --disable-rpath \
  56. --disable-syncfb \
  57. --disable-optimizations \
  58. --disable-dependency-tracking")
  59. # the world is not ready for this code, see bug #8267
  60. # --enable-antialiasing \
  61. #--enable-mng \
  62. #--with-wavpack \
  63. #--with-internal-vcdlibs \
  64. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  65. def build():
  66. autotools.make()
  67. def install():
  68. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  69. pisitools.removeDir("/usr/share/doc/xine-lib")
  70. pisitools.dohtml("doc/faq/faq.html", "doc/hackersguide/*.html", "doc/hackersguide/*.png")
  71. pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO", "doc/README*", "doc/faq/faq.txt")