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