blob: 589c8cbaf4846cb9384e17fa353258e7ac3057ad [file] [log] [blame]
MODULES+= brotli
MODULE_SUMMARY_brotli= 3rd-party brotli compression dynamic modules
include $(CONTRIB)/src/ngx_brotli/version
MODULE_VERSION_brotli= $(NGX_BROTLI_VERSION)
MODULE_RELEASE_brotli= 1
MODULE_VERSION_PREFIX_brotli=$(MODULE_TARGET_PREFIX)
MODULE_SOURCES_brotli= ngx_brotli-$(NGX_BROTLI_VERSION).tar.gz
MODULE_CONFARGS_brotli= --add-dynamic-module=$(MODSRC_PREFIX)ngx_brotli-$(NGX_BROTLI_VERSION)rc
.deps-module-brotli:
cd $(CONTRIB) && make .sum-ngx_brotli
touch $@
MODULE_BUILD_DEPENDS_brotli=,libbrotli-dev
define MODULE_POST_brotli
cat <<BANNER
----------------------------------------------------------------------
The $(MODULE_SUMMARY_brotli) for $(MODULE_SUMMARY_PREFIX) have been installed.
To enable these modules, add the following to /etc/nginx/nginx.conf
and reload nginx:
load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
Please refer to the modules documentation for further details:
https://github.com/google/ngx_brotli
----------------------------------------------------------------------
BANNER
endef
export MODULE_POST_brotli