actions.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. shelltools.copytree("../wxWidgets-%s" % (get.srcVERSION().replace("_", "~")), "../wxWidgets-%s-gtk3" % get.srcVERSION())
  11. pisitools.flags.add("-fno-strict-aliasing")
  12. autotools.configure("--enable-shared \
  13. --disable-optimise \
  14. --disable-debug \
  15. --disable-rpath \
  16. --enable-intl \
  17. --enable-geometry \
  18. --enable-timer \
  19. --enable-unicode \
  20. --enable-sound \
  21. --enable-mediactrl \
  22. --enable-xrc \
  23. --enable-graphics_ctx \
  24. --enable-display \
  25. --enable-joystick \
  26. --disable-gtktest \
  27. --disable-sdltest \
  28. --disable-precomp-headers \
  29. --with-gtk=2 \
  30. --with-libpng=sys \
  31. --with-libjpeg=sys \
  32. --with-libtiff=sys \
  33. --with-libxpm=sys \
  34. --with-sdl \
  35. --without-gnomevfs \
  36. --with-opengl \
  37. --with-regex=builtin \
  38. --with-zlib=sys \
  39. --with-expat=sys")
  40. #shelltools.cd("%s" % get.workDIR())
  41. shelltools.cd("../wxWidgets-%s-gtk3" % get.srcVERSION())
  42. pisitools.flags.add("-fno-strict-aliasing")
  43. autotools.configure("--enable-shared \
  44. --disable-optimise \
  45. --disable-debug \
  46. --disable-rpath \
  47. --enable-intl \
  48. --enable-geometry \
  49. --enable-timer \
  50. --enable-unicode \
  51. --enable-sound \
  52. --enable-mediactrl \
  53. --enable-xrc \
  54. --enable-graphics_ctx \
  55. --enable-display \
  56. --enable-joystick \
  57. --disable-gtktest \
  58. --disable-sdltest \
  59. --disable-precomp-headers \
  60. --with-gtk=3 \
  61. --with-libpng=sys \
  62. --with-libjpeg=sys \
  63. --with-libtiff=sys \
  64. --with-libxpm=sys \
  65. --with-sdl \
  66. --without-gnomevfs \
  67. --with-opengl \
  68. --with-regex=builtin \
  69. --with-zlib=sys \
  70. --with-expat=sys")
  71. def build():
  72. autotools.make()
  73. autotools.make("-C locale allmo")
  74. shelltools.cd("../wxWidgets-%s-gtk3" % get.srcVERSION())
  75. autotools.make()
  76. def install():
  77. shelltools.cd("../wxWidgets-%s-gtk3" % get.srcVERSION())
  78. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  79. pisitools.rename("/usr/bin/wx-config","wx-config-gtk3")
  80. shelltools.cd("../wxWidgets-%s" % get.srcVERSION())
  81. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  82. #autotools.install()
  83. pisitools.insinto("/usr/share/pixmaps", "art/wxlogo.svg")
  84. pisitools.dodoc("docs/*.txt", "docs/*.htm")