Ticket #40862: Portfile.diff

File Portfile.diff, 914 bytes (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 8 years ago)
  • Portfile

    old new  
    4545                        patch-vncconnect_vncconnect.c.diff \
    4646                        patch-include_vncauth.h.diff
    4747
     48if {${os.platform} eq "darwin" && ${os.major} >= 12} {
     49    depends_lib-append port:tradcpp
     50    set cppcmd ${prefix}/bin/tradcpp
     51} else {
     52    set cppcmd /usr/bin/cpp
     53}
     54
    4855post-patch {
    4956    reinplace "s|@PREFIX@|${prefix}|g" \
    5057        ${worksrcpath}/Xvnc/config/cf/vnclibs.def \
     
    5663    # The Vncviewer sample configuration file conflicts with the vncviewer binary
    5764    # on case-insensitive filesystems like Mac OS X's default Mac OS Extended.
    5865    move ${worksrcpath}/vncviewer/Vncviewer ${worksrcpath}/vncviewer/Vncviewer.sample
     66
     67    reinplace "s|::CPPCMD::|${cppcmd}|" ${worksrcpath}/Xvnc/config/imake/imakemdep.h
    5968}
    6069
    6170use_xmkmf               yes