actions.py 967 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/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 shelltools
  9. def setup():
  10. # DRI3 has been known to be buggy with the current stack, so is disabled
  11. #shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  12. autotools.autoreconf("-fi")
  13. pisitools.cflags.add("-fno-plt")
  14. pisitools.cxxflags.add("-fno-plt")
  15. pisitools.ldflags.add("-z,now")
  16. autotools.configure("--enable-dri \
  17. --enable-sna \
  18. --enable-uxa")
  19. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. # pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README")