actions.py 796 B

123456789101112131415161718192021222324252627
  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 cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. shelltools.export("CFLAGS", "%s -lpthread" % get.CFLAGS())
  11. def setup():
  12. cmaketools.configure("-Denable-ladspa=ON \
  13. -DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth \
  14. -DLIB_SUFFIX=\"\"")
  15. def build():
  16. cmaketools.make()
  17. def install():
  18. cmaketools.install()
  19. pisitools.insinto("/etc/conf.d", "fluidsynth.conf", "fluidsynth")
  20. pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "THANKS", "TODO")