2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
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
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
28 include $(INCLUDE_DIR
)/package.mk
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
/
38 define Package
/mutt
/description
39 Mutt is a small but very powerful text-based mail client for Unix
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
) \
56 define Package
/mutt
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mutt
$(1)/usr
/bin
/
61 define Package
/mutt
/config
62 menu
"Select mutt build options"
67 Enables POP support in mutt.
72 Enables IMAP support in mutt
77 Enables SMTP support in mutt.
82 Enables SASL support in mutt
(libsasl2
).
87 Enables GnuTLS support in mutt
(libgnutls
).
89 bool
"OpenSSL support"
92 Enables OpenSSL support in mutt
(libopenssl
).
96 $(eval
$(call BuildPackage
,mutt
))