Mercurial > mxe-octave
annotate src/fftw.mk @ 3110:39997b7399e5
Add --with-our-malloc option to fftw
src/fftw.mk: --with-our-malloc option added to configure, when not compiling for msvc.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 29 Jun 2013 22:40:33 -0400 |
parents | 3663f6300abf |
children | f283b410a60f |
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 | 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 |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
16 $(PKG)_CONFIG_OPTS := --with-our-malloc |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 endif |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 |
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
|
19 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2509
diff
changeset
|
20 $(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
|
21 $(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
|
22 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
|
23 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
|
24 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
|
25 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
|
26 |
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 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
|
28 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
|
29 F77=$(MXE_F77) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
30 $(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
|
31 $(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
|
32 --prefix='$(HOST_PREFIX)' \ |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
33 --enable-threads \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 --enable-sse2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
35 $($(PKG)_CONFIG_OPTS) \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
36 --enable-double && $(CONFIGURE_POST_HOOK) |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
37 $(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
|
38 $(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
|
39 |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
40 if $($(PKG)_HAVE_LONG_DOUBLE); then \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
41 cd '$(1)' && ./configure \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
42 F77=$(MXE_F77) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
43 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
44 $(ENABLE_SHARED_OR_STATIC) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
45 --prefix='$(HOST_PREFIX)' \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
46 --enable-threads \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
47 --enable-sse2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
48 $($(PKG)_CONFIG_OPTS) \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
49 --enable-long-double && $(CONFIGURE_POST_HOOK) ; \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
50 $(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
|
51 $(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
|
52 fi |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
53 |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
54 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
|
55 F77=$(MXE_F77) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
56 $(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
|
57 $(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
|
58 --prefix='$(HOST_PREFIX)' \ |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
59 --enable-threads \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
60 --enable-sse2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
61 $($(PKG)_CONFIG_OPTS) \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
62 --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
|
63 $(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
|
64 $(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
|
65 endef |