4bafcc16f4bb8de64f72d46ab6898b780a8ef997
[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 endef
37
38 define Package/mutt/description
39 Mutt is a small but very powerful text-based mail client for Unix
40 operating systems.
41 endef
42
43 CONFIGURE_ARGS += \
44 --includedir=$(PKG_BUILD_DIR)/. \
45 --oldincludedir=$(PKG_BUILD_DIR)/. \
46 $(if $(CONFIG_MUTT_POP),--enable-pop) \
47 $(if $(CONFIG_MUTT_IMAP),--enable-imap) \
48 $(if $(CONFIG_MUTT_SMTP),--enable-smtp) \
49 $(if $(CONFIG_MUTT_SASL),--with-sasl) \
50 --with-mailpath=/var/mail \
51 $(if $(CONFIG_MUTT_GNUTLS),--with-gnutls) \
52 $(if $(CONFIG_MUTT_OPENSSL),--with-ssl) \
53 --without-idn \
54 --disable-doc
55
56 define Package/mutt/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
59 endef
60
61 define Package/mutt/config
62 menu "Select mutt build options"
63 config MUTT_POP
64 bool "POP support"
65 default y
66 help
67 Enables POP support in mutt.
68 config MUTT_IMAP
69 bool "IMAP support"
70 default y
71 help
72 Enables IMAP support in mutt
73 config MUTT_SMTP
74 bool "SMTP support"
75 default n
76 help
77 Enables SMTP support in mutt.
78 config MUTT_SASL
79 bool "SASL support"
80 default n
81 help
82 Enables SASL support in mutt (libsasl2).
83 config MUTT_GNUTLS
84 bool "GnuTLS support"
85 default n
86 help
87 Enables GnuTLS support in mutt (libgnutls).
88 config MUTT_OPENSSL
89 bool "OpenSSL support"
90 default y
91 help
92 Enables OpenSSL support in mutt (libopenssl).
93 endmenu
94 endef
95
96 $(eval $(call BuildPackage,mutt))