actions.py 724 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import libtools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.export("OPTIMIZER", get.CFLAGS())
  13. shelltools.export("DEBUG", "-DNDEBUG")
  14. pisitools.cflags.add("-fPIC")
  15. autotools.autoconf()
  16. autotools.configure("--libexecdir=/usr/lib \
  17. --disable-static")
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall('DIST_ROOT="%s" install-dev' % get.installDIR())