Ignore:
Timestamp:
Oct 30, 2008, 5:49:28 PM (16 years ago)
Author:
garnier
Message:

try to be better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/sys/Darwin-g++.gmk

    r868 r875  
    33#                                 MacOS 10.3 gcc-3.3
    44#                                 MacOS 10.4 gcc-4.0
     5#                                 MacOS 10.5 gcc-4.0
    56#
    67# Original author: Helmut Burkhardt - CERN
    78#       Revisions: Guy Barrand - LAL
    89#                  Gabriele Cosmo - CERN
     10#                  Laurent Garnier - LAL
    911#
    1012ifeq ($(G4SYSTEM),Darwin-g++)
     
    6466    OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
    6567    ifeq ($(G4SYSTEM),Darwin-g++)
    66           # It may be required to uncomment the following lines for building on MacOSX 10.5 "Leopard"
     68          # the following lines are for building on MacOSX 10.5 "Leopard"
    6769      OGLLIBS   := $(shell test -f /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib && echo " -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
    6870      endif
     
    7274  endif
    7375
    74   ifeq ($(QTHOME),/Library/Frameworks)
    75     QT_VERSION := $(shell grep "QT_VERSION_STR" $(QTHOME)/QtCore.framework/Headers/qglobal.h | sed 's/.* \"\([0-9]\)\..*\"/\1/')
    76   else
    77     QT_VERSION := $(shell grep "QT_VERSION_STR" $(QTHOME)/include/qt/qglobal.h | sed 's/.* \"\([0-9]\)\..*\"/\1/')
     76  ifndef QTMOC
     77   ifeq ($(QTHOME),/Library/Frameworks)
     78     QTMOC      := /usr/bin/moc
     79   else
     80     QTMOC      := $(QTHOME)/bin/moc
     81   endif
    7882  endif
     83
     84  QT_VERSION := $(shell $(QTMOC) 2>&1 -v | sed 's/.* .Qt \([0-9]\)\..*/\1/' )
    7985
    8086  ifndef QTFLAGS
     
    8591    else
    8692      QTFLAGS   := -I $(QTHOME)/include/Qt -I$(QTHOME)/include
    87     endif
    88   endif
    89   ifndef QTMOC
    90     ifeq ($(QT_VERSION),4)
    91       QTMOC      := /usr/bin/moc
    92     else
    93       QTMOC      := $(QTHOME)/bin/moc
    9493    endif
    9594  endif
Note: See TracChangeset for help on using the changeset viewer.