actions.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. #WorkDir = "audacity-minsrc-%s" % get.srcVERSION()
  11. def setup():
  12. shelltools.cd("lib-src/portmixer")
  13. autotools.autoreconf("-vi")
  14. shelltools.cd("../..")
  15. autotools.aclocal("-I m4")
  16. autotools.autoconf()
  17. shelltools.export("LIBS", "-lavcodec")
  18. shelltools.export("WX_CONFIG=wx-config-gtk3 ./configure", "/usr/bin/wxconfig")
  19. autotools.configure("--enable-unicode \
  20. --enable-nyquist \
  21. --enable-ladspa \
  22. --with-lib-preference='system local' \
  23. --with-libsndfile=system \
  24. --prefix=/usr \
  25. --docdir=/usr/share/doc/audacity \
  26. --with-expat=system \
  27. --with-libsamplerate \
  28. --with-lame=system \
  29. --with-libvorbis \
  30. --with-libmad \
  31. --with-libflac \
  32. --without-libid3tag \
  33. --with-sbsms \
  34. --with-soundtouch \
  35. --with-libvamp \
  36. --with-libtwolame \
  37. --with-ffmpeg=system \
  38. --with-midi \
  39. --with-taglib \
  40. --without-lv2 \
  41. --with-portmixer")
  42. def build():
  43. autotools.make()
  44. def install():
  45. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  46. pisitools.dodir("/usr/share/audacity/help/manual")