Ignore:
Timestamp:
Oct 29, 2010, 1:48:40 PM (9 years ago)
Author:
michaelld@…
Message:

qt4 PortGroup: Add in a few more variables; set all variables to
'global' to allow for use in variants and embedded stages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/qt4-1.0.tcl

    r72637 r72874  
    3737
    3838# standard Qt4 name
     39global qt_name
    3940set qt_name             qt4
    4041
    4142# standard install directory
     43global qt_dir
    4244set qt_dir              ${prefix}
    4345
    4446# standard Qt documents directory
     47global qt_docs_dir
    4548set qt_docs_dir         ${qt_dir}/share/doc/${qt_name}
    4649
    4750# standard Qt plugins directory
     51global qt_plugins_dir
    4852set qt_plugins_dir      ${qt_dir}/share/${qt_name}/plugins
    4953
    5054# standard Qt mkspecs directory
     55global qt_mkspecs_dir
    5156set qt_mkspecs_dir      ${qt_dir}/share/${qt_name}/mkspecs
    5257
    5358# standard Qt imports directory
     59global qt_imports_dir
    5460set qt_imports_dir      ${qt_dir}/share/${qt_name}/imports
    5561
    5662# standard Qt includes directory
     63global qt_includes_dir
    5764set qt_includes_dir     ${qt_dir}/include
    5865
    5966# standard Qt libraries directory
     67global qt_libs_dir
    6068set qt_libs_dir         ${qt_dir}/lib
    6169
     70# standard Qt non-.app executables directory
     71global qt_bins_dir
     72set qt_bins_dir         ${qt_dir}/bin
     73
     74# standard Qt .app executables directory, if created
     75global qt_apps_dir
     76set qt_apps_dir         ${applications_dir}/Qt
     77
    6278# standard Qt data directory
     79global qt_data_dir
    6380set qt_data_dir         ${qt_dir}/share/${qt_name}
    6481
    6582# standard Qt translations directory
     83global qt_translations_dir
    6684set qt_translations_dir ${qt_dir}/share/${qt_name}/translations
    6785
    6886# standard Qt sysconf directory
     87global qt_sysconf_dir
    6988set qt_sysconf_dir      ${qt_dir}/etc/${qt_name}
    7089
    7190# standard Qt examples directory
     91global qt_examples_dir
    7292set qt_examples_dir     ${qt_dir}/share/${qt_name}/examples
    7393
    7494# standard Qt demos directory
     95global qt_demos_dir
    7596set qt_demos_dir        ${qt_dir}/share/${qt_name}/demos
    7697
    7798# standard CMake module directory for Qt-related files
     99global qt_cmake_module_dir
    78100set qt_cmake_module_dir ${qt_dir}/share/cmake/modules
    79101
    80102# standard qmake command location
     103global qt_qmake_cmd
    81104set qt_qmake_cmd        ${qt_dir}/bin/qmake
    82105
    83106# standard moc command location
     107global qt_moc_cmd
    84108set qt_moc_cmd          ${qt_dir}/bin/moc
    85109
    86110# standard uic command location
     111global qt_uic_cmd
    87112set qt_uic_cmd          ${qt_dir}/bin/uic
    88113
    89114# standard lrelease command location
     115global qt_lrelease_cmd
    90116set qt_lrelease_cmd     ${qt_dir}/bin/lrelease
    91117
    92118# standard cmake info for Qt4
     119global qt_cmake_defines
    93120set qt_cmake_defines    \
    94121    "-DQT_QT_INCLUDE_DIR=${qt_includes_dir} \
     
    97124     -DQT_ZLIB_LIBRARY=${prefix}/lib/libz.dylib \
    98125     -DQT_PNG_LIBRARY=${prefix}/lib/libpng.dylib"
     126
     127# set Qt understood arch types, based on user preference
     128pre-patch {
     129    global qt_arch_types
     130    if {[variant_exists universal] && [variant_isset universal]} {
     131        set qt_arch_types ${universal_archs}
     132    } else {
     133        set qt_arch_types ${build_arch}
     134    }
     135    set qt_arch_types [string map {i386 x86} ${qt_arch_types}]
     136}
    99137
    100138# allow for both qt4 and qt4 devel
Note: See TracChangeset for help on using the changeset viewer.