[package] fetchmail: update to 3.6.22
[openwrt/svn-archive/archive.git] / mail / fetchmail / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fetchmail
11 PKG_VERSION:=6.3.22
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://download.berlios.de/fetchmail
16 PKG_MD5SUM:=2f7b8ee1bed3a70839a2fb41a69c7f6e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/fetchmail/Default
24 SECTION:=mail
25 CATEGORY:=Mail
26 TITLE:=Remote mail retriever
27 URL:=http://fetchmail.berlios.de/
28 endef
29
30 define Package/fetchmail/Default/description
31 Retrieves remote mail via POP/IMAP.
32 Very useful in conjunction with mutt.
33 endef
34
35 define Package/fetchmail
36 $(call Package/fetchmail/Default)
37 DEPENDS+= +libopenssl
38 TITLE+= (with SSL support)
39 VARIANT:=ssl
40 endef
41
42 define Package/fetchmail/description
43 $(call Package/fetchmail/Default/description)
44 This package is built with SSL support.
45 endef
46
47 define Package/fetchmail-nossl
48 $(call Package/fetchmail/Default)
49 TITLE+= (without SSL support)
50 VARIANT:=nossl
51 endef
52
53 define Package/fetchmail-nossl/description
54 $(call Package/fetchmail/Default/description)
55 This package is built without SSL support.
56 endef
57
58 CONFIGURE_ARGS += \
59 --enable-fallback=procmail \
60 --without-hesiod
61
62 ifeq ($(BUILD_VARIANT),ssl)
63 CONFIGURE_ARGS += \
64 --with-ssl="$(STAGING_DIR)/usr"
65 endif
66
67 ifeq ($(BUILD_VARIANT),nossl)
68 CONFIGURE_ARGS += \
69 --without-ssl
70 endif
71
72 CONFIGURE_VARS += \
73 ac_cv_path_procmail=/usr/sbin/procmail
74
75 define Package/fetchmail/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(CP) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
78 endef
79
80 Package/fetchmail-nossl/install = $(Package/fetchmail/install)
81
82 $(eval $(call BuildPackage,fetchmail))
83 $(eval $(call BuildPackage,fetchmail-nossl))