1 ################################################################################
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 = --disable-gai-idn
12 MSMTP_LICENSE = GPL-3.0+
13 MSMTP_LICENSE_FILES = COPYING
15 ifeq ($(BR2_PACKAGE_LIBGSASL),y)
16 MSMTP_CONF_OPTS += --with-libgsasl
17 MSMTP_DEPENDENCIES += libgsasl
19 MSMTP_CONF_OPTS += --without-libgsasl
22 ifeq ($(BR2_PACKAGE_LIBIDN),y)
23 MSMTP_CONF_OPTS += --with-libidn
24 MSMTP_DEPENDENCIES += libidn
26 MSMTP_CONF_OPTS += --without-libidn
29 ifeq ($(BR2_PACKAGE_LIBSECRET),y)
30 MSMTP_CONF_OPTS += --with-libsecret
31 MSMTP_DEPENDENCIES += libsecret
33 MSMTP_CONF_OPTS += --without-libsecret
36 ifeq ($(BR2_PACKAGE_OPENSSL),y)
37 MSMTP_CONF_OPTS += --with-ssl=openssl
38 MSMTP_DEPENDENCIES += openssl
39 ifeq ($(BR2_STATIC_LIBS),y)
40 # openssl uses zlib, so we need to explicitly link with it when static
41 MSMTP_CONF_ENV += LIBS=-lz
43 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
44 MSMTP_CONF_OPTS += --with-ssl=gnutls
45 MSMTP_DEPENDENCIES += gnutls
47 MSMTP_CONF_OPTS += --with-ssl=no
50 $(eval $(autotools-package))