actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import mesontools
  9. demos_dir = "/usr/lib/mesa/demos"
  10. demos_dir_emul32 = "/usr/lib32/mesa/demos"
  11. def setup():
  12. # autotools.autoreconf("-fvi")
  13. options = "-Dwith-system-data-files=true \
  14. --bindir=%s" % (demos_dir_emul32 if get.buildTYPE() == "emul32" else demos_dir)
  15. mesontools.configure(options)
  16. # pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
  17. def build():
  18. mesontools.build()
  19. # autotools.make()
  20. def install():
  21. mesontools.install()
  22. # autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. if get.buildTYPE() == "emul32":
  24. for util in ("glxgears", "glxinfo"):
  25. pisitools.domove("%s/%s" % (demos_dir_emul32, util), "/usr/bin/", "%s32" % util)
  26. return
  27. for util in ("glxgears", "glxinfo", "eglinfo"):
  28. pisitools.domove("%s/%s" % (demos_dir, util), "/usr/bin/")
  29. pisitools.dobin("build/src/egl/opengl/xeglgears")