1################################################################################ 2# 3# mutt 4# 5################################################################################ 6 7MUTT_VERSION = 2.1.1 8MUTT_SITE = https://bitbucket.org/mutt/mutt/downloads 9MUTT_LICENSE = GPL-2.0+ 10MUTT_LICENSE_FILES = GPL 11MUTT_CPE_ID_VENDOR = mutt 12MUTT_DEPENDENCIES = ncurses 13MUTT_CONF_OPTS = --disable-doc --disable-smtp 14 15ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 16MUTT_CONF_ENV += LIBS=-latomic 17endif 18 19ifeq ($(BR2_PACKAGE_LIBICONV),y) 20MUTT_DEPENDENCIES += libiconv 21MUTT_CONF_OPTS += --enable-iconv 22endif 23 24# Both options can't be selected at the same time so prefer libidn2 25ifeq ($(BR2_PACKAGE_LIBIDN2),y) 26MUTT_DEPENDENCIES += libidn2 27MUTT_CONF_OPTS += --with-idn2 --without-idn 28else ifeq ($(BR2_PACKAGE_LIBIDN),y) 29MUTT_DEPENDENCIES += libidn 30MUTT_CONF_OPTS += --with-idn --without-idn2 31else 32MUTT_CONF_OPTS += --without-idn --without-idn2 33endif 34 35ifeq ($(BR2_PACKAGE_LIBGPGME),y) 36MUTT_DEPENDENCIES += libgpgme 37MUTT_CONF_OPTS += \ 38 --enable-gpgme \ 39 --with-gpgme-prefix=$(STAGING_DIR)/usr 40else 41MUTT_CONF_OPTS += --disable-gpgme 42endif 43 44ifeq ($(BR2_PACKAGE_MUTT_IMAP),y) 45MUTT_CONF_OPTS += --enable-imap 46else 47MUTT_CONF_OPTS += --disable-imap 48endif 49 50ifeq ($(BR2_PACKAGE_MUTT_POP3),y) 51MUTT_CONF_OPTS += --enable-pop 52else 53MUTT_CONF_OPTS += --disable-pop 54endif 55 56# SSL support is only used by imap or pop3 module 57ifneq ($(BR2_PACKAGE_MUTT_IMAP)$(BR2_PACKAGE_MUTT_POP3),) 58ifeq ($(BR2_PACKAGE_OPENSSL),y) 59MUTT_DEPENDENCIES += openssl 60MUTT_CONF_OPTS += \ 61 --without-gnutls \ 62 --with-ssl=$(STAGING_DIR)/usr 63else ifeq ($(BR2_PACKAGE_GNUTLS),y) 64MUTT_DEPENDENCIES += gnutls 65MUTT_CONF_OPTS += \ 66 --with-gnutls=$(STAGING_DIR)/usr \ 67 --without-ssl 68else 69MUTT_CONF_OPTS += \ 70 --without-gnutls \ 71 --without-ssl 72endif 73else 74MUTT_CONF_OPTS += \ 75 --without-gnutls \ 76 --without-ssl 77endif 78 79ifeq ($(BR2_PACKAGE_SQLITE),y) 80MUTT_DEPENDENCIES += sqlite 81MUTT_CONF_OPTS += --with-sqlite3 82else 83MUTT_CONF_OPTS += --without-sqlite3 84endif 85 86ifeq ($(BR2_PACKAGE_ZLIB),y) 87MUTT_DEPENDENCIES += zlib 88MUTT_CONF_OPTS += --with-zlib=$(STAGING_DIR)/usr 89else 90MUTT_CONF_OPTS += --without-zlib 91endif 92 93# Avoid running tests to check for: 94# - target system is *BSD 95# - C99 conformance (snprintf, vsnprintf) 96# - behaviour of the regex library 97# - if mail spool directory is world/group writable 98# - we have a working libiconv 99MUTT_CONF_ENV += \ 100 mutt_cv_bsdish=no \ 101 mutt_cv_c99_snprintf=yes \ 102 mutt_cv_c99_vsnprintf=yes \ 103 mutt_cv_regex_broken=no \ 104 mutt_cv_worldwrite=yes \ 105 mutt_cv_groupwrite=yes \ 106 mutt_cv_iconv_good=yes \ 107 mutt_cv_iconv_nontrans=no 108 109MUTT_CONF_OPTS += --with-mailpath=/var/mail 110 111define MUTT_VAR_MAIL 112 mkdir -p $(TARGET_DIR)/var 113 ln -sf /tmp $(TARGET_DIR)/var/mail 114endef 115MUTT_POST_INSTALL_TARGET_HOOKS += MUTT_VAR_MAIL 116 117$(eval $(autotools-package)) 118