actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. #WorkDir = "flite-%s-current" % get.srcVERSION()
  11. NoStrip = ["/usr/lib"]
  12. def setup():
  13. #shelltools.system("sed '/^#VOXES.*$/d; s/+//g; s/cmu_indic_lex/&\nVOXES = cmu_us_kal16 cmu_us_slt/' config/android.lv >config/pisilinux.lv")
  14. #shelltools.system("sed -i '/$(INSTALL) -m 755 $(BINDIR)\/flite_time $(DESTDIR)$(INSTALLBINDIR)/d' main/Makefile")
  15. #shelltools.export("CC", "clang -fuse-ld=lld")
  16. #shelltools.export("CXX", "clang++ -fuse-ld=lld")
  17. #shelltools.export("AR", "llvm-ar")
  18. #shelltools.export("RANLIB", "llvm-ranlib")
  19. shelltools.export("LDFLAGS", "-lasound -lm")
  20. autotools.configure("--prefix=/usr \
  21. --enable-shared \
  22. --with-pic \
  23. --with-audio=alsa \
  24. --with-vox=cmu_us_kal16")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.install()
  29. #pisitools.remove("/usr/lib/*.a")
  30. pisitools.dodoc("COPYING", "README*")