2018-03-23 19:59:39 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# brotli
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-09-07 12:34:32 +02:00
|
|
|
BROTLI_VERSION = 1.0.9
|
2018-03-23 19:59:39 +01:00
|
|
|
BROTLI_SOURCE = v$(BROTLI_VERSION).tar.gz
|
|
|
|
BROTLI_SITE = https://github.com/google/brotli/archive
|
|
|
|
BROTLI_LICENSE = MIT
|
|
|
|
BROTLI_LICENSE_FILES = LICENSE
|
2021-02-07 13:57:37 +01:00
|
|
|
BROTLI_CPE_ID_VENDOR = google
|
2018-03-23 19:59:39 +01:00
|
|
|
BROTLI_INSTALL_STAGING = YES
|
|
|
|
BROTLI_CONF_OPTS = \
|
|
|
|
-DBROTLI_DISABLE_TESTS=ON \
|
|
|
|
-DBROTLI_BUNDLED_MODE=OFF
|
|
|
|
|
2019-06-14 11:43:28 +02:00
|
|
|
BROTLI_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
2019-05-27 23:38:23 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
2019-06-14 11:43:28 +02:00
|
|
|
BROTLI_CFLAGS += -O0
|
2019-05-27 23:38:23 +02:00
|
|
|
endif
|
|
|
|
|
2022-04-27 10:17:44 +02:00
|
|
|
# Workaround "Error: value -1234 out of range" assembler issues
|
|
|
|
# when building with optimizations.
|
|
|
|
ifeq ($(BR2_m68k),y)
|
|
|
|
BROTLI_CFLAGS += -Os
|
|
|
|
endif
|
|
|
|
|
2019-06-14 11:43:28 +02:00
|
|
|
BROTLI_CONF_OPTS += -DCMAKE_C_FLAGS="$(BROTLI_CFLAGS)"
|
|
|
|
|
2018-03-23 19:59:39 +01:00
|
|
|
$(eval $(cmake-package))
|