xref: /OK3568_Linux_fs/buildroot/package/sylpheed/sylpheed.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# sylpheed
4#
5################################################################################
6
7SYLPHEED_VERSION_MAJOR = 3.7
8SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).0
9SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.xz
10SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR)
11SYLPHEED_LICENSE = GPL-2.0+ (executables), LGPL-2.1+ (library, attachment plugin)
12SYLPHEED_LICENSE_FILES = COPYING COPYING.LIB
13SYLPHEED_CPE_ID_VENDOR = sylpheed_project
14SYLPHEED_CONF_OPTS = --disable-gtkspell --disable-gpgme
15SYLPHEED_DEPENDENCIES = host-pkgconf libgtk2
16
17# 0001-harden-link-checker-before-accepting-click.patch
18SYLPHEED_IGNORE_CVES += CVE-2021-37746
19
20# Remove the -I$(includedir) from the Makefiles
21# because it refers to the host /usr/include.
22define SYLPHEED_PRECONFIGURE
23	for i in $$(find $(@D) -name "Makefile*"); do \
24		sed -i 's:-I$$(includedir)::g' $$i; \
25	done
26endef
27
28SYLPHEED_PRE_CONFIGURE_HOOKS += SYLPHEED_PRECONFIGURE
29
30ifeq ($(BR2_PACKAGE_OPENSSL),y)
31SYLPHEED_DEPENDENCIES += openssl
32SYLPHEED_CONF_OPTS += --enable-ssl
33else
34SYLPHEED_CONF_OPTS += --disable-ssl
35endif
36
37$(eval $(autotools-package))
38