OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fourier-compose/fftw3f.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -ur fourier-compose-1.2_orig/Makefile fourier-compose-1.2/Makefile
  17. --- fourier-compose-1.2_orig/Makefile 2006-01-02 23:27:30.000000000 +0000
  18. +++ fourier-compose-1.2/Makefile 2006-08-26 17:36:50.289372000 +0100
  19. @@ -9,8 +9,8 @@
  20. GIMP_CFLAGS = `$(GIMPTOOL) --cflags`
  21. GIMP_LDFLAGS = `$(GIMPTOOL) --libs`
  22. -FFTW_CFLAGS = `$(PKGCONFIG) --cflags fftw3`
  23. -FFTW_LDFLAGS = `$(PKGCONFIG) --libs fftw3`
  24. +FFTW_CFLAGS = `$(PKGCONFIG) --cflags fftw3f`
  25. +FFTW_LDFLAGS = `$(PKGCONFIG) --libs fftw3f`
  26. EXTRA_CFLAGS = -DLOCALEDIR=\"`$(GIMPTOOL) --prefix`/share/locale\" -DVERSION=\"$(VERSION)\" -Wall -O2
  27. CFLAGS := $(GIMP_CFLAGS) $(FFTW_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS)
  28. diff -ur fourier-compose-1.2_orig/fourier-compose.c fourier-compose-1.2/fourier-compose.c
  29. --- fourier-compose-1.2_orig/fourier-compose.c 2006-01-02 23:27:30.000000000 +0000
  30. +++ fourier-compose-1.2/fourier-compose.c 2006-08-26 17:35:58.714148750 +0100
  31. @@ -186,8 +186,8 @@
  32. static gint bpp, has_alpha, alpha;
  33. static glong progress;
  34. static gdouble max_progress; /* saves typecasting to double */
  35. -static fftw_plan fft_plan;
  36. -static fftw_complex *fft_data = NULL;
  37. +static fftwf_plan fft_plan;
  38. +static fftwf_complex *fft_data = NULL;
  39. MAIN()
  40. @@ -850,7 +850,7 @@
  41. progress += 3*w*h;
  42. gimp_progress_update(progress/max_progress);
  43. }
  44. - fftw_execute(fft_plan);
  45. + fftwf_execute(fft_plan);
  46. if (!preview_mode) {
  47. progress += 4*w*h;
  48. gimp_progress_update(progress/max_progress);
  49. @@ -898,9 +898,9 @@
  50. iy2 = gdk_pixbuf_get_height(preview);
  51. bpp = gdk_pixbuf_get_n_channels(preview);
  52. if (!fft_data) {
  53. - fft_data = fftw_malloc(ix2*iy2*sizeof(fftw_complex));
  54. + fft_data = fftwf_malloc(ix2*iy2*sizeof(fftwf_complex));
  55. /* This will be executed many times. */
  56. - fft_plan = fftw_plan_dft_2d(ix2, iy2, fft_data, fft_data,
  57. + fft_plan = fftwf_plan_dft_2d(ix2, iy2, fft_data, fft_data,
  58. 1, FFTW_MEASURE);
  59. }
  60. }
  61. @@ -911,13 +911,13 @@
  62. if (has_alpha)
  63. alpha = bpp-1;
  64. if (fft_data) {
  65. - fftw_destroy_plan(fft_plan);
  66. - fftw_free(fft_data);
  67. + fftwf_destroy_plan(fft_plan);
  68. + fftwf_free(fft_data);
  69. }
  70. - fft_data = fftw_malloc((ix2 - ix1)*(iy2 - iy1)*sizeof(fftw_complex));
  71. + fft_data = fftwf_malloc((ix2 - ix1)*(iy2 - iy1)*sizeof(fftwf_complex));
  72. /* This will be executed once. */
  73. - fft_plan = fftw_plan_dft_2d(iy2 - iy1, ix2 - ix1, fft_data, fft_data,
  74. + fft_plan = fftwf_plan_dft_2d(iy2 - iy1, ix2 - ix1, fft_data, fft_data,
  75. 1, FFTW_ESTIMATE);
  76. }
  77. max_progress = 10.0*(ix2 - ix1)*(iy2 - iy1);