actions.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.autoreconf("-fi")
  12. shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION())
  13. shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION())
  14. shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-quad" % get.srcVERSION())
  15. autotools.configure("--enable-sse \
  16. --enable-shared \
  17. --disable-static \
  18. --disable-dependency-tracking \
  19. --enable-threads \
  20. --enable-fortran \
  21. --enable-single")
  22. shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
  23. autotools.configure("--enable-quad-precision \
  24. --enable-shared \
  25. --disable-static \
  26. --disable-dependency-tracking \
  27. --enable-fortran \
  28. --enable-threads")
  29. # The only difference here is that there is no --enable-float
  30. shelltools.cd("../fftw-%s-double" % get.srcVERSION())
  31. autotools.configure("--enable-sse2 \
  32. --enable-shared \
  33. --disable-static \
  34. --enable-fortran \
  35. --disable-dependency-tracking \
  36. --enable-threads")
  37. # The only difference here is --enable-long-double
  38. shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
  39. autotools.configure("--enable-shared \
  40. --disable-static \
  41. --disable-dependency-tracking \
  42. --enable-threads \
  43. --enable-fortran \
  44. --enable-long-double")
  45. #def check():
  46. #autotools.make("check")
  47. #shelltools.cd("../fftw-%s-double" % get.srcVERSION())
  48. #autotools.make("check")
  49. #shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
  50. #autotools.make("check")
  51. #shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
  52. #autotools.make("check")
  53. def build():
  54. autotools.make()
  55. shelltools.cd("../fftw-%s-double" % get.srcVERSION())
  56. autotools.make()
  57. shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
  58. autotools.make()
  59. shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
  60. autotools.make()
  61. def install():
  62. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  63. shelltools.cd("../fftw-%s-double" % get.srcVERSION())
  64. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  65. shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
  66. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  67. shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
  68. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  69. shelltools.cd("../fftw-%s" % get.srcVERSION())
  70. inarytools.dohtml("doc/html/*")
  71. inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO", "CONVENTIONS")