4 |
kaklik |
1 |
include $(TOPDIR)/rules.mk |
|
|
2 |
|
|
|
3 |
PKG_NAME:=fftw3 |
|
|
4 |
PKG_VERSION:=3.1.2 |
|
|
5 |
PKG_RELEASE:=1 |
|
|
6 |
PKG_MD5SUM:=08f2e21c9fd02f4be2bd53a62592afa4 |
|
|
7 |
|
|
|
8 |
PKG_SOURCE_URL:=http://www.fftw.org/ |
|
|
9 |
PKG_SOURCE:=fftw-3.1.2.tar.gz |
|
|
10 |
PKG_CAT:=zcat |
|
|
11 |
|
|
|
12 |
PKG_BUILD_DIR:=$(BUILD_DIR)/fftw-$(PKG_VERSION) |
|
|
13 |
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install |
|
|
14 |
|
|
|
15 |
include $(TOPDIR)/package/rules.mk |
|
|
16 |
|
|
|
17 |
$(eval $(call PKG_template,FFTW,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) |
|
|
18 |
|
|
|
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 \ |
|
|
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 |