281d8451c4
fetchmail itself does not need zlib, there is no reference to it in its source, so the "select BR2_PACKAGE_ZLIB" is not necessary. Moreover, "zlib" was not added to FETCHMAIL_DEPENDENCIES (but was anyway in the dependency chain through openssl). In addition, LIBS="-lz" is only needed in static linking configurations, to help fetchmail's configure script find OpenSSL (it doesn't use pkg-config unfortunately). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# fetchmail
|
|
#
|
|
################################################################################
|
|
|
|
FETCHMAIL_VERSION_MAJOR = 6.3
|
|
FETCHMAIL_VERSION = $(FETCHMAIL_VERSION_MAJOR).26
|
|
FETCHMAIL_SOURCE = fetchmail-$(FETCHMAIL_VERSION).tar.xz
|
|
FETCHMAIL_SITE = http://downloads.sourceforge.net/project/fetchmail/branch_$(FETCHMAIL_VERSION_MAJOR)
|
|
FETCHMAIL_LICENSE = GPL-2.0; some exceptions are mentioned in COPYING
|
|
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
|
|
|
|
# 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
|
|
# non-critical script.
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
define FETCHMAIL_REMOVE_FETCHMAILCONF_PY
|
|
$(RM) -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/fetchmailconf.py
|
|
endef
|
|
FETCHMAIL_POST_INSTALL_TARGET_HOOKS += FETCHMAIL_REMOVE_FETCHMAILCONF_PY
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|