aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-10-01 22:26:26 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-10-01 22:57:23 +0200
commit81ada4dff4334a6fbb7ae3a547de4cf6aab54a91 (patch)
tree813816c45ffd748d04482752c0307f3509a3ef4c
parent939e714393e9d7f60f3a198d831608b08a25662e (diff)
downloadbuildroot-81ada4dff4334a6fbb7ae3a547de4cf6aab54a91.tar.gz
buildroot-81ada4dff4334a6fbb7ae3a547de4cf6aab54a91.tar.bz2
package/freetype: add brotli optional dependency
brotli is an optional dependency (enabled by default) since version 2.10.2 and https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=9443a1bc3e6cfa315db976ff80f6c5e91b12b387 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/freetype/freetype.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk
index b0aba78c51..e6463c30b6 100644
--- a/package/freetype/freetype.mk
+++ b/package/freetype/freetype.mk
@@ -16,6 +16,7 @@ FREETYPE_CONFIG_SCRIPTS = freetype-config
HOST_FREETYPE_DEPENDENCIES = host-pkgconf
HOST_FREETYPE_CONF_OPTS = \
+ --without-brotli \
--without-bzip2 \
--without-harfbuzz \
--without-png \
@@ -32,6 +33,13 @@ else
FREETYPE_CONF_OPTS += --without-zlib
endif
+ifeq ($(BR2_PACKAGE_BROTLI),y)
+FREETYPE_DEPENDENCIES += brotli
+FREETYPE_CONF_OPTS += --with-brotli
+else
+FREETYPE_CONF_OPTS += --without-brotli
+endif
+
ifeq ($(BR2_PACKAGE_BZIP2),y)
FREETYPE_DEPENDENCIES += bzip2
FREETYPE_CONF_OPTS += --with-bzip2