Ticket #60304: Portfile-nginx-rtmp.diff

File Portfile-nginx-rtmp.diff, 2.0 KB (added by tobiasps (Tobias Steinmann), 4 years ago)

Patch for using the nginx-rtmp-module version 1.2.1. This fixes building. The version and sources filename conflicts with http_push and therefore the master site has been changed as a workaround.

  • (a) Portfile.orig vs. (b) Portfile_rtmp

    a b  
    2727                    https://people.freebsd.org/~osa/:redis_module \
    2828                    https://github.com/masterzen/nginx-upload-progress-module/archive/:uploadprogress_module \
    2929                    https://github.com/arut/nginx-dav-ext-module/archive/:davext_module \
    30                     https://github.com/arut/nginx-rtmp-module/archive/:rtmp_module \
     30                    https://codeload.github.com/arut/nginx-rtmp-module/tar.gz/:rtmp_module \
    3131                    https://github.com/slact/nchan/archive/:http_push_module \
    3232                    https://github.com/simpl/ngx_devel_kit/archive/:devel_kit_module \
    3333                    https://github.com/openresty/lua-nginx-module/archive/:lua_module \
     
    325325
    326326variant rtmp description {Enable Ngx RTMP module (https://github.com/arut/nginx-rtmp-module)} {
    327327    set rtmp_filename       nginx-rtmp-module
    328     set rtmp_version        1.1.7
     328    set rtmp_version        1.2.1
    329329    set rtmp_distname       ${rtmp_filename}-${rtmp_version}
    330     distfiles-append        v${rtmp_version}.tar.gz:rtmp_module
    331     checksums-append        v${rtmp_version}.tar.gz \
    332                             rmd160  3b7510fba6f6e572f0fb0b3676fe1eb4d4caecb1 \
    333                             sha256  7922b0e3d5f3d9c4b275e4908cfb8f5fb1bfb3ac2df77f4c262cda56df21aab3 \
    334                             size    519735
     330    distfiles-append        v${rtmp_version}:rtmp_module
     331    checksums-append        v${rtmp_version} \
     332                            rmd160  5fc0b4ac0b2c0a6d70957a5256754db8a9e934cf \
     333                            sha256  87aa597400b0b5a05274ee2d23d8cb8224e12686227a0abe31d783b3a645ea37 \
     334                            size    519919
    335335
    336336    configure.args-append   --add-module=${workpath}/${rtmp_distname}
    337     patchfiles-append       patch-ngx_rtmp_core_module.c.diff
    338337
    339338    nginx_set_portfile_var  nginx_rtmp_mod_dirname    "${rtmp_distname}"
    340339