[package] update fftw3 to 3.2.2 (#5882)
[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 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fftw3
11 PKG_VERSION:=3.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=fftw-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.fftw.org
16 PKG_MD5SUM:=b616e5c91218cc778b5aa735fefb61ae
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fftw3
23 SECTION:=Libraries
24 CATEGORY:=Libraries
25 DEPENDS:=@!avr32
26 TITLE:=Fast Fourier transform library
27 URL:=http://www.fftw.org/
28 endef
29
30 define Package/fftw3/description
31 FFTW is a collection of fast C routines for computing the
32 Discrete Fourier Transform in one or more dimensions. It
33 includes complex, real, and parallel transforms, and can
34 handle arbitrary array sizes efficiently.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --prefix=/usr \
41 --without-libiconv-prefix \
42 --without-libintl-prefix \
43 --disable-nls \
44 --enable-shared \
45 --enable-threads \
46 --enable-double \
47 --enable-type-prefix \
48 --disable-debug \
49 --disable-fortran \
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/fftw3.h $(1)/usr/include
58 mkdir -p $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.{a,so,la} $(1)/usr/lib
60 endef
61
62 define Package/fftw3/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3.so* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,fftw3))