Changeset 149166


Ignore:
Timestamp:
Jun 3, 2016, 4:54:15 PM (3 years ago)
Author:
mps@…
Message:

nginx: fix rtmp module build issue.

Location:
trunk/dports/www/nginx
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/nginx/Portfile

    r149130 r149166  
    5454
    5555# portfile-scoped vars for variant routines to re-def and use in port-stages (post-extract, pre-patch, etc)
     56set nginx_rtmp_mod_dirname     ""
    5657set nginx_upload_mod_dirname   ""
    5758
     
    257258
    258259
    259     nginx_set_portfile_var   nginx_upload_mod_dirname    "${upload_distname}"
     260    nginx_set_portfile_var  nginx_upload_mod_dirname    "${upload_distname}"
    260261
    261262    pre-fetch {
     
    320321                            sha256  7922b0e3d5f3d9c4b275e4908cfb8f5fb1bfb3ac2df77f4c262cda56df21aab3
    321322    configure.args-append   --add-module=${workpath}/${rtmp_distname}
     323    patchfiles-append       patch-ngx_rtmp_core_module.c.diff
     324
     325    nginx_set_portfile_var  nginx_rtmp_mod_dirname    "${rtmp_distname}"
     326
     327    # patch routine balks on file names with "../", but rel-paths in patchfiles start from $worksrcpath
     328    pre-patch {
     329        ln -s   "${workpath}/${nginx_rtmp_mod_dirname}" "${worksrcpath}/nginx_rtmp_module.tmp"
     330    }
     331    post-patch {
     332        file delete   "${worksrcpath}/nginx_rtmp_module.tmp"
     333    }
    322334}
    323335
Note: See TracChangeset for help on using the changeset viewer.