actions.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 = "TiMidity++-%s" % get.srcVERSION()
  11. def setup():
  12. audios = "flac,speex,vorbis,ao,alsa,jack"
  13. interfaces = "ncurses,vt100,alsaseq,server,network,gtk"
  14. shelltools.export("CFLAGS", "%s -D_GNU_SOURCE" % get.CFLAGS())
  15. autotools.autoconf()
  16. autotools.configure('--localstatedir=/var/state/timidity \
  17. --with-elf \
  18. --enable-audio="%s" \
  19. --enable-interface="%s" \
  20. --enable-server \
  21. --enable-network \
  22. --enable-dynamic \
  23. --enable-vt100 \
  24. --enable-spline=cubic \
  25. --enable-slang \
  26. --enable-ncurses \
  27. --with-x \
  28. --enable-spectrogram \
  29. --enable-wrd \
  30. --enable-xskin \
  31. --enable-gtk \
  32. --with-default-output=alsa \
  33. --enable-alsaseq' % (audios, interfaces))
  34. def build():
  35. autotools.make()
  36. def install():
  37. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  38. pisitools.dosym("/etc/timidity.cfg", "/usr/share/timidity/timidity.cfg")
  39. pisitools.dodoc("AUTHORS", "ChangeLog*", "NEWS", "README*", "doc/C/README*")