# This is a bit of a mess. The problem is that the fftw library can only be # built for one data format at a time, so if we want both single-precision and # double-precision versions then we need two source trees. The alternative # would be two seperate packages, but then there'd be an equally messy # exclusions list for all the documentation, include files, etc. that the two # versions share... GARNAME = fftw GARVERSION = 3.3.1 CATEGORIES = math MASTER_SITES = http://www.fftw.org/ DISTFILES = $(DISTNAME).tar.gz DESCRIPTION = A fast FFT library HOME_URL = http://www.fftw.org/ floatsrc = $(WORKDIR)/fftw-float POST_CONFIGURE_SCRIPTS = float POST_BUILD_SCRIPTS = $(floatsrc)/Makefile POST_INSTALL_SCRIPTS = $(floatsrc)/Makefile-DESTDIR include ../../gar.lib/auto.mk CONFIGURE_ARGS += \ --enable-shared \ --enable-static DECONFLICT += fftw3 pre-configure: @cp -a $(WORKSRC) $(floatsrc) $(MAKECOOKIE) configure-float: @cd $(floatsrc) && $(BUILD_CTX) $(CONFIGURE_ENV) ./configure $(CONFIGURE_ARGS) --enable-float $(MAKECOOKIE)