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)
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += --enable-fortran
|
|
|
|
FFTW_COMMON_CONF_ENV += FLIBS="-lgfortran -lm"
|
2016-07-03 15:47:49 +02:00
|
|
|
else
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += --disable-fortran
|
2016-07-03 15:47:49 +02:00
|
|
|
endif
|
2015-03-16 17:31:24 +01:00
|
|
|
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CFLAGS = $(TARGET_CFLAGS)
|
2015-03-16 17:31:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_FAST),y)
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CFLAGS += -O3 -ffast-math
|
2015-03-16 17:31:21 +01:00
|
|
|
endif
|
|
|
|
|
2015-03-16 17:31:22 +01:00
|
|
|
# x86 optimisations
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE),--enable,--disable)-sse
|
|
|
|
FFTW_COMMON_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2
|
2015-03-16 17:31:22 +01:00
|
|
|
|
2015-03-16 17:31:23 +01:00
|
|
|
# ARM optimisations
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon
|
|
|
|
FFTW_COMMON_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon)
|
2015-03-16 17:31:23 +01:00
|
|
|
|
2015-03-16 17:31:25 +01:00
|
|
|
# Generic optimisations
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += --enable-threads
|
|
|
|
FFTW_COMMON_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--without,--with)-combined-threads
|
2015-03-16 17:31:25 +01:00
|
|
|
else
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += --disable-threads
|
2015-03-16 17:31:25 +01:00
|
|
|
endif
|
2019-01-21 14:50:55 +01:00
|
|
|
FFTW_COMMON_CONF_OPTS += $(if $(BR2_GCC_ENABLE_OPENMP),--enable,--disable)-openmp
|
|
|
|
|
|
|
|
FFTW_CONF_ENV = $(FFTW_COMMON_CONF_ENV)
|
|
|
|
FFTW_CONF_OPTS += \
|
|
|
|
$(FFTW_COMMON_CONF_OPTS) \
|
|
|
|
$(if $(BR2_PACKAGE_FFTW_PRECISION_SINGLE),--enable,--disable)-single \
|
|
|
|
$(if $(BR2_PACKAGE_FFTW_PRECISION_LONG_DOUBLE),--enable,--disable)-long-double \
|
|
|
|
$(if $(BR2_PACKAGE_FFTW_PRECISION_QUAD),--enable,--disable)-quad-precision \
|
|
|
|
CFLAGS="$(FFTW_COMMON_CFLAGS)"
|
2015-03-16 17:31:21 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|