actions.py 883 B

1234567891011121314151617181920212223242526272829303132
  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/old-licenses/gpl-3.0.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 = "ladspa_sdk/src"
  11. def setup():
  12. pisitools.dosed("makefile", "-Werror", get.CFLAGS())
  13. def build():
  14. autotools.make('CC="%s" \
  15. CXX="%s" \
  16. LD="%s" \
  17. targets' % (get.CC(), get.CXX(), get.LD()))
  18. def install():
  19. autotools.install('INSTALL_PLUGINS_DIR="/usr/lib/ladspa" \
  20. MKDIR_P="mkdir -p" \
  21. DESTDIR="%s"' % get.installDIR())
  22. shelltools.cd("..")
  23. pisitools.dohtml("doc/*.html")
  24. pisitools.dodoc("doc/COPYING","doc/ladspa.h.txt")