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.

101 lines
2.4 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.3
  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:=ef759cc94b921b099a3ee88085d384fd3564c97f511e907bc83cf9812dd5e47c
  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. include $(INCLUDE_DIR)/package.mk
  23. define Package/mutt
  24. SECTION:=mail
  25. CATEGORY:=Mail
  26. DEPENDS:=+MUTT_GNUTLS:libgnutls +MUTT_OPENSSL:libopenssl +libncursesw +MUTT_SASL:libsasl2 +terminfo +zlib
  27. TITLE:=Console mail client
  28. URL:=http://www.mutt.org/
  29. MENU:=1
  30. endef
  31. define Package/mutt/description
  32. Mutt is a small but very powerful text-based mail client for Unix
  33. operating systems.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --includedir=$(PKG_BUILD_DIR)/. \
  37. --oldincludedir=$(PKG_BUILD_DIR)/. \
  38. $(if $(CONFIG_MUTT_POP),--enable-pop) \
  39. $(if $(CONFIG_MUTT_IMAP),--enable-imap) \
  40. $(if $(CONFIG_MUTT_SMTP),--enable-smtp) \
  41. $(if $(CONFIG_MUTT_SASL),--with-sasl) \
  42. --with-mailpath=/var/mail \
  43. $(if $(CONFIG_MUTT_GNUTLS),--with-gnutls) \
  44. $(if $(CONFIG_MUTT_OPENSSL),--with-ssl) \
  45. --without-idn \
  46. --disable-doc
  47. define Package/mutt/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mutt $(1)/usr/bin/
  50. endef
  51. define Package/mutt/config
  52. config MUTT_POP
  53. depends on PACKAGE_mutt
  54. bool "POP support"
  55. default y
  56. help
  57. Enables POP support in mutt.
  58. config MUTT_IMAP
  59. depends on PACKAGE_mutt
  60. bool "IMAP support"
  61. default y
  62. help
  63. Enables IMAP support in mutt
  64. config MUTT_SMTP
  65. depends on PACKAGE_mutt
  66. bool "SMTP support"
  67. default n
  68. help
  69. Enables SMTP support in mutt.
  70. config MUTT_SASL
  71. depends on PACKAGE_mutt
  72. bool "SASL support"
  73. default n
  74. help
  75. Enables SASL support in mutt (libsasl2).
  76. config MUTT_GNUTLS
  77. depends on PACKAGE_mutt
  78. bool "GnuTLS support"
  79. default n
  80. help
  81. Enables GnuTLS support in mutt (libgnutls).
  82. config MUTT_OPENSSL
  83. depends on PACKAGE_mutt
  84. bool "OpenSSL support"
  85. default y
  86. help
  87. Enables OpenSSL support in mutt (libopenssl).
  88. endef
  89. $(eval $(call BuildPackage,mutt))