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