You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mutt
  9. PKG_VERSION:=2.1.5
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE_URL:=https://bitbucket.org/mutt/mutt/downloads/ \
  12. http://ftp.mutt.org/pub/mutt/
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_HASH:=92a309e47e363a97d62425bcb71adceae5ab5c4c413dbcac37fa98ed70c12be0
  15. PKG_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=GPL
  18. PKG_CPE_ID:=cpe:/a:mutt:mutt
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_CONFIG_DEPENDS:= \
  23. CONFIG_MUTT_POP \
  24. CONFIG_MUTT_IMAP \
  25. CONFIG_MUTT_SMTP \
  26. CONFIG_MUTT_HCACHE \
  27. CONFIG_MUTT_SASL \
  28. CONFIG_MUTT_GNUTLS \
  29. CONFIG_MUTT_OPENSSL
  30. include $(INCLUDE_DIR)/package.mk
  31. define Package/mutt
  32. SECTION:=mail
  33. CATEGORY:=Mail
  34. DEPENDS:=+MUTT_HCACHE:libgdbm +MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +terminfo +zlib
  35. TITLE:=Console mail client
  36. URL:=http://www.mutt.org/
  37. MENU:=1
  38. endef
  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. 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_HCACHE),--enable-hcache) \
  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. 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. define Package/mutt/config
  61. source "$(SOURCE)/Config.in"
  62. endef
  63. $(eval $(call BuildPackage,mutt))