treewide: remove AUTORELEASE
[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.5
12 PKG_RELEASE:=2
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:=92a309e47e363a97d62425bcb71adceae5ab5c4c413dbcac37fa98ed70c12be0
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 PKG_CONFIG_DEPENDS:= \
28 CONFIG_MUTT_POP \
29 CONFIG_MUTT_IMAP \
30 CONFIG_MUTT_SMTP \
31 CONFIG_MUTT_HCACHE \
32 CONFIG_MUTT_SASL \
33 CONFIG_MUTT_GNUTLS \
34 CONFIG_MUTT_OPENSSL
35
36 include $(INCLUDE_DIR)/package.mk
37
38 define Package/mutt
39 SECTION:=mail
40 CATEGORY:=Mail
41 DEPENDS:=+MUTT_HCACHE:libgdbm +MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +terminfo +zlib
42 TITLE:=Console mail client
43 URL:=http://www.mutt.org/
44 MENU:=1
45 endef
46
47 define Package/mutt/description
48 Mutt is a small but very powerful text-based mail client for Unix
49 operating systems.
50 endef
51
52 CONFIGURE_ARGS += \
53 --includedir=$(PKG_BUILD_DIR)/. \
54 --oldincludedir=$(PKG_BUILD_DIR)/. \
55 $(if $(CONFIG_MUTT_POP),--enable-pop) \
56 $(if $(CONFIG_MUTT_IMAP),--enable-imap) \
57 $(if $(CONFIG_MUTT_SMTP),--enable-smtp) \
58 $(if $(CONFIG_MUTT_HCACHE),--enable-hcache) \
59 $(if $(CONFIG_MUTT_SASL),--with-sasl) \
60 --with-mailpath=/var/mail \
61 $(if $(CONFIG_MUTT_GNUTLS),--with-gnutls) \
62 $(if $(CONFIG_MUTT_OPENSSL),--with-ssl) \
63 --without-idn \
64 --disable-doc
65
66 define Package/mutt/install
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
69 endef
70
71 define Package/mutt/config
72 source "$(SOURCE)/Config.in"
73 endef
74
75 $(eval $(call BuildPackage,mutt))