actions.py 874 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. j = ''.join([
  10. ' --enable-shared',
  11. ' --enable-sndfile',
  12. ' --disable-fftw',
  13. ' --disable-static',
  14. ' --disable-dependency-tracking',
  15. ' --with-pic '
  16. ])
  17. def setup():
  18. autotools.autoreconf("-fiv")
  19. autotools.configure(j)
  20. # Remove RPATH
  21. pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
  22. pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("AUTHORS", "NEWS")