2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
:=http
://www.fftw.org
/
14 PKG_SOURCE
:=fftw-3.1
.2.
tar.gz
15 PKG_MD5SUM
:=08f2e21c9fd02f4be2bd53a62592afa4
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/fftw-
$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=Fast Fourier transform library
26 URL
:=http
://www.fftw.org
/
29 define Package
/fftw3
/description
30 FFTW is a collection of fast C routines for computing the
31 Discrete Fourier Transform in one or more dimensions. It
32 includes complex
, real
, and parallel transforms
, and can
33 handle arbitrary array sizes efficiently.
37 TARGET_CFLAGS
+= $(FPIC
)
41 --without-libiconv-prefix \
42 --without-libintl-prefix \
47 --enable-type-prefix \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
55 define Build
/InstallDev
56 mkdir
-p
$(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/fftw3.h
$(1)/usr
/include
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfftw3
*.
{a
,so
,la
} $(1)/usr
/lib
62 define Package
/fftw3
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfftw3.so
* $(1)/usr
/lib
/
67 $(eval
$(call BuildPackage
,fftw3
))