ncftp: bump version to 3.2.6
[buildroot-gz.git] / package / msmtp / msmtp.mk
blob7ede66c0db55d9a71d2ecc17d2c771bd333a5b45
1 ################################################################################
3 # msmtp
5 ################################################################################
7 MSMTP_VERSION = 1.6.5
8 MSMTP_SITE = http://downloads.sourceforge.net/project/msmtp/msmtp/$(MSMTP_VERSION)
9 MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz
10 MSMTP_DEPENDENCIES = host-pkgconf
11 MSMTP_CONF_OPTS = \
12 --without-libidn \
13 --disable-gai-idn \
14 --without-libgsasl
15 MSMTP_LICENSE = GPLv3+
16 MSMTP_LICENSE_FILES = COPYING
18 ifeq ($(BR2_PACKAGE_LIBSECRET),y)
19 MSMTP_CONF_OPTS += --with-libsecret
20 MSMTP_DEPENDENCIES += libsecret
21 else
22 MSMTP_CONF_OPTS += --without-libsecret
23 endif
25 ifeq ($(BR2_PACKAGE_OPENSSL),y)
26 MSMTP_CONF_OPTS += --with-ssl=openssl
27 MSMTP_DEPENDENCIES += openssl
28 ifeq ($(BR2_STATIC_LIBS),y)
29 # openssl uses zlib, so we need to explicitly link with it when static
30 MSMTP_CONF_ENV += LIBS=-lz
31 endif
32 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
33 MSMTP_CONF_OPTS += --with-ssl=gnutls
34 MSMTP_DEPENDENCIES += gnutls
35 else
36 MSMTP_CONF_OPTS += --with-ssl=no
37 endif
39 $(eval $(autotools-package))