2011-09-28 23:32:32 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# fftw
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-07-01 12:22:23 +02:00
|
|
|
FFTW_VERSION = 3.3.4
|
2011-09-28 23:32:32 +02:00
|
|
|
FFTW_SITE = http://www.fftw.org
|
|
|
|
FFTW_INSTALL_STAGING = YES
|
2013-05-12 05:53:51 +02:00
|
|
|
FFTW_LICENSE = GPLv2+
|
|
|
|
FFTW_LICENSE_FILES = COPYING
|
2011-09-28 23:32:32 +02:00
|
|
|
|
2015-03-16 17:31:24 +01:00
|
|
|
FFTW_CONF_OPTS = --disable-fortran
|
|
|
|
|
2015-03-16 17:31:20 +01:00
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_SINGLE),--enable,--disable)-single
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),--enable,--disable)-long-double
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_PRECISION_QUAD),--enable,--disable)-quad-precision
|
|
|
|
|
2015-03-16 17:31:21 +01:00
|
|
|
FFTW_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_FAST),y)
|
|
|
|
FFTW_CFLAGS += -Ofast
|
|
|
|
endif
|
|
|
|
|
2015-03-16 17:31:22 +01:00
|
|
|
# x86 optimisations
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE),--enable,--disable)-sse
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2
|
|
|
|
|
2015-03-16 17:31:23 +01:00
|
|
|
# ARM optimisations
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon
|
|
|
|
FFTW_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon)
|
|
|
|
|
2015-03-16 17:31:25 +01:00
|
|
|
# Generic optimisations
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
FFTW_CONF_OPTS += --enable-threads --with-combined-threads
|
|
|
|
else
|
|
|
|
FFTW_CONF_OPTS += --disable-threads
|
|
|
|
endif
|
2015-03-16 17:31:26 +01:00
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--enable,--disable)-openmp
|
2015-03-16 17:31:25 +01:00
|
|
|
|
2015-03-16 17:31:21 +01:00
|
|
|
FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)"
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|