Mercurial > mxe-octave
annotate src/fftw.mk @ 3578:583d3bf548e6
texinfo: update to 5.2 and install all tools
* src/texinfo.mk: update to 5.2 and make/make install all.
* src/texinfo-1-fixes.patch: updated patch for 5.2.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 15 Apr 2014 21:32:17 -0400 |
parents | 13be64f9f16d |
children | ead0cc4c96b1 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
6 $(PKG)_VERSION := 3.3.3 |
3241
537ca0c3354d
Update fftw to 3.3.3
John Donoghue <john.donoghue@ieee.org>
parents:
3175
diff
changeset
|
7 $(PKG)_CHECKSUM := 11487180928d05746d431ebe7a176b52fe205cf9 |
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 |