actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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_%s/src" % get.srcVERSION()
  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="%s/usr/lib/ladspa" \
  20. INSTALL_INCLUDE_DIR="%s/usr/include" \
  21. INSTALL_BINARY_DIR="%s/usr/bin" \
  22. MKDIR_P="mkdir -p" \
  23. DESTDIR="%s" \
  24. ' % (get.installDIR(), get.installDIR(), get.installDIR(), get.installDIR()))
  25. shelltools.cd("..")
  26. pisitools.dohtml("doc/*.html")
  27. pisitools.dodoc("doc/COPYING","doc/ladspa.h.txt")