8magsvn – Diff between revs 4 and 17

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 4 Rev 17
Line -... Line 1...
-   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  
1 include $(TOPDIR)/rules.mk 8 include $(TOPDIR)/rules.mk
2   9  
3 PKG_NAME:=fftw3 10 PKG_NAME:=fftw3
4 PKG_VERSION:=3.1.2 11 PKG_VERSION:=3.1.2
5 PKG_RELEASE:=1 12  
6 PKG_MD5SUM:=08f2e21c9fd02f4be2bd53a62592afa4 -  
7   13  
8 PKG_SOURCE_URL:=http://www.fftw.org/ 14 PKG_SOURCE_URL:=http://www.fftw.org/
9 PKG_SOURCE:=fftw-3.1.2.tar.gz 15 PKG_SOURCE:=fftw-3.1.2.tar.gz
10 PKG_CAT:=zcat 16 PKG_MD5SUM:=08f2e21c9fd02f4be2bd53a62592afa4
11   17  
12 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION) 18 PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14   20  
15 include $(TOPDIR)/package/rules.mk 21 include $(INCLUDE_DIR)/package.mk
16   22  
-   23 define Package/fftw3
-   24 SECTION:=Libraries
-   25 CATEGORY:=Libraries
-   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 http://www.fftw.org/
-   36 endef
-   37  
-   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 \
-   49  
-   50 define Build/Compile
17 $(eval $(call PKG_template,FFTW,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 51 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
-   52 endef
-   53  
-   54 define Package/fftw3/install
-   55 $(INSTALL_DIR) $(1)/usr/bin
-   56 $(INSTALL_BIN) $(BUILD_DIR)/indi/src $(1)/usr/bin/
-   57 endef
18   58  
19 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared -  
20 (cd $(PKG_BUILD_DIR); \ -  
21 $(TARGET_CONFIGURE_OPTS) \ -  
22 CFLAGS="$(TARGET_CFLAGS)" \ -  
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ -  
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ -  
25 ./configure \ -  
26 --target=$(GNU_TARGET_NAME) \ -  
27 --host=$(GNU_TARGET_NAME) \ -  
28 --build=$(GNU_HOST_NAME) \ -  
29 --prefix=/usr \ -  
30 --without-libiconv-prefix \ -  
31 --without-libintl-prefix \ -  
32 --disable-nls \ -  
33 --enable-shared \ -  
34 --enable-threads \ -  
35 --enable-double \ -  
36 --enable-type-prefix \ 59 $(eval $(call BuildPackage,fftw3))
37 --disable-debug \ -  
38 --disable-fortran \ -  
39 ); -  
40 touch $@ -  
41   -  
42 $(PKG_BUILD_DIR)/.built: -  
43 rm -rf $(PKG_INSTALL_DIR) -  
44 $(MAKE) -C $(PKG_BUILD_DIR) \ -  
45 DESTDIR=$(PKG_INSTALL_DIR) \ -  
46 all install -  
47 touch $@ -  
48   -  
49 $(IPKG_FFTW): -  
50 install -d $(IDIR_FFTW)/usr/lib -  
51 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(IDIR_FFTW)/usr/lib -  
52 $(RSTRIP) $(IDIR_FFTW) -  
53 $(IPKG_BUILD) $(IDIR_FFTW) $(PACKAGE_DIR) -  
54   -  
55 mostlyclean: -  
56 make -C $(PKG_BUILD_DIR) clean -  
57 rm $(PKG_BUILD_DIR)/.built -