# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2017 Alexander Pyhalov # Copyright 2019 Michal Nowak # Copyright 2020 Andreas Wacknitz # BUILD_BITS= 64_and_32 BUILD_STYLE= cmake include ../../../make-rules/shared-macros.mk COMPONENT_NAME= brotli COMPONENT_VERSION= 1.2.0 COMPONENT_SUMMARY= Library for generic-purpose lossless compression algorithm COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_PROJECT_URL= https://github.com/google/brotli COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/v$(COMPONENT_VERSION).tar.gz COMPONENT_ARCHIVE_HASH= sha256:816c96e8e8f193b40151dad7e8ff37b1221d019dbcb9c35cd3fadbfe6477dfec COMPONENT_FMRI= library/brotli COMPONENT_CLASSIFICATION= System/Libraries COMPONENT_LICENSE= MIT COMPONENT_LICENSE_FILE= LICENSE include $(WS_MAKE_RULES)/common.mk CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE=1 CMAKE_OPTIONS.64 += -DLIB_SUFFIX=/$(MACH64) # Strip times from test output, since they're always different COMPONENT_TEST_TRANSFORMS += '-e "s%\([0-9\.]\)* sec%%"' # Auto-generated dependencies REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/math