actions.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. pisitools.dosed("configure", '(wx_cv_std_libpath="lib)64"', r'\1"')
  12. autotools.configure("--enable-gtk2 \
  13. --enable-shared \
  14. --disable-optimise \
  15. --disable-debug \
  16. --enable-no_deps \
  17. --disable-rpath \
  18. --enable-intl \
  19. --enable-geometry \
  20. --enable-timer \
  21. --enable-unicode \
  22. --enable-sound \
  23. --enable-mediactrl \
  24. --enable-xrc \
  25. --enable-graphics_ctx \
  26. --enable-display \
  27. --enable-joystick \
  28. --disable-gtktest \
  29. --disable-sdltest \
  30. --disable-precomp-headers \
  31. --with-gtk=2 \
  32. --with-libpng=sys \
  33. --with-libjpeg=sys \
  34. --with-libtiff=sys \
  35. --with-libxpm=sys \
  36. --with-sdl \
  37. --without-gnomeprint \
  38. --without-gnomevfs \
  39. --without-odbc \
  40. --with-opengl \
  41. --with-regex=builtin \
  42. --with-zlib=sys \
  43. --with-expat=sys")
  44. def build():
  45. autotools.make()
  46. autotools.make("-C contrib")
  47. autotools.make("-C locale allmo")
  48. def install():
  49. autotools.install()
  50. autotools.install("-C contrib")
  51. # dont add conflicts files
  52. # pisitools.dodoc("docs/*.txt", "docs/*.htm")
  53. #pisitools.dosym("/usr/bin/wxrc-2.8", "/usr/bin/wxrc")
  54. pisitools.dosym("/usr/bin/wx-config-2.8", "/usr/bin/wxconfig")
  55. # pisitools.rename("/usr/bin/wxrc-2.8", "wxrc")
  56. # pisitools.rename("/usr/bin/wx-config-2.8", "wxconfig")