From: Bernd Kuhls Date: Sun, 21 Feb 2016 17:34:59 +0000 (+0100) Subject: package/mutt: add optional support for libidn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=751e58f606ce5e40194ce929d713ccafb1328888;p=buildroot.git package/mutt: add optional support for libidn When libidn was compiled before, mutt will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/mutt | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libncurses.so.5] 0x0000000000000001 (NEEDED) Shared library: [libidn.so.11] 0x0000000000000001 (NEEDED) Shared library: [libintl.so.8] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/mutt/mutt.mk b/package/mutt/mutt.mk index b07f9b2d22..14c5be9567 100644 --- a/package/mutt/mutt.mk +++ b/package/mutt/mutt.mk @@ -17,6 +17,13 @@ MUTT_DEPENDENCIES += libiconv MUTT_CONF_OPTS += --enable-iconv endif +ifeq ($(BR2_PACKAGE_LIBIDN),y) +MUTT_DEPENDENCIES += libidn +MUTT_CONF_OPTS += --with-idn +else +MUTT_CONF_OPTS += --without-idn +endif + ifeq ($(BR2_PACKAGE_MUTT_IMAP),y) MUTT_CONF_OPTS += --enable-imap else