summaryrefslogtreecommitdiffstats
path: root/package/fetchmail
diff options
context:
space:
mode:
Diffstat (limited to 'package/fetchmail')
-rw-r--r--package/fetchmail/Config.in2
-rw-r--r--package/fetchmail/fetchmail.mk12
2 files changed, 10 insertions, 4 deletions
diff --git a/package/fetchmail/Config.in b/package/fetchmail/Config.in
index 1e829a0512..62f4f84d50 100644
--- a/package/fetchmail/Config.in
+++ b/package/fetchmail/Config.in
@@ -3,8 +3,6 @@ config BR2_PACKAGE_FETCHMAIL
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_CA_CERTIFICATES
select BR2_PACKAGE_OPENSSL
- select BR2_PACKAGE_ZLIB
- select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help
Fetchmail - the mail-retrieval daemon
Client daemon to move mail from POP and IMAP to your local computer
diff --git a/package/fetchmail/fetchmail.mk b/package/fetchmail/fetchmail.mk
index 2c3786f8e7..164b2f8ad8 100644
--- a/package/fetchmail/fetchmail.mk
+++ b/package/fetchmail/fetchmail.mk
@@ -13,15 +13,23 @@ FETCHMAIL_LICENSE_FILES = COPYING
FETCHMAIL_AUTORECONF = YES
FETCHMAIL_GETTEXTIZE = YES
+# needed to help fetchmail detecting the availability of openssl,
+# because it doesn't use pkg-config
+ifeq ($(BR2_STATIC_LIBS),y)
FETCHMAIL_CONF_ENV += LIBS="-lz"
+endif
FETCHMAIL_CONF_OPTS = \
--with-ssl=$(STAGING_DIR)/usr
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