fftw3 is broken on avr32
[openwrt/svn-archive/archive.git] / libs / fftw3 / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 # $Id: $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fftw3
11 PKG_VERSION:=3.1.2
12
13
14 PKG_SOURCE_URL:=http://www.fftw.org/
15 PKG_SOURCE:=fftw-3.1.2.tar.gz
16 PKG_MD5SUM:=08f2e21c9fd02f4be2bd53a62592afa4
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fftw3
24 SECTION:=Libraries
25 CATEGORY:=Libraries
26 DEPENDS:=@!avr32
27 TITLE:=Fast Fourier transform library
28 URL:=http://www.fftw.org/
29 endef
30
31 define Package/fftw3/description
32 FFTW is a collection of fast C routines for computing the
33 Discrete Fourier Transform in one or more dimensions. It
34 includes complex, real, and parallel transforms, and can
35 handle arbitrary array sizes efficiently.
36 http://www.fftw.org/
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 CONFIGURE_ARGS += \
42 --prefix=/usr \
43 --without-libiconv-prefix \
44 --without-libintl-prefix \
45 --disable-nls \
46 --enable-shared \
47 --enable-threads \
48 --enable-double \
49 --enable-type-prefix \
50 --disable-debug \
51 --disable-fortran \
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
55 endef
56
57 define Package/fftw3/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3.so* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,fftw3))