MSMTP_SITE = http://downloads.sourceforge.net/project/msmtp/msmtp/$(MSMTP_VERSION)
MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.xz
MSMTP_DEPENDENCIES = host-pkgconf
-MSMTP_CONF_OPTS = \
- --without-libidn \
- --disable-gai-idn
+MSMTP_CONF_OPTS = --disable-gai-idn
MSMTP_LICENSE = GPL-3.0+
MSMTP_LICENSE_FILES = COPYING
MSMTP_CONF_OPTS += --without-libgsasl
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)
MSMTP_CONF_OPTS += --with-libsecret
MSMTP_DEPENDENCIES += libsecret