Ignore:
Timestamp:
Nov 4, 2010, 1:05:21 AM (9 years ago)
Author:
michaelld@…
Message:

Qt4 PortGroup Changes:

  • add check for key variable 'building_qt4' to signify that qt4 is being built, and hence to not include certain parts (e.g., depends_lib on qt4-mac, or archcheck on QtCore).
  • archcheck QtCore library if not building Qt4.
  • if +debug variant exists and is set, and not building Qt4, then verify that QtCore_debug library exists and error out if not.
File:
1 edited

Legend:

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

    r73039 r73101  
    3636# PortGroup     qt4 1.0
    3737
     38# always archcheck QtCore
     39PortGroup               archcheck 1.0
     40
     41# check arch of libraries on which this port depends
     42if {![info exists building_qt4]} {
     43    archcheck.files-append  lib/libQtCore.dylib
     44}
     45
     46# check for +debug variant of this port, and make sure Qt was
     47# installed with +debug as well; if not, error out.
     48platform darwin {
     49    pre-extract {
     50        if {[variant_exists debug] && \
     51            [variant_isset debug] && \
     52           ![info exists building_qt4]} {
     53            if {![file exists ${prefix}/lib/libQtCore_debug.dylib]} {
     54                return -code error "\n\nERROR:\n\
     55In order to install this port as +debug,
     56Qt4 must also be installed with +debug.\n"
     57            }
     58        }
     59    }
     60}
     61
    3862# standard Qt4 name
    3963global qt_name
     
    7498# standard Qt .app executables directory, if created
    7599global qt_apps_dir
    76 set qt_apps_dir         ${applications_dir}/Qt
     100set qt_apps_dir         ${applications_dir}/Qt4
    77101
    78102# standard Qt data directory
     
    130154
    131155# allow for both qt4 and qt4 devel
    132 depends_lib-append      path:bin/qmake:qt4-mac
     156if {![info exists building_qt4]} {
     157    depends_lib-append      path:bin/qmake:qt4-mac
     158}
    133159
    134160# standard configure environment
Note: See TracChangeset for help on using the changeset viewer.