49c8be91af858c4d4022d8621f75ca531d533fa7
[feed/packages.git] / mail / mutt / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=mutt
11 PKG_VERSION:=2.1.3
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE_URL:=https://bitbucket.org/mutt/mutt/downloads/ \
15 http://ftp.mutt.org/pub/mutt/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_HASH:=ef759cc94b921b099a3ee88085d384fd3564c97f511e907bc83cf9812dd5e47c
18
19 PKG_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
20 PKG_LICENSE:=GPL-2.0-or-later
21 PKG_LICENSE_FILES:=GPL
22 PKG_CPE_ID:=cpe:/a:mutt:mutt
23
24 PKG_FIXUP:=autoreconf
25 PKG_INSTALL:=1
26 PKG_BUILD_PARALLEL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/mutt
31 SECTION:=mail
32 CATEGORY:=Mail
33 DEPENDS:=+MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +terminfo +zlib
34 TITLE:=Console mail client
35 URL:=http://www.mutt.org/
36 MENU:=1
37 endef
38
39 define Package/mutt/description
40 Mutt is a small but very powerful text-based mail client for Unix
41 operating systems.
42 endef
43
44 CONFIGURE_ARGS += \
45 --includedir=$(PKG_BUILD_DIR)/. \
46 --oldincludedir=$(PKG_BUILD_DIR)/. \
47 $(if $(CONFIG_MUTT_POP),--enable-pop) \
48 $(if $(CONFIG_MUTT_IMAP),--enable-imap) \
49 $(if $(CONFIG_MUTT_SMTP),--enable-smtp) \
50 $(if $(CONFIG_MUTT_SASL),--with-sasl) \
51 --with-mailpath=/var/mail \
52 $(if $(CONFIG_MUTT_GNUTLS),--with-gnutls) \
53 $(if $(CONFIG_MUTT_OPENSSL),--with-ssl) \
54 --without-idn \
55 --disable-doc
56
57 define Package/mutt/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
60 endef
61
62 define Package/mutt/config
63 config MUTT_POP
64 depends on PACKAGE_mutt
65 bool "POP support"
66 default y
67 help
68 Enables POP support in mutt.
69 config MUTT_IMAP
70 depends on PACKAGE_mutt
71 bool "IMAP support"
72 default y
73 help
74 Enables IMAP support in mutt
75 config MUTT_SMTP
76 depends on PACKAGE_mutt
77 bool "SMTP support"
78 default n
79 help
80 Enables SMTP support in mutt.
81 config MUTT_SASL
82 depends on PACKAGE_mutt
83 bool "SASL support"
84 default n
85 help
86 Enables SASL support in mutt (libsasl2).
87 config MUTT_GNUTLS
88 depends on PACKAGE_mutt
89 bool "GnuTLS support"
90 default n
91 help
92 Enables GnuTLS support in mutt (libgnutls).
93 config MUTT_OPENSSL
94 depends on PACKAGE_mutt
95 bool "OpenSSL support"
96 default y
97 help
98 Enables OpenSSL support in mutt (libopenssl).
99 endef
100
101 $(eval $(call BuildPackage,mutt))