actions.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("AUTOPOINT", "true")
  12. autotools.autoreconf("-vfi")
  13. #shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook")
  14. options = '--with-package-name="GStreamer for PisiLinux" \
  15. --with-package-origin="http://www.pisilinux.org" \
  16. --disable-gtk-doc'
  17. if get.buildTYPE() == "emul32":
  18. options += " --bindir=/usr/bin32 \
  19. --libdir=/usr/lib32 \
  20. --libexecdir=/usr/libexec32 \
  21. --disable-introspection"
  22. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  23. autotools.configure(options)
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. if get.buildTYPE() == "emul32":
  30. pisitools.removeDir("/usr/bin32")
  31. pisitools.removeDir("/usr/libexec32")
  32. pisitools.removeDir("/usr/share/gtk-doc")
  33. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README")