Ticket #55441: libcxx.diff

File libcxx.diff, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago)
  • Portfile

     
    22PortGroup               compiler_blacklist_versions 1.0
    33
    44name                    libcxx
     5epoch                   1
    56version                 3.9.1
    6 epoch                   1
     7revision                1
    78categories              lang
    89platforms               darwin
    910license                 MIT NCSA
     
    4445
    4546    if {${os.major} < 11} {
    4647        post-activate {
    47             system "cd / && tar xzf ${roots_path}/${root_name}.tgz"
     48            set dirs /
     49            if {${os.subplatform} eq "macosx"} {
     50                lappend dirs ${developer_dir}/SDKs/MacOSX${macosx_version}.sdk
     51            }
     52            foreach d ${dirs} {
     53                system -W ${d} "tar xzf ${roots_path}/${root_name}.tgz"
     54            }
    4855        }
    4956    }
    5057}
     
    102109        xinstall -m 755 ${worksrcpath}/lib/libc++.1.dylib ${destroot}${roots_path}/${root_name}/usr/lib
    103110        ln -s libc++.1.dylib ${destroot}${roots_path}/${root_name}/usr/lib/libc++.dylib
    104111
    105         system "cd ${destroot}${roots_path}/${root_name} && tar czf ../${root_name}.tgz ."
    106         file delete -force ${destroot}${roots_path}/${root_name}
     112        system -W ${destroot}${roots_path}/${root_name} "tar czf ../${root_name}.tgz ."
     113        delete ${destroot}${roots_path}/${root_name}
    107114    }
    108115} else {
    109116    distfiles