8magsvn – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
17 kaklik 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  
4 kaklik 8 include $(TOPDIR)/rules.mk
9  
10 PKG_NAME:=fftw3
11 PKG_VERSION:=3.1.2
12  
17 kaklik 13  
4 kaklik 14 PKG_SOURCE_URL:=http://www.fftw.org/
15 PKG_SOURCE:=fftw-3.1.2.tar.gz
17 kaklik 16 PKG_MD5SUM:=08f2e21c9fd02f4be2bd53a62592afa4
4 kaklik 17  
18 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20  
17 kaklik 21 include $(INCLUDE_DIR)/package.mk
4 kaklik 22  
17 kaklik 23 define Package/fftw3
24 SECTION:=Libraries
25 CATEGORY:=Libraries
26 TITLE:=Fast Fourier transform library
27 URL:=http://www.fftw.org/
28 endef
4 kaklik 29  
17 kaklik 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 http://www.fftw.org/
36 endef
4 kaklik 37  
17 kaklik 38 CONFIGURE_ARGS += \
39 --prefix=/usr \
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
42 --disable-nls \
43 --enable-shared \
44 --enable-threads \
45 --enable-double \
46 --enable-type-prefix \
47 --disable-debug \
48 --disable-fortran \
4 kaklik 49  
17 kaklik 50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
52 endef
4 kaklik 53  
20 kaklik 54 define Build/InstallDev
55 mkdir -p $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/fftw3.h \
57 $(1)/usr/include/
58 mkdir -p $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3* \
60 $(1)/usr/lib/
61 endef
62  
17 kaklik 63 define Package/fftw3/install
19 kaklik 64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfftw3.so* $(1)/usr/lib/
17 kaklik 66 endef
67  
68 $(eval $(call BuildPackage,fftw3))