[packages] c-ares: update to 1.7.1
[openwrt/svn-archive/archive.git] / libs / fftw3 / Makefile
1 #
2 # Copyright (C) 2007-2010 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:=2
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 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fftw3
24 SECTION:=libs
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 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41 --prefix=/usr \
42 --without-libiconv-prefix \
43 --without-libintl-prefix \
44 --disable-nls \
45 --enable-shared \
46 --enable-threads \
47 --enable-double \
48 --enable-type-prefix \
49 --disable-debug \
50 --disable-fortran \
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
54 endef
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/fftw3.h $(1)/usr/include
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3*.{a,so,la} $(1)/usr/lib
61 endef
62
63 define Package/fftw3/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3.so* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,fftw3))