msmtp: add optional libidn dependency

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2018-05-01 21:49:10 +02:00 committed by Thomas Petazzoni
parent 481780368b
commit 52443ef733

View file

@ -8,9 +8,7 @@ MSMTP_VERSION = 1.6.6
MSMTP_SITE = http://downloads.sourceforge.net/project/msmtp/msmtp/$(MSMTP_VERSION) MSMTP_SITE = http://downloads.sourceforge.net/project/msmtp/msmtp/$(MSMTP_VERSION)
MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz
MSMTP_DEPENDENCIES = host-pkgconf MSMTP_DEPENDENCIES = host-pkgconf
MSMTP_CONF_OPTS = \ MSMTP_CONF_OPTS = --disable-gai-idn
--without-libidn \
--disable-gai-idn
MSMTP_LICENSE = GPL-3.0+ MSMTP_LICENSE = GPL-3.0+
MSMTP_LICENSE_FILES = COPYING MSMTP_LICENSE_FILES = COPYING
@ -21,6 +19,13 @@ else
MSMTP_CONF_OPTS += --without-libgsasl MSMTP_CONF_OPTS += --without-libgsasl
endif endif
ifeq ($(BR2_PACKAGE_LIBIDN),y)
MSMTP_CONF_OPTS += --with-libidn
MSMTP_DEPENDENCIES += libidn
else
MSMTP_CONF_OPTS += --without-libidn
endif
ifeq ($(BR2_PACKAGE_LIBSECRET),y) ifeq ($(BR2_PACKAGE_LIBSECRET),y)
MSMTP_CONF_OPTS += --with-libsecret MSMTP_CONF_OPTS += --with-libsecret
MSMTP_DEPENDENCIES += libsecret MSMTP_DEPENDENCIES += libsecret