source: trunk/dports/aqua/qtpfsgui/files/patch-project.pro.diff @ 72606

Last change on this file since 72606 was 72606, checked in by michaelld@…, 9 years ago

Changes to use qt4 portgroup.
Fix building for the specified ARCH and/or +universal.

File size: 2.0 KB
  • project.pro

    old new  
    315315        HTMLDIR = $${DOCDIR}
    316316}
    317317
    318 target.path      = $${PREFIX}/bin
     318mac {
     319        target.path      = $${APPLICATIONS_DIR}
     320} else {
     321        target.path      = $${PREFIX}/bin
     322}
    319323menu.files       = qtpfsgui.desktop
    320324menu.path        = $${PREFIX}/share/applications
    321325icon.files       = images/qtpfsgui.png
     
    367371
    368372# Enable universal (requires a universal Qt)? Default = non-universal
    369373# If you wish to build a Universal Binary please un-comment the following line
    370 #CONFIG += x86 ppc
    371 
    372 # Warn user what type of binary is being built and what the possible implications are
    373 contains(CONFIG, "x86"):contains(CONFIG, "ppc") {
    374         message ("Building an OS X Universal Binary:")
    375         message ("Please ensure all dependencies and Qt are also Universal")
    376         message ("********************************************************************")
    377 } else {
    378         # Test what architecture we are on (Intel or PPC)
    379         # 'arch' returns "i386" on Intel-Tiger is this true on Intel-Leopard?
    380         # What does 'arch' return on PPC machines? Presumably "ppc"?
    381         MAC_ARCH = $$system(arch)
    382         contains(MAC_ARCH, i386) {
    383                 message ("This is an Intel Mac - Building an Intel specific OS X binary")
    384                 message ("Please refer to the documentation if you require a Universal Binary")
    385                 message ("********************************************************************")
    386                 # Is this next line strictly necessary? gcc should compile for the correct architecture by default.
    387                 CONFIG += x86
    388         } else {
    389                 message ("This is a PPC Mac - Building a PPC specific OS X binary")
    390                 message ("Please refer to the documentation if you require a Universal Binary")
    391                 message ("********************************************************************")
    392                 # Is this next line strictly necessary? gcc should compile for the correct architecture by default.
    393                 CONFIG += ppc
    394         }
    395 }
     374CONFIG += @@ARCHES@@
    396375
    397376# We like to search the LOCALSOFT/lib explicitly on MacOSX
    398377LIBS += -L$$(LOCALSOFT)/lib
Note: See TracBrowser for help on using the repository browser.