1 # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
3 include $(TOPDIR
)/rules.mk
9 PKG_SOURCE_URL
:=http
://www.catb.org
/~esr
/fetchmail
/
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_MD5SUM
:=9956b30139edaa4f5f77c4d0dbd80225
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,FETCHMAIL
,fetchmail
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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 \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
38 --libexecdir
=/usr
/lib \
40 --datadir=/usr
/share \
41 --localstatedir
=/var \
45 --enable-fallback
=procmail \
50 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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
)