Changeset 144790


Ignore:
Timestamp:
Jan 18, 2016, 4:24:07 PM (3 years ago)
Author:
mcalhoun@…
Message:

qt5 PortGroup: just allow port to see if Qt5 builds on particular OS version
so it may, e.g., use Qt4 instead

File:
1 edited

Legend:

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

    r144789 r144790  
    3636# PortGroup     qt5 1.0
    3737
    38 # no universal binary support in Qt 5
    39 #     see http://lists.qt-project.org/pipermail/interest/2012-December/005038.html
    40 #     and https://bugreports.qt.io/browse/QTBUG-24952
    41 supported_archs i386 x86_64
    42 if { ![exists universal_variant] || [option universal_variant] } {
    43     PortGroup muniversal 1.0
    44     universal_archs_supported i386 x86_64
    45 }
    46 
    47 # standard Qt5 name
    48 global qt_name
    49 set qt_name             qt5
    50 
    51 # standard install directory
    52 global qt_dir
    53 set qt_dir               ${prefix}/libexec/qt5
    54 
    55 # standard Qt non-.app executables directory
    56 global qt_bins_dir
    57 set qt_bins_dir         ${qt_dir}/bin
    58 
    59 # standard Qt includes directory
    60 global qt_includes_dir
    61 set qt_includes_dir     ${qt_dir}/include
    62 
    63 # standard Qt libraries directory
    64 global qt_libs_dir
    65 set qt_libs_dir         ${qt_dir}/lib
    66 
    67 # standard Qt libraries directory
    68 global qt_frameworks_dir
    69 set qt_frameworks_dir   ${qt_libs_dir}
    70 
    71 global qt_archdata_dir
    72 set qt_archdata_dir  ${qt_dir}
    73 
    74 # standard Qt plugins directory
    75 global qt_plugins_dir
    76 set qt_plugins_dir      ${qt_archdata_dir}/plugins
    77 
    78 # standard Qt imports directory
    79 global qt_imports_dir
    80 set qt_imports_dir      ${qt_archdata_dir}/imports
    81 
    82 # standard Qt qml directory
    83 global qt_qml_dir
    84 set qt_qml_dir          ${qt_archdata_dir}/qml
    85 
    86 # standard Qt data directory
    87 global qt_data_dir
    88 set qt_data_dir         ${qt_dir}
    89 
    90 # standard Qt documents directory
    91 global qt_docs_dir
    92 set qt_docs_dir         ${qt_data_dir}/doc
    93 
    94 # standard Qt translations directory
    95 global qt_translations_dir
    96 set qt_translations_dir ${qt_data_dir}/translations
    97 
    98 # standard Qt sysconf directory
    99 global qt_sysconf_dir
    100 set qt_sysconf_dir      ${qt_dir}/etc/xdg
    101 
    102 # standard Qt examples directory
    103 global qt_examples_dir
    104 set qt_examples_dir     ${qt_dir}/examples
    105 
    106 # standard Qt tests directory
    107 global qt_tests_dir
    108 set qt_tests_dir        ${qt_dir}/tests
    109 
    110 # data used by qmake
    111 global qt_host_data_dir
    112 set qt_host_data_dir    ${qt_dir}
    113 
    114 # standard Qt demos directory
    115 #global qt_demos_dir
    116 #set qt_demos_dir        ${qt_dir}/share/${qt_name}/demos
    117 
    118 # standard Qt mkspecs directory
    119 global qt_mkspecs_dir
    120 set qt_mkspecs_dir      ${qt_dir}/mkspecs
    121 
    122 # standard Qt .app executables directory, if created
    123 global qt_apps_dir
    124 set qt_apps_dir         ${applications_dir}/Qt5
    125 
    126 # standard CMake module directory for Qt-related files
    127 #global qt_cmake_module_dir
    128 set qt_cmake_module_dir ${qt_libs_dir}/cmake
    129 
    130 # standard qmake command location
    131 global qt_qmake_cmd
    132 set qt_qmake_cmd        ${qt_dir}/bin/qmake
    133 
    134 # standard moc command location
    135 global qt_moc_cmd
    136 set qt_moc_cmd          ${qt_dir}/bin/moc
    137 
    138 # standard uic command location
    139 global qt_uic_cmd
    140 set qt_uic_cmd          ${qt_dir}/bin/uic
    141 
    142 # standard lrelease command location
    143 global qt_lrelease_cmd
    144 set qt_lrelease_cmd     ${qt_dir}/bin/lrelease
    145 
    146 # standard lupdate command location
    147 global qt_lupdate_cmd
    148 set qt_lupdate_cmd     ${qt_dir}/bin/lupdate
    149 
    150 # standard PKGCONFIG path
    151 global qt_pkg_config_dir
    152 set qt_pkg_config_dir   ${qt_libs_dir}/pkgconfig
    153 
    154 # standard qmake spec
    155 # other platforms required
    156 #     see http://doc.qt.io/qt-5/supported-platforms.html
    157 #     and http://doc.qt.io/QtSupportedPlatforms/index.html
    158 global qt_qmake_spec
    159 global qt_qmake_spec_32
    160 global qt_qmake_spec_64
    161 compiler.whitelist clang
    162 
    163 set qt_qmake_spec_32 macx-clang-32
    164 set qt_qmake_spec_64 macx-clang
    165 
    166 if { ![option universal_variant] || ![variant_isset universal] } {
    167     if { ${configure.build_arch} eq "i386" } {
    168         set qt_qmake_spec ${qt_qmake_spec_32}
    169     } else {
    170         set qt_qmake_spec ${qt_qmake_spec_64}
    171     }
    172 } else {
    173     set qt_qmake_spec ""
    174 }
    175 
    176 # standard cmake info for Qt5
    177 #global qt_cmake_defines
    178 #set qt_cmake_defines    \
    179 #    "-DQT_QT_INCLUDE_DIR=${qt_includes_dir} \
    180 #     -DQT_QMAKESPEC=${qt_qmake_spec} \
    181 #     -DQT_ZLIB_LIBRARY=${prefix}/lib/libz.dylib \
    182 #     -DQT_PNG_LIBRARY=${prefix}/lib/libpng.dylib"
    183 
    18438# Qt has what is calls reference configurations, which are said to be thoroughly tested
    18539# Qt also has configurations which are occasionally tested
     
    19448set qt5_max_reference_version  14
    19549
     50if {[tbool just_want_qt5_version_info]} {
     51    return
     52}
     53
     54# no universal binary support in Qt 5
     55#     see http://lists.qt-project.org/pipermail/interest/2012-December/005038.html
     56#     and https://bugreports.qt.io/browse/QTBUG-24952
     57supported_archs i386 x86_64
     58if { ![exists universal_variant] || [option universal_variant] } {
     59    PortGroup muniversal 1.0
     60    universal_archs_supported i386 x86_64
     61}
     62
     63# standard Qt5 name
     64global qt_name
     65set qt_name             qt5
     66
     67# standard install directory
     68global qt_dir
     69set qt_dir               ${prefix}/libexec/qt5
     70
     71# standard Qt non-.app executables directory
     72global qt_bins_dir
     73set qt_bins_dir         ${qt_dir}/bin
     74
     75# standard Qt includes directory
     76global qt_includes_dir
     77set qt_includes_dir     ${qt_dir}/include
     78
     79# standard Qt libraries directory
     80global qt_libs_dir
     81set qt_libs_dir         ${qt_dir}/lib
     82
     83# standard Qt libraries directory
     84global qt_frameworks_dir
     85set qt_frameworks_dir   ${qt_libs_dir}
     86
     87global qt_archdata_dir
     88set qt_archdata_dir  ${qt_dir}
     89
     90# standard Qt plugins directory
     91global qt_plugins_dir
     92set qt_plugins_dir      ${qt_archdata_dir}/plugins
     93
     94# standard Qt imports directory
     95global qt_imports_dir
     96set qt_imports_dir      ${qt_archdata_dir}/imports
     97
     98# standard Qt qml directory
     99global qt_qml_dir
     100set qt_qml_dir          ${qt_archdata_dir}/qml
     101
     102# standard Qt data directory
     103global qt_data_dir
     104set qt_data_dir         ${qt_dir}
     105
     106# standard Qt documents directory
     107global qt_docs_dir
     108set qt_docs_dir         ${qt_data_dir}/doc
     109
     110# standard Qt translations directory
     111global qt_translations_dir
     112set qt_translations_dir ${qt_data_dir}/translations
     113
     114# standard Qt sysconf directory
     115global qt_sysconf_dir
     116set qt_sysconf_dir      ${qt_dir}/etc/xdg
     117
     118# standard Qt examples directory
     119global qt_examples_dir
     120set qt_examples_dir     ${qt_dir}/examples
     121
     122# standard Qt tests directory
     123global qt_tests_dir
     124set qt_tests_dir        ${qt_dir}/tests
     125
     126# data used by qmake
     127global qt_host_data_dir
     128set qt_host_data_dir    ${qt_dir}
     129
     130# standard Qt demos directory
     131#global qt_demos_dir
     132#set qt_demos_dir        ${qt_dir}/share/${qt_name}/demos
     133
     134# standard Qt mkspecs directory
     135global qt_mkspecs_dir
     136set qt_mkspecs_dir      ${qt_dir}/mkspecs
     137
     138# standard Qt .app executables directory, if created
     139global qt_apps_dir
     140set qt_apps_dir         ${applications_dir}/Qt5
     141
     142# standard CMake module directory for Qt-related files
     143#global qt_cmake_module_dir
     144set qt_cmake_module_dir ${qt_libs_dir}/cmake
     145
     146# standard qmake command location
     147global qt_qmake_cmd
     148set qt_qmake_cmd        ${qt_dir}/bin/qmake
     149
     150# standard moc command location
     151global qt_moc_cmd
     152set qt_moc_cmd          ${qt_dir}/bin/moc
     153
     154# standard uic command location
     155global qt_uic_cmd
     156set qt_uic_cmd          ${qt_dir}/bin/uic
     157
     158# standard lrelease command location
     159global qt_lrelease_cmd
     160set qt_lrelease_cmd     ${qt_dir}/bin/lrelease
     161
     162# standard lupdate command location
     163global qt_lupdate_cmd
     164set qt_lupdate_cmd     ${qt_dir}/bin/lupdate
     165
     166# standard PKGCONFIG path
     167global qt_pkg_config_dir
     168set qt_pkg_config_dir   ${qt_libs_dir}/pkgconfig
     169
     170# standard qmake spec
     171# other platforms required
     172#     see http://doc.qt.io/qt-5/supported-platforms.html
     173#     and http://doc.qt.io/QtSupportedPlatforms/index.html
     174global qt_qmake_spec
     175global qt_qmake_spec_32
     176global qt_qmake_spec_64
     177compiler.whitelist clang
     178
     179set qt_qmake_spec_32 macx-clang-32
     180set qt_qmake_spec_64 macx-clang
     181
     182if { ![option universal_variant] || ![variant_isset universal] } {
     183    if { ${configure.build_arch} eq "i386" } {
     184        set qt_qmake_spec ${qt_qmake_spec_32}
     185    } else {
     186        set qt_qmake_spec ${qt_qmake_spec_64}
     187    }
     188} else {
     189    set qt_qmake_spec ""
     190}
     191
     192# standard cmake info for Qt5
     193#global qt_cmake_defines
     194#set qt_cmake_defines    \
     195#    "-DQT_QT_INCLUDE_DIR=${qt_includes_dir} \
     196#     -DQT_QMAKESPEC=${qt_qmake_spec} \
     197#     -DQT_ZLIB_LIBRARY=${prefix}/lib/libz.dylib \
     198#     -DQT_PNG_LIBRARY=${prefix}/lib/libpng.dylib"
     199
    196200# do not try to install if qt5-qtbase dependency will fail to build
    197201# warn about non-reference configurations
Note: See TracChangeset for help on using the changeset viewer.