actions.py 910 B

1234567891011121314151617181920212223242526272829
  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 shelltools
  9. Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
  10. def setup():
  11. autotools.autoreconf("-vif")
  12. autotools.configure("--disable-static libdir=%s" % Libdir)
  13. pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  14. pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  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": return
  21. pisitools.dodoc("AUTHORS", "COPYING", "README*")