Ticket #32575: Portfile.diff

File Portfile.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 9 years ago)
  • Portfile

    old new  
    2929
    3030    depends_lib         port:libedit port:libffi port:ncurses port:zlib
    3131    depends_run         bin:perl:perl5 port:llvm_select
     32    depends_build       port:python27
    3233
    3334    # 3.2.6's install_name_tool doesn't support load commands we might see with newer clang+ld64
    3435    # 4.3 is just a guess here and should be updated if there are additional reports with other Xcode versions
     
    173174if {${subport} eq "llvm-${llvm_version}"} {
    174175    select.group        llvm
    175176    select.file         ${filespath}/mp-${subport}
     177
     178    set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
     179    build.env-append PATH=${python_framework}/bin:$env(PATH)
    176180} elseif {${subport} eq "clang-${llvm_version}"} {
    177181    select.group        clang
    178182    select.file         ${filespath}/mp-${subport}
    179183
    180184    configure.args-append --with-python=${prefix}/bin/python2.7
     185    set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
     186    build.env-append PATH=${python_framework}/bin:$env(PATH)
    181187}
    182188
    183189# llvm-3.5 and later requires a C++11 runtime