actions.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. autotools.autoreconf("-vif")
  12. # suppress compiler warnings
  13. pisitools.cflags.add("-Wno-cpp")
  14. pisitools.cxxflags.add("-Wno-deprecated-copy -Wno-unused-parameter -Wno-deprecated-declarations")
  15. autotools.configure("--enable-shared --disable-static \
  16. --with-quantum-depth=16 \
  17. --with-sundials_ida='-lsundials_ida -lsundials_sunlinsolklu'")
  18. # don't fix rpath
  19. #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  20. #pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  21. # fix unused direct dependency analysis
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.dodoc("COPYING", "README*")
  28. #some packages search libraries direst under /usr/lib
  29. pisitools.dosym("/usr/lib/octave/5.2.0/liboctave.so.7.0.1", "/usr/lib/liboctave.so")
  30. pisitools.dosym("/usr/lib/octave/5.2.0/liboctinterp.so.7.0.1", "/usr/lib/liboctinterp.so")
  31. pisitools.dosym("/usr/lib/octave/5.2.0/liboctinterp.so.7.0.1", "/usr/lib/liboctinterp.so.7")