actions.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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 get
  10. def setup():
  11. shelltools.system("./bootstrap")
  12. shelltools.system("rm -r src/ode")
  13. shelltools.export("CPPFLAGS", "-D_GLIBCXX_USE_CXX11_ABI=0")
  14. autotools.autoreconf("-vfi")
  15. autotools.configure("--prefix=/usr \
  16. --enable-threads=posix \
  17. --disable-sdltest \
  18. --with-OpenGL \
  19. --with-renderer-sdlGfx=0 \
  20. --with-renderer-openGl=1 \
  21. --with-internal-xdg=1")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  26. pisitools.insinto("/usr/share/applications", "extra/xmoto.desktop")
  27. pisitools.insinto("/usr/share/pixmaps", "extra/xmoto.xpm")