Ticket #23284: qt4-mac-Portfile_10.4_link.2.diff
File qt4-mac-Portfile_10.4_link.2.diff, 1.2 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
Portfile
235 235 platform darwin 8 { 236 236 # build as Carbon only, not cocoa. 237 237 configure.args-append -carbon 238 239 # required linking flags? 238 240 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. 239 249 post-configure { 240 fs-traverse item ${worksrcpath} { 241 if {"Makefile" == [file tail ${item}]} { 242 reinplace "s|-framework QtHelp|-framework QtHelp -lQtCLucene|" ${item} 243 } 250 foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] { 251 reinplace "s|-lQtHelp|-lQtHelp -lQtCLucene|g" ${fixfile} 244 252 } 245 253 } 246 254 }