annotate src/fftw.mk @ 3591:ead0cc4c96b1

fftw: update to 3.3.4 * src/fftw.mk update to version 3.3.4.
author John Donoghue
date Fri, 25 Apr 2014 10:48:53 -0400
parents 13be64f9f16d
children b854e159f3e3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2257
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := fftw
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3591
ead0cc4c96b1 fftw: update to 3.3.4
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 3.3.4
ead0cc4c96b1 fftw: update to 3.3.4
John Donoghue
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := fd508bac8ac13b3a46152c54b7ac885b69734262
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := fftw-$($(PKG)_VERSION)
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := fftw-$($(PKG)_VERSION).tar.gz
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_URL := http://www.fftw.org/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3017
diff changeset
11 $(PKG)_DEPS :=
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
13 ifeq ($(MXE_SYSTEM),msvc)
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
14 $(PKG)_HAVE_LONG_DOUBLE := false
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
15 else
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
16 $(PKG)_HAVE_LONG_DOUBLE := true
3110
39997b7399e5 Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents: 3087
diff changeset
17 $(PKG)_CONFIG_OPTS := --with-our-malloc
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
18 endif
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
19
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2509
diff changeset
21 $(WGET) -q -O- 'http://www.fftw.org/download.html' | \
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 $(SED) -n 's,.*fftw-\([0-9][^>]*\)\.tar.*,\1,p' | \
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 grep -v alpha | \
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 grep -v beta | \
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 head -1
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 endef
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 define $(PKG)_BUILD
3175
f283b410a60f [MSVC] remove -lm from pkgconfig files of FFTW and Pango
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3110
diff changeset
29 if [ $(MXE_SYSTEM) = msvc ]; then \
f283b410a60f [MSVC] remove -lm from pkgconfig files of FFTW and Pango
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3110
diff changeset
30 $(SED) -i -e 's,-lm\>,,' '$(1)/fftw.pc.in'; \
f283b410a60f [MSVC] remove -lm from pkgconfig files of FFTW and Pango
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3110
diff changeset
31 fi
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 cd '$(1)' && ./configure \
3017
107fb7f1202f set F77 on configure command line for arpack, fftw, and qrupdate packages
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
33 F77=$(MXE_F77) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
34 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
35 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
36 --prefix='$(HOST_PREFIX)' \
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
37 --enable-threads \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
38 --enable-sse2 \
3110
39997b7399e5 Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents: 3087
diff changeset
39 $($(PKG)_CONFIG_OPTS) \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
40 --enable-double && $(CONFIGURE_POST_HOOK)
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
41 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3241
diff changeset
42 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)'
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
43
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
44 if $($(PKG)_HAVE_LONG_DOUBLE); then \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
45 cd '$(1)' && ./configure \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
46 F77=$(MXE_F77) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
47 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
48 $(ENABLE_SHARED_OR_STATIC) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
49 --prefix='$(HOST_PREFIX)' \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
50 --enable-threads \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
51 --enable-sse2 \
3110
39997b7399e5 Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents: 3087
diff changeset
52 $($(PKG)_CONFIG_OPTS) \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
53 --enable-long-double && $(CONFIGURE_POST_HOOK) ; \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
54 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= ; \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3241
diff changeset
55 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' ; \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
56 fi
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
57
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
58 cd '$(1)' && ./configure \
3017
107fb7f1202f set F77 on configure command line for arpack, fftw, and qrupdate packages
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
59 F77=$(MXE_F77) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
60 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
61 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
62 --prefix='$(HOST_PREFIX)' \
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
63 --enable-threads \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
64 --enable-sse2 \
3110
39997b7399e5 Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents: 3087
diff changeset
65 $($(PKG)_CONFIG_OPTS) \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
66 --enable-float && $(CONFIGURE_POST_HOOK)
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
67 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3241
diff changeset
68 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)'
666
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
69 endef