Ticket #23284: qt4-mac-Portfile_10.4_link.diff

File qt4-mac-Portfile_10.4_link.diff, 1.2 KB (added by michaelld (Michael Dickens), 13 years ago)

"svn diff" in 'qt4-mac' Portfile, to maybe allow 10.4 to build cleanly?

  • Portfile

     
    235235platform darwin 8 {
    236236    # build as Carbon only, not cocoa.
    237237    configure.args-append -carbon
     238
     239    # required linking flags?
    238240    configure.ldflags-append -lcrypto -ldbus-1 -ljpeg -llcms -lsqlite3 -lssl -lz
     241
     242    # build all Makefiles during configure, ...
     243    configure.args-delete -fast
     244    # ... then patch them: 10.4 requires -lQtHelp to be followed by
     245    # -lQtCLucene (10.5+ figures this out) as found in Makefiles only.
     246    # If just release, will be just "Makefile".  If using +debug, will
     247    # be "Makefile.Release" and "Makefile.Debug", so do a find on
     248    # "Makefile*" to work no matter which is selected.
    239249    post-configure {
    240         fs-traverse item ${worksrcpath} {
    241             if {"Makefile" == [file tail ${item}]} {
    242                 reinplace "s|-framework QtHelp|-framework QtHelp -lQtCLucene|" ${item}
     250        foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] {
     251                reinplace "s|-lQtHelp|-lQtHelp -lQtCLucene|g" ${fixfile}
    243252            }
    244253        }
    245254    }