Ticket #65670: patch-portfile.diff

File patch-portfile.diff, 1.1 KB (added by mbrethen, 2 years ago)
  • (a) Portfile-orig vs. (b) Portfile

    a b  
    6060} else {
    6161    livecheck.type              none
    6262
    63     revision                    0
     63    revision                    1
    6464    supported_archs             arm64 i386 ppc x86_64
    6565    distname                    ${my_name}-${my_version}
    6666
     
    170170                lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
    171171
    172172                # Use the right compiler.
    173                 reinplace "s|gcc|${configure.cc}|g" ${build.dir}/${my_variation_dir}/Makefile
     173                reinplace "s|clang|${configure.cc}|g" ${build.dir}/${my_variation_dir}/Makefile
    174174
    175175                # Use the right deployment target.
    176                 reinplace -E {s|-mmacosx-version-min=[0-9.]+||g} ${build.dir}/${my_variation_dir}/Makefile
     176                reinplace -E {s|-target x86_64-apple-macos[0-9.]+|-arch x86_64|g} ${build.dir}/${my_variation_dir}/Makefile
    177177
    178178                # Use the right SDK.
    179179                if {${configure.sdkroot} eq {}} {