summaryrefslogtreecommitdiffstats
path: root/package/fetchmail/fetchmail.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/fetchmail/fetchmail.mk')
-rw-r--r--package/fetchmail/fetchmail.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/fetchmail/fetchmail.mk b/package/fetchmail/fetchmail.mk
index 2c3786f8e7..49ce0d3a80 100644
--- a/package/fetchmail/fetchmail.mk
+++ b/package/fetchmail/fetchmail.mk
@@ -20,8 +20,12 @@ FETCHMAIL_CONF_OPTS = \
FETCHMAIL_DEPENDENCIES = \
ca-certificates \
- openssl \
- $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
+ openssl
+
+# libintl is an optional dependency
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+FETCHMAIL_DEPENDENCIES += gettext
+endif
# fetchmailconf.py script is not (yet) python3-compliant.
# Prevent the pyc-compilation with python-3 from failing by removing this
OpenPOWER on IntegriCloud