annotate src/fftw.mk @ 3087:3663f6300abf

[MSVC] enable FFTW compilation - fix cc-msvc when all input files are pushed into @-files by libtool - make libtool think clgfortran is not the GNU Fortran compiler - don't bother compiling long-double version of FFTW, MSVC does not support long double type, it's typedef'ed to double
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 24 Jun 2013 22:10:13 -0400
parents 5ef49fb3299d
children 39997b7399e5
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 :=
2509
33366d1e2300 update package fftw
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
6 $(PKG)_CHECKSUM := 11a8c31186ff5a7d686a79a3f21b2530888e0dc2
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
7 $(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
8 $(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
9 $(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
10 $(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
11
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
12 ifeq ($(MXE_SYSTEM),msvc)
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
13 $(PKG)_HAVE_LONG_DOUBLE := false
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
14 else
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
15 $(PKG)_HAVE_LONG_DOUBLE := true
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
16 endif
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
17
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
18 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2509
diff changeset
19 $(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
20 $(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
21 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
22 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
23 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
24 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
25
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 define $(PKG)_BUILD
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 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
28 F77=$(MXE_F77) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
29 $(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
30 $(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
31 --prefix='$(HOST_PREFIX)' \
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
32 --enable-threads \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 --enable-sse2 \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 --enable-double && $(CONFIGURE_POST_HOOK)
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
36 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
37
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
38 if $($(PKG)_HAVE_LONG_DOUBLE); then \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
39 cd '$(1)' && ./configure \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
40 F77=$(MXE_F77) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
41 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
42 $(ENABLE_SHARED_OR_STATIC) \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
43 --prefix='$(HOST_PREFIX)' \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
44 --enable-threads \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
45 --enable-sse2 \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
46 --enable-long-double && $(CONFIGURE_POST_HOOK) ; \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
47 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= ; \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
48 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= ; \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
49 fi
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
50
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
51 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
52 F77=$(MXE_F77) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
53 $(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
54 $(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
55 --prefix='$(HOST_PREFIX)' \
1300
c638124b0cfa build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents: 936
diff changeset
56 --enable-threads \
3087
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
57 --enable-sse2 \
3663f6300abf [MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
58 --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
59 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
60 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
e9828e3cf4f0 new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
61 endef