7bc23d50fd
Msmtp no longer uses openssl as default [1], and even discourages the use of the OpenSSL. Let's follow this upstream recommendation: if the Buildroot configuration has both OpenSSL and GnuTLS enabled, GnuTLS will be preferred over OpenSSL. [1] https://marlam.de/msmtp/news/openssl-discouraged/ Signed-off-by: Ryan Coe <bluemrp9@gmail.com> [Thomas: improve commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# msmtp
|
|
#
|
|
################################################################################
|
|
|
|
MSMTP_VERSION = 1.8.0
|
|
MSMTP_SITE = https://marlam.de/msmtp/releases
|
|
MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz
|
|
MSMTP_DEPENDENCIES = host-pkgconf
|
|
MSMTP_CONF_OPTS = --disable-gai-idn
|
|
MSMTP_LICENSE = GPL-3.0+
|
|
MSMTP_LICENSE_FILES = COPYING
|
|
|
|
# msmtpd needs fork
|
|
ifeq ($(BR2_USE_MMU),y)
|
|
MSMTP_CONF_OPTS += --with-msmtpd
|
|
else
|
|
MSMTP_CONF_OPTS += --without-msmtpd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGSASL),y)
|
|
MSMTP_CONF_OPTS += --with-libgsasl
|
|
MSMTP_DEPENDENCIES += libgsasl
|
|
else
|
|
MSMTP_CONF_OPTS += --without-libgsasl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
|
MSMTP_CONF_OPTS += --with-libidn
|
|
MSMTP_DEPENDENCIES += libidn2
|
|
else
|
|
MSMTP_CONF_OPTS += --without-libidn
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
|
|
MSMTP_CONF_OPTS += --with-libsecret
|
|
MSMTP_DEPENDENCIES += libsecret
|
|
else
|
|
MSMTP_CONF_OPTS += --without-libsecret
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
MSMTP_CONF_OPTS += --with-tls=gnutls
|
|
MSMTP_DEPENDENCIES += gnutls
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
MSMTP_CONF_OPTS += --with-tls=openssl
|
|
MSMTP_DEPENDENCIES += openssl
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
# openssl uses zlib, so we need to explicitly link with it when static
|
|
MSMTP_CONF_ENV += LIBS=-lz
|
|
endif
|
|
else
|
|
MSMTP_CONF_OPTS += --with-tls=no
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|