actions.py 3.3 KB

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