[packages] dovecot: update to 2.2.12
[packages.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.26
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:=61b66faad044afa26e142bb1791aa2b3
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   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
28   URL:=http://fetchmail.berlios.de/
29 endef
30
31 define Package/fetchmail/Default/description
32  Retrieves remote mail via POP/IMAP.
33  Very useful in conjunction with mutt.
34 endef
35
36 define Package/fetchmail
37   $(call Package/fetchmail/Default)
38   DEPENDS+= +libopenssl
39   TITLE+= (with SSL support)
40   VARIANT:=ssl
41 endef
42
43 define Package/fetchmail/description
44  $(call Package/fetchmail/Default/description)
45  This package is built with SSL support.
46 endef
47
48 define Package/fetchmail-nossl
49   $(call Package/fetchmail/Default)
50   TITLE+= (without SSL support)
51   VARIANT:=nossl
52 endef
53
54 define Package/fetchmail-nossl/description
55  $(call Package/fetchmail/Default/description)
56  This package is built without SSL support.
57 endef
58
59 CONFIGURE_ARGS += \
60         --enable-fallback=procmail \
61         --without-hesiod
62
63 ifeq ($(BUILD_VARIANT),ssl)
64         CONFIGURE_ARGS += \
65                 --with-ssl="$(STAGING_DIR)/usr"
66 endif
67
68 ifeq ($(BUILD_VARIANT),nossl)
69         CONFIGURE_ARGS += \
70                 --without-ssl
71 endif
72
73 CONFIGURE_VARS += \
74         ac_cv_path_procmail=/usr/sbin/procmail
75
76 define Package/fetchmail/install
77         $(INSTALL_DIR) $(1)/usr/bin
78         $(CP) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
79 endef
80
81 Package/fetchmail-nossl/install = $(Package/fetchmail/install)
82
83 $(eval $(call BuildPackage,fetchmail))
84 $(eval $(call BuildPackage,fetchmail-nossl))