actions.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def setup():
  10. pisitools.flags.add("-fno-strict-aliasing")
  11. autotools.configure("--enable-gtk2 \
  12. --enable-shared \
  13. --disable-optimise \
  14. --disable-debug \
  15. --enable-no_deps \
  16. --disable-rpath \
  17. --enable-intl \
  18. --enable-geometry \
  19. --enable-timer \
  20. --enable-unicode \
  21. --enable-sound \
  22. --enable-mediactrl \
  23. --enable-xrc \
  24. --enable-graphics_ctx \
  25. --enable-display \
  26. --enable-joystick \
  27. --disable-gtktest \
  28. --disable-sdltest \
  29. --disable-precomp-headers \
  30. --with-gtk=2 \
  31. --with-libpng=sys \
  32. --with-libjpeg=sys \
  33. --with-libtiff=sys \
  34. --with-libxpm=sys \
  35. --with-sdl \
  36. --without-gnomeprint \
  37. --without-gnomevfs \
  38. --without-odbc \
  39. --with-opengl \
  40. --with-regex=builtin \
  41. --with-zlib=sys \
  42. --with-expat=sys")
  43. def build():
  44. autotools.make()
  45. autotools.make("-C locale allmo")
  46. def install():
  47. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  48. #autotools.install()
  49. pisitools.dodoc("docs/*.txt", "docs/*.htm")