Mercurial > mxe-octave
annotate src/fftw.mk @ 6213:5f64fb928091 release
build-gcc: Avoid library clash when calling msgfmt.
* src/build-gcc-1-msgfmt.patch: Don't use libraries from the build tree when
calling `msgfmt`.
* dist-files.mk: Add patch to list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 06 May 2022 19:36:10 +0200 |
parents | fe02890201ac |
children |
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 := |
5907
b3f9e201ad98
* src/fftw.mk: update to v3.3.10
John Donoghue <john.donoghue@ieee.org>
parents:
5612
diff
changeset
|
6 $(PKG)_VERSION := 3.3.10 |
b3f9e201ad98
* src/fftw.mk: update to v3.3.10
John Donoghue <john.donoghue@ieee.org>
parents:
5612
diff
changeset
|
7 $(PKG)_CHECKSUM := 6abe7321c8c35ef52e56e299e66a9b967baf148a |
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 |
3809
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
13 $(PKG)_CONFIG_OPTS := |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
14 |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
15 ifeq ($(MXE_SYSTEM),msvc) |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
16 $(PKG)_HAVE_LONG_DOUBLE := false |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 else |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 $(PKG)_HAVE_LONG_DOUBLE := true |
3809
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
19 $(PKG)_CONFIG_OPTS += --with-our-malloc |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
20 endif |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
21 |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
22 # some suggested mingw fftw settings from www.fftw.org |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
23 ifeq ($(MXE_SYSTEM),mingw) |
6169
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
24 $(PKG)_CONFIG_OPTS += \ |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
25 --with-combined-threads \ |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
26 --with-incoming-stack-boundary=2 |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
27 endif |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
28 |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
29 ifneq ($(TARGET),i686-w64-mingw32) |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
30 # FIXME: Should be disabled for any i686 target (not just Windows). |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
31 $(PKG)_CONFIG_OPTS += \ |
fe02890201ac
FFTW: Disable AVX512 for Windows 32-bit.
Markus Mützel <markus.muetzel@gmx.de>
parents:
6167
diff
changeset
|
32 --enable-avx512 |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 endif |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 |
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
|
35 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2509
diff
changeset
|
36 $(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
|
37 $(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
|
38 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
|
39 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
|
40 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
|
41 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
|
42 |
e9828e3cf4f0
new packages: aubio, fftw, id3lib, liblo, libsamplerate and portaudio (by David García Garzón)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 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
|
44 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
|
45 $(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
|
46 fi |
3809
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
47 |
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
48 # default is double |
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
|
49 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
|
50 F77=$(MXE_F77) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
51 $(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
|
52 $(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
|
53 --prefix='$(HOST_PREFIX)' \ |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
54 --enable-threads \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
55 --enable-sse2 \ |
6167
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
56 --enable-avx \ |
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
57 --enable-avx2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
58 $($(PKG)_CONFIG_OPTS) \ |
3809
b854e159f3e3
fftw.mk: compile threading and other fftw.org suggestions into mingw dlls
John Donoghue
parents:
3591
diff
changeset
|
59 && $(CONFIGURE_POST_HOOK) |
4302 | 60 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) |
61 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' | |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
62 |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
63 if $($(PKG)_HAVE_LONG_DOUBLE); then \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
64 cd '$(1)' && ./configure \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
65 F77=$(MXE_F77) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
66 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
67 $(ENABLE_SHARED_OR_STATIC) \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
68 --prefix='$(HOST_PREFIX)' \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
69 --enable-threads \ |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
70 --enable-sse2 \ |
6167
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
71 --enable-avx \ |
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
72 --enable-avx2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
73 $($(PKG)_CONFIG_OPTS) \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
74 --enable-long-double && $(CONFIGURE_POST_HOOK) ; \ |
4302 | 75 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) ; \ |
76 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' ; \ | |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
77 fi |
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
78 |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
79 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
|
80 F77=$(MXE_F77) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
81 $(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
|
82 $(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
|
83 --prefix='$(HOST_PREFIX)' \ |
1300
c638124b0cfa
build package fftw for all available precisions
Alexander Kojevnikov <alexander@kojevnikov.com>
parents:
936
diff
changeset
|
84 --enable-threads \ |
6167
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
85 --enable-sse \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
86 --enable-sse2 \ |
6167
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
87 --enable-avx \ |
384668807160
FFTW: Enable support for more SIMD instruction sets (bug #62317).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5907
diff
changeset
|
88 --enable-avx2 \ |
3110
39997b7399e5
Add --with-our-malloc option to fftw
John Donoghue <john.donoghue@ieee.org>
parents:
3087
diff
changeset
|
89 $($(PKG)_CONFIG_OPTS) \ |
3087
3663f6300abf
[MSVC] enable FFTW compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
90 --enable-float && $(CONFIGURE_POST_HOOK) |
4302 | 91 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_PROGS) |
92 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) 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
|
93 endef |