comparison src/fftw.mk @ 3809:b854e159f3e3

fftw.mk: compile threading and other fftw.org suggestions into mingw dlls * src/fftw.mk: add mingw options --with-combined-threads --with-incoming-stack-boundary=2
author John Donoghue
date Wed, 25 Feb 2015 16:54:37 -0500
parents ead0cc4c96b1
children b2971f3fd839
comparison
equal deleted inserted replaced
3808:c7c1065c12e0 3809:b854e159f3e3
8 $(PKG)_SUBDIR := fftw-$($(PKG)_VERSION) 8 $(PKG)_SUBDIR := fftw-$($(PKG)_VERSION)
9 $(PKG)_FILE := fftw-$($(PKG)_VERSION).tar.gz 9 $(PKG)_FILE := fftw-$($(PKG)_VERSION).tar.gz
10 $(PKG)_URL := http://www.fftw.org/$($(PKG)_FILE) 10 $(PKG)_URL := http://www.fftw.org/$($(PKG)_FILE)
11 $(PKG)_DEPS := 11 $(PKG)_DEPS :=
12 12
13 $(PKG)_CONFIG_OPTS :=
14
13 ifeq ($(MXE_SYSTEM),msvc) 15 ifeq ($(MXE_SYSTEM),msvc)
14 $(PKG)_HAVE_LONG_DOUBLE := false 16 $(PKG)_HAVE_LONG_DOUBLE := false
15 else 17 else
16 $(PKG)_HAVE_LONG_DOUBLE := true 18 $(PKG)_HAVE_LONG_DOUBLE := true
17 $(PKG)_CONFIG_OPTS := --with-our-malloc 19 $(PKG)_CONFIG_OPTS += --with-our-malloc
20 endif
21
22 # some suggested mingw fftw settings from www.fftw.org
23 ifeq ($(MXE_SYSTEM),mingw)
24 $(PKG)_CONFIG_OPTS += \
25 --with-combined-threads \
26 --with-incoming-stack-boundary=2
18 endif 27 endif
19 28
20 define $(PKG)_UPDATE 29 define $(PKG)_UPDATE
21 $(WGET) -q -O- 'http://www.fftw.org/download.html' | \ 30 $(WGET) -q -O- 'http://www.fftw.org/download.html' | \
22 $(SED) -n 's,.*fftw-\([0-9][^>]*\)\.tar.*,\1,p' | \ 31 $(SED) -n 's,.*fftw-\([0-9][^>]*\)\.tar.*,\1,p' | \
27 36
28 define $(PKG)_BUILD 37 define $(PKG)_BUILD
29 if [ $(MXE_SYSTEM) = msvc ]; then \ 38 if [ $(MXE_SYSTEM) = msvc ]; then \
30 $(SED) -i -e 's,-lm\>,,' '$(1)/fftw.pc.in'; \ 39 $(SED) -i -e 's,-lm\>,,' '$(1)/fftw.pc.in'; \
31 fi 40 fi
41
42 # default is double
32 cd '$(1)' && ./configure \ 43 cd '$(1)' && ./configure \
33 F77=$(MXE_F77) \ 44 F77=$(MXE_F77) \
34 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 45 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
35 $(ENABLE_SHARED_OR_STATIC) \ 46 $(ENABLE_SHARED_OR_STATIC) \
36 --prefix='$(HOST_PREFIX)' \ 47 --prefix='$(HOST_PREFIX)' \
37 --enable-threads \ 48 --enable-threads \
38 --enable-sse2 \ 49 --enable-sse2 \
39 $($(PKG)_CONFIG_OPTS) \ 50 $($(PKG)_CONFIG_OPTS) \
40 --enable-double && $(CONFIGURE_POST_HOOK) 51 && $(CONFIGURE_POST_HOOK)
41 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= 52 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
42 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' 53 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)'
43 54
44 if $($(PKG)_HAVE_LONG_DOUBLE); then \ 55 if $($(PKG)_HAVE_LONG_DOUBLE); then \
45 cd '$(1)' && ./configure \ 56 cd '$(1)' && ./configure \