summaryrefslogtreecommitdiff
path: root/www/nginx-devel/files
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2023-09-30 13:35:10 -0400
committerSergey A. Osokin <osa@FreeBSD.org>2023-09-30 13:36:08 -0400
commit74dd0464af0008c3691bf03cb5d8855a1070a656 (patch)
treeba62ecdf755ef4cb01b7305f93bf3afd5edc903d /www/nginx-devel/files
parentdevel/heaptrack: Update to 1.5.0 (diff)
www/nginx-devel: update third-party brotli module (+)
Bump PORTREVISION.
Diffstat (limited to 'www/nginx-devel/files')
-rw-r--r--www/nginx-devel/files/extra-patch-ngx_brotli_filter_config41
1 files changed, 41 insertions, 0 deletions
diff --git a/www/nginx-devel/files/extra-patch-ngx_brotli_filter_config b/www/nginx-devel/files/extra-patch-ngx_brotli_filter_config
new file mode 100644
index 000000000000..aaa2409f678f
--- /dev/null
+++ b/www/nginx-devel/files/extra-patch-ngx_brotli_filter_config
@@ -0,0 +1,41 @@
+--- ../ngx_brotli-659b4b3/filter/config.orig 2023-09-30 13:17:01.637746000 -0400
++++ ../ngx_brotli-659b4b3/filter/config 2023-09-30 13:23:51.839920000 -0400
+@@ -42,33 +42,16 @@
+ ngx_module_type=HTTP_FILTER
+ ngx_module_name=ngx_http_brotli_filter_module
+
+-brotli="$ngx_addon_dir/deps/brotli/c"
+-if [ ! -f "$brotli/include/brotli/encode.h" ]; then
+-cat << END
++BROTLI_ENC_H="%%PREFIX%%/include/brotli/encode.h \
++ %%PREFIX%%/include/brotli/port.h \
++ %%PREFIX%%/include/brotli/types.h"
+
+-$0: error: \
+-Brotli library is missing from the $brotli directory.
+
+-Please make sure that the git submodule has been checked out:
+-
+- cd $ngx_addon_dir && git submodule update --init && cd $PWD
+-
+-END
+- exit 1
+-fi
+-
+-BROTLI_OUTPUT_DIRECTORY="$brotli/../out"
+-BROTLI_ENC_H="$brotli/include/brotli/encode.h \
+- $brotli/include/brotli/port.h \
+- $brotli/include/brotli/types.h"
+-
+-
+-ngx_module_incs="$brotli/include"
++ngx_module_incs="$BROTLI_ENC_H"
+ ngx_module_deps="$BROTLI_ENC_H"
+ ngx_module_srcs="$BROTLI_MODULE_SRC_DIR/ngx_http_brotli_filter_module.c"
+-ngx_module_libs="-L$BROTLI_OUTPUT_DIRECTORY -lbrotlienc -lbrotlicommon -lm"
++ngx_module_libs="-L%%PREFIX%%/lib -lbrotlienc -lbrotlicommon -lm"
+ ngx_module_order="$ngx_module_name \
+- ngx_pagespeed \
+ ngx_http_postpone_filter_module \
+ ngx_http_ssi_filter_module \
+ ngx_http_charset_filter_module \