actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 libtools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. #WorkDir = "soundtouch"
  12. def setup():
  13. pisitools.dosed("source/SoundStretch/Makefile.*", "-O3", "")
  14. shelltools.system("sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac")
  15. shelltools.system("./bootstrap")
  16. autotools.configure("--enable-shared \
  17. --disable-dependency-tracking \
  18. --disable-static \
  19. --disable-integer-samples \
  20. --with-pic")
  21. # Avoid rpath
  22. pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
  23. pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
  24. def build():
  25. autotools.make()
  26. def install():
  27. autotools.rawInstall("DESTDIR=%s pkgdocdir=/usr/share/doc/%s" % (get.installDIR(), get.srcNAME()))
  28. # Install compat symlinks for pkgconfig files
  29. pisitools.dosym("/usr/lib/pkgconfig/soundtouch.pc", "/usr/lib/pkgconfig/soundtouch-1.4.pc")
  30. pisitools.dosym("/usr/lib/pkgconfig/soundtouch.pc", "/usr/lib/pkgconfig/SoundTouch-1.0.pc")
  31. pisitools.dosym("/usr/lib/pkgconfig/soundtouch.pc", "/usr/lib/pkgconfig/SoundTouch-1.4.pc")
  32. # Install docs
  33. pisitools.dodoc("COPYING.TXT", "README.html")