1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/nginx/files/extra-patch-nginx-vod-module-config
2021-04-14 22:22:08 +02:00

18 lines
648 B
Plaintext

--- ../nginx-vod-module-1.27/config.orig 2020-07-09 20:33:33 UTC
+++ ../nginx-vod-module-1.27/config
@@ -227,8 +227,12 @@ ngx_feature_name="NGX_HAVE_LIBXML2"
ngx_feature_run=no
ngx_feature_incs="#include <libxml/parser.h>
#include <libxml/tree.h>"
-ngx_feature_path="/usr/include/libxml2"
-ngx_feature_libs="-lxml2"
+ngx_feature_path="%%PREFIX%%/include/libxml2 %%PREFIX%%/include"
+if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R%%PREFIX%%/lib -L%%PREFIX%%/lib -lxml2 -lxslt"
+else
+ ngx_feature_libs="-L%%PREFIX%%/lib -lxml2 -lxslt"
+fi
ngx_feature_test="xmlReadMemory(NULL, 0, NULL, NULL, 0);"
. auto/feature