# 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 = fftw3 GARVERSION = 3.2 CATEGORIES = math MASTER_SITES = http://www.fftw.org/ DISTNAME = fftw-$(GARVERSION) DISTFILES = $(DISTNAME).tar.gz DESCRIPTION = A fast FFT library HOME_URL = http://www.fftw.org/ floatsrc = $(WORKDIR)/fftw3-float CONFIGURE_SCRIPTS = $(WORKSRC)/configure float BUILD_SCRIPTS = $(WORKSRC)/Makefile $(floatsrc)/Makefile INSTALL_SCRIPTS = $(WORKSRC)/Makefile-DESTDIR CONFIGURE_ARGS = $(DIRPATHS) \ --enable-shared \ --enable-static DESTDIR_POST_COMMAND = $(INSTALL_ENV) $(MAKE) -C $(floatsrc) $(DESTDIR_INSTALL_ARGS) install DESTDIR=$(packageDESTDIR) include ../../gar.mk pre-configure: @cp -a $(WORKSRC) $(floatsrc) $(MAKECOOKIE) configure-float: @cd $(floatsrc) && $(CONFIGURE_ENV) ./configure $(CONFIGURE_ARGS) --enable-float $(MAKECOOKIE)