Ticket #49143: Portfile.patch

File Portfile.patch, 2.3 KB (added by BSeppke (Benjamin Seppke), 9 years ago)
  • Portfile

    old new  
    179179    }
    180180}
    181181
    182 post-destroot {
    183 
    184     # if qwt is installed as a framework,
    185     # link in as libraries and headers too
    186 
    187     if {[file exists ${destroot}${qt_frameworks_dir}/qwt.framework/qwt]} {
    188 
    189         global qwt_major, qwt_minor, qwt_patch
    190         foreach fixfile [exec find ${destroot}${qt_frameworks_dir} \
    191                              -name "*.framework" | \
    192                              sed -e "s@${destroot}@@g"] {
    193 
    194             set tf_full [strsed ${fixfile} {s@\\.framework@@}]
    195             set tf [strsed ${tf_full} {g@.*\/@@}]
    196 
    197             # link headers into ${qt_includes_dir}, removing
    198             # directories if they are already there first
    199 
    200             set inc_file ${destroot}${qt_includes_dir}/${tf}
    201             if {[file exists ${inc_file}]} {
    202                 file delete -force ${inc_file}
    203             }
    204             ln -s ${tf_full}.framework/Headers ${inc_file}
    205 
    206             # link libraries into ${qt_libs_dir}
    207 
    208             set libs_dir ${destroot}${qt_libs_dir}
    209 
    210             ln -s ${tf_full}.framework/${tf} \
    211                 ${libs_dir}/lib${tf}.dylib
    212             ln -s ${tf_full}.framework/${tf} \
    213                 ${libs_dir}/lib${tf}.${qwt_major}.dylib
    214             ln -s ${tf_full}.framework/${tf} \
    215                 ${libs_dir}/lib${tf}.${qwt_major}.${qwt_minor}.dylib
    216             ln -s ${tf_full}.framework/${tf} \
    217                 ${libs_dir}/lib${tf}.${qwt_major}.${qwt_minor}.${qwt_patch}.dylib
    218 
    219             if {[variant_isset debug]} {
    220 
    221                 # link debug libraries into ${qt_libs_dir}
    222 
    223                 ln -s ${tf_full}.framework/${tf}_debug \
    224                     ${libs_dir}/lib${tf}_debug.dylib
    225                 ln -s ${tf_full}.framework/${tf}_debug \
    226                     ${libs_dir}/lib${tf}_debug.${qwt_major}.dylib
    227                 ln -s ${tf_full}.framework/${tf}_debug \
    228                     ${libs_dir}/lib${tf}_debug.${qwt_major}.${qwt_minor}.dylib
    229                 ln -s ${tf_full}.framework/${tf}_debug \
    230                     ${libs_dir}/lib${tf}_debug.${qwt_major}.${qwt_minor}.${qwt_patch}.dylib
    231 
    232             }
    233         }
    234     }
    235 }
    236182
    237183variant debug description "Build release and debug versions" {}
    238184