diff options
Diffstat (limited to 'www/nginx-devel')
-rw-r--r-- | www/nginx-devel/Makefile | 2 | ||||
-rw-r--r-- | www/nginx-devel/Makefile.extmod | 6 | ||||
-rw-r--r-- | www/nginx-devel/files/extra-patch-nginx_mod_h264_streaming-config | 41 | ||||
-rw-r--r-- | www/nginx-devel/pkg-plist | 1 |
4 files changed, 47 insertions, 3 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile index 6c68168ae4c4..4c56033b7c33 100644 --- a/www/nginx-devel/Makefile +++ b/www/nginx-devel/Makefile @@ -3,7 +3,7 @@ PORTNAME= nginx PORTVERSION= 1.18.0 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= www MASTER_SITES= https://nginx.org/download/ \ LOCAL/osa diff --git a/www/nginx-devel/Makefile.extmod b/www/nginx-devel/Makefile.extmod index cc96a2366fd8..0cd7e73c266b 100644 --- a/www/nginx-devel/Makefile.extmod +++ b/www/nginx-devel/Makefile.extmod @@ -128,9 +128,11 @@ HTTP_MOGILEFS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ngx_http_mogilefs_module.c HTTP_MOGILEFS_VARS= DSO_EXTDIRS+=nginx_mogilefs_module-1.0.4 HTTP_MP4_H264_MASTER_SITES= http://h264.code-shop.com/download/:mp4streaming +HTTP_MP4_H264_CONFIGURE_ON= --with-cc-opt="-DLARGEFILE_SOURCE -DBUILDING_NGINX" HTTP_MP4_H264_DISTFILES= nginx_mod_h264_streaming-2.2.7.tar.gz:mp4streaming -HTTP_MP4_H264_CONFIGURE_ON= --add-module=${WRKDIR}/nginx_mod_h264_streaming-2.2.7 -HTTP_MP4_H264_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ngx_http_streaming_module.c +HTTP_MP4_H264_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ngx_http_streaming_module.c \ + ${PATCHDIR}/extra-patch-nginx_mod_h264_streaming-config +HTTP_MP4_H264_VARS= DSO_EXTDIRS+=nginx_mod_h264_streaming-2.2.7 HTTP_NOTICE_GH_TUPLE= kr:nginx-notice:3c95966:notice HTTP_NOTICE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ngx_http_notice_module.c \ diff --git a/www/nginx-devel/files/extra-patch-nginx_mod_h264_streaming-config b/www/nginx-devel/files/extra-patch-nginx_mod_h264_streaming-config new file mode 100644 index 000000000000..1acd8cd12405 --- /dev/null +++ b/www/nginx-devel/files/extra-patch-nginx_mod_h264_streaming-config @@ -0,0 +1,41 @@ +--- ../nginx_mod_h264_streaming-2.2.7/config.orig 2020-04-27 12:01:37.153986000 -0400 ++++ ../nginx_mod_h264_streaming-2.2.7/config 2020-04-27 12:16:52.832788000 -0400 +@@ -1,26 +1,19 @@ + ngx_addon_name=ngx_http_h264_streaming_module +-HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_h264_streaming_module" +-CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -DBUILDING_NGINX" +- +-H264_STREAMING_MODULE_SOURCES="$ngx_addon_dir/src/ngx_http_h264_streaming_module.c \ ++ngx_module_name="$ngx_addon_name" ++ngx_module_type=HTTP_AUX_FILTER ++ngx_module_srcs="$ngx_addon_dir/src/ngx_http_h264_streaming_module.c \ + $ngx_addon_dir/src/moov.c \ + $ngx_addon_dir/src/mp4_io.c \ + $ngx_addon_dir/src/mp4_reader.c \ + $ngx_addon_dir/src/mp4_writer.c \ + $ngx_addon_dir/src/output_bucket.c \ + $ngx_addon_dir/src/output_mp4.c" +- +-for streaming_module_source in $H264_STREAMING_MODULE_SOURCES +-do +- already_included=NO +- for ngx_addon_src in $NGX_ADDON_SRCS +- do +- if [ "`basename $ngx_addon_src`" = "`basename $streaming_module_source`" ]; then +- already_included=YES +- break +- fi +- done +- if [ "$already_included" = "NO" ]; then +- NGX_ADDON_SRCS="$NGX_ADDON_SRCS $streaming_module_source" +- fi +-done ++ngx_module_deps="$ngx_addon_dir/src/mod_streaming_export.h \ ++ $ngx_addon_dir/src/moov.h \ ++ $ngx_addon_dir/src/mp4_io.h \ ++ $ngx_addon_dir/src/mp4_process.h \ ++ $ngx_addon_dir/src/mp4_reader.h \ ++ $ngx_addon_dir/src/mp4_writer.h \ ++ $ngx_addon_dir/src/output_bucket.h \ ++ $ngx_addon_dir/src/output_mp4.h" ++. auto/module diff --git a/www/nginx-devel/pkg-plist b/www/nginx-devel/pkg-plist index 79363cfc5b5b..77cf69308947 100644 --- a/www/nginx-devel/pkg-plist +++ b/www/nginx-devel/pkg-plist @@ -42,6 +42,7 @@ %%DSO%%%%HTTP_IP2PROXY%%libexec/nginx/ngx_http_ip2proxy_module.so %%DSO%%%%HTTP_JSON_STATUS%%libexec/nginx/ngx_http_json_status_module.so %%DSO%%%%HTTP_MOGILEFS%%libexec/nginx/ngx_http_mogilefs_module.so +%%DSO%%%%HTTP_MP4_H264%%libexec/nginx/ngx_http_h264_streaming_module.so %%DSO%%%%HTTP_NOTICE%%libexec/nginx/ngx_http_notice_module.so %%DSO%%%%HTTP_PERL%%libexec/nginx/ngx_http_perl_module.so %%DSO%%%%HTTP_PUSH%%libexec/nginx/ngx_nchan_module.so |