2018-03-23 19:59:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# woff2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
WOFF2_VERSION = 1.0.2
|
|
|
|
WOFF2_SOURCE = v$(WOFF2_VERSION).tar.gz
|
|
|
|
WOFF2_SITE = https://github.com/google/woff2/archive
|
|
|
|
WOFF2_LICENSE = MIT
|
|
|
|
WOFF2_LICENSE_FILES = LICENSE
|
|
|
|
WOFF2_INSTALL_STAGING = YES
|
|
|
|
WOFF2_DEPENDENCIES = brotli
|
|
|
|
WOFF2_CONF_OPTS = \
|
|
|
|
-DNOISY_LOGGING=OFF
|
|
|
|
|
2018-03-27 22:05:55 +02:00
|
|
|
# The CMake build files for woff2 manually set some RPATH handling options
|
|
|
|
# which make the installation steps fail with static builds, so pass this
|
|
|
|
# to prevent any attempt of mangling RPATH that CMake would do.
|
|
|
|
ifneq ($(BR2_SHARED_LIBS),y)
|
|
|
|
WOFF2_CONF_OPTS += -DCMAKE_SKIP_RPATH=ON
|
|
|
|
endif
|
|
|
|
|
2018-05-10 12:11:01 +02:00
|
|
|
# Internal error, aborting at dw2gencfi.c:215 in emit_expr_encoded
|
|
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509
|
|
|
|
ifeq ($(BR2_m68k_cf),y)
|
|
|
|
WOFF2_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -fno-dwarf2-cfi-asm"
|
|
|
|
endif
|
|
|
|
|
2018-03-23 19:59:40 +01:00
|
|
|
$(eval $(cmake-package))
|