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)
|
2019-01-21 14:50:56 +01:00
|
|
|
|
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: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
|
|
|
|
|
2019-01-21 14:50:56 +01:00
|
|
|
include $(sort $(wildcard package/fftw/*/*.mk))
|