92457a18710785b120e7b436692e0160050eeb8a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mutt / mutt.mk
1 ################################################################################
2 #
3 # mutt
4 #
5 ################################################################################
6
7 MUTT_VERSION = 1.5.23
8 MUTT_SITE = http://downloads.sourceforge.net/project/mutt/mutt
9 MUTT_LICENSE = GPLv2+
10 MUTT_LICENSE_FILES = GPL
11 MUTT_DEPENDENCIES = ncurses
12 MUTT_CONF_OPTS = --disable-smtp
13 MUTT_AUTORECONF = YES
14
15 ifeq ($(BR2_PACKAGE_LIBICONV),y)
16 MUTT_DEPENDENCIES += libiconv
17 MUTT_CONF_OPTS += --enable-iconv
18 endif
19
20 ifeq ($(BR2_PACKAGE_MUTT_IMAP),y)
21 MUTT_CONF_OPTS += --enable-imap
22 else
23 MUTT_CONF_OPTS += --disable-imap
24 endif
25
26 ifeq ($(BR2_PACKAGE_MUTT_POP3),y)
27 MUTT_CONF_OPTS += --enable-pop
28 else
29 MUTT_CONF_OPTS += --disable-pop
30 endif
31
32 # SSL support is only used by imap or pop3 module
33 ifneq ($(BR2_PACKAGET_MUTT_IMAP)$(BR2_PACKAGE_MUTT_POP3),)
34 ifeq ($(BR2_PACKAGE_OPENSSL),y)
35 MUTT_DEPENDENCIES += openssl
36 MUTT_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
37 else
38 MUTT_CONF_OPTS += --without-ssl
39 endif
40 else
41 MUTT_CONF_OPTS += --without-ssl
42 endif
43
44 # Avoid running tests to check for:
45 #  - target system is *BSD
46 #  - C99 conformance (snprintf, vsnprintf)
47 #  - behaviour of the regex library
48 #  - if mail spool directory is world/group writable
49 #  - we have a working libiconv
50 MUTT_CONF_ENV += \
51         mutt_cv_bsdish=no \
52         mutt_cv_c99_snprintf=yes \
53         mutt_cv_c99_vsnprintf=yes \
54         mutt_cv_regex_broken=no \
55         mutt_cv_worldwrite=yes \
56         mutt_cv_groupwrite=yes \
57         mutt_cv_iconv_good=yes \
58         mutt_cv_iconv_nontrans=no
59
60 MUTT_CONF_OPTS += --with-mailpath=/var/mail
61
62 define MUTT_VAR_MAIL
63         ln -sf /tmp $(TARGET_DIR)/var/mail
64 endef
65 MUTT_POST_INSTALL_TARGET_HOOKS += MUTT_VAR_MAIL
66
67 $(eval $(autotools-package))