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