actions.py 818 B

12345678910111213141516171819202122232425262728293031
  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 get
  8. LIBDIR = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
  9. def setup():
  10. autotools.autoreconf("-vif")
  11. autotools.configure("--enable-glx \
  12. --libdir=%s \
  13. --enable-wayland \
  14. --disable-static" % LIBDIR)
  15. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. if get.buildTYPE() == "emul32":
  21. return
  22. pisitools.dodoc("COPYING")