update iftop to 0.17, closes #475
[openwrt.git] / openwrt / package / fetchmail / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=fetchmail
6 PKG_VERSION:=6.2.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9956b30139edaa4f5f77c4d0dbd80225
9
10 PKG_SOURCE_URL:=http://www.catb.org/~esr/fetchmail/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,FETCHMAIL,fetchmail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 ac_cv_c_bigendian=no \
28 ac_cv_sizeof_off_t=8 \
29 ac_cv_sizeof_int=4 \
30 ac_cv_sizeof_long=4 \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 $(DISABLE_NLS) \
50 $(DISABLE_LARGEFILE) \
51 --enable-fallback=procmail \
52 --without-hesiod \
53 );
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
57 rm -rf $(PKG_INSTALL_DIR)
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 all install
62 touch $@
63
64 $(IPKG_FETCHMAIL):
65 mkdir -p $(IDIR_FETCHMAIL)/usr/bin
66 $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(IDIR_FETCHMAIL)/usr/bin/
67 $(RSTRIP) $(IDIR_FETCHMAIL)
68 $(IPKG_BUILD) $(IDIR_FETCHMAIL) $(PACKAGE_DIR)
This page took 0.052808 seconds and 5 git commands to generate.