actions.py 759 B

123456789101112131415161718192021222324252627
  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. autotools.configure()
  14. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. # pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README")