2011-09-28 23:32:32 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# fftw
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-29 12:31:47 +02:00
|
|
|
FFTW_VERSION = 3.3.8
|
2011-09-28 23:32:32 +02:00
|
|
|
FFTW_SITE = http://www.fftw.org
|
|
|
|
FFTW_INSTALL_STAGING = YES
|
2017-03-30 15:43:32 +02:00
|
|
|
FFTW_LICENSE = GPL-2.0+
|
2013-05-12 05:53:51 +02:00
|
|
|
FFTW_LICENSE_FILES = COPYING
|
2011-09-28 23:32:32 +02:00
|
|
|
|
2016-07-03 15:47:49 +02:00
|
|
|
# fortran support only enables generation and installation of fortran sources
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
|
|
|
|
FFTW_CONF_OPTS += --enable-fortran
|
|
|
|
FFTW_CONF_ENV += FLIBS="-lgfortran -lm"
|
|
|
|
else
|
|
|
|
FFTW_CONF_OPTS += --disable-fortran
|
|
|
|
endif
|
2015-03-16 17:31:24 +01:00
|
|
|
|
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)
|
2015-04-11 12:41:47 +02:00
|
|
|
FFTW_CFLAGS += -O3 -ffast-math
|
2015-03-16 17:31:21 +01:00
|
|
|
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)
|
2016-06-22 19:00:16 +02:00
|
|
|
FFTW_CONF_OPTS += --enable-threads
|
|
|
|
FFTW_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--without,--with)-combined-threads
|
2015-03-16 17:31:25 +01:00
|
|
|
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))
|