actions.py 949 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt.
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. shelltootls
  12. shelltools.system("sed -i 's/cp -p/cp/' build/make/Makefile ")
  13. shelltools.makedirs("libvpx-build")
  14. shelltools.cd("libvpx-build")
  15. shelltools.system("../configure --prefix=/usr \
  16. --enable-shared \
  17. --disable-static ")
  18. def build():
  19. shelltools.cd("libvpx-build")
  20. shelltools.system("make -j1 LDFLAGS=\"{} -fPIC\"".format(get.LDFLAGS()))
  21. def install():
  22. shelltools.cd("libvpx-build")
  23. autotools.rawInstall("DESTDIR=%s/" % get.installDIR())
  24. shelltools.cd("..")
  25. inarytools.dodoc("AUTHORS", "CHANGELOG", "LICENSE", "PATENTS")