actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
  12. opts = {
  13. "introspection": "no" if get.buildTYPE() == "emul32" else "yes",
  14. }
  15. autotools.configure("--enable-introspection=%(introspection)s \
  16. --with-package-name='PisiLinux gstreamer-plugins-base package' \
  17. --with-package-origin='http://www.pisilinux.org' \
  18. " % opts)
  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", "ChangeLog", "COPYING", "README")