3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=9956b30139edaa4f5f77c4d0dbd80225
10 PKG_SOURCE_URL
:=http
://www.catb.org
/~esr
/fetchmail
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,FETCHMAIL
,fetchmail
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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 \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
51 --enable-fallback
=procmail \
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)" \
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
)