[73343] trunk/dports/aqua/qt4-mac
michaelld at macports.org
michaelld at macports.org
Wed Nov 10 08:49:49 PST 2010
Revision: 73343
http://trac.macports.org/changeset/73343
Author: michaelld at macports.org
Date: 2010-11-10 08:49:38 -0800 (Wed, 10 Nov 2010)
Log Message:
-----------
qt4-mac: bump to 4.7.1; fix use of CCACHE variable; fix linking with
QtHelp on 10.4 (hopefully).
Modified Paths:
--------------
trunk/dports/aqua/qt4-mac/Portfile
trunk/dports/aqua/qt4-mac/files/patch-mkspecs_common_mac.conf.diff
Modified: trunk/dports/aqua/qt4-mac/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac/Portfile 2010-11-10 16:43:50 UTC (rev 73342)
+++ trunk/dports/aqua/qt4-mac/Portfile 2010-11-10 16:49:38 UTC (rev 73343)
@@ -10,8 +10,7 @@
name qt4-mac
conflicts qt4-mac-devel
-version 4.7.0
-revision 1
+version 4.7.1
categories aqua
platforms macosx
maintainers michaelld
@@ -24,9 +23,9 @@
master_sites trolltech
distname qt-everywhere-opensource-src-${version}
-checksums md5 3a2f25b9b115037277f4fb759194a7a5 \
- sha1 a5796c8f468c8f59249e5c696f913864c979f411 \
- rmd160 3e9c0f0d9843b5c03ad4bd6193aff98531ee0746
+checksums md5 6f88d96507c84e9fea5bf3a71ebeb6d7 \
+ sha1 fcf764d39d982c7f84703821582bd10c3192e341 \
+ rmd160 de6998948eb9f51a9193b9020ba80cfd52d50899
depends_lib-append port:zlib port:dbus port:openssl port:sqlite3 \
port:tiff port:libpng port:libmng port:jpeg
@@ -235,12 +234,20 @@
platform darwin 8 {
# build as Carbon only, not cocoa.
configure.args-append -carbon
+
+ # required linking flags?
configure.ldflags-append -lcrypto -ldbus-1 -ljpeg -llcms -lsqlite3 -lssl -lz
+
+ # build all Makefiles during configure, ...
+ configure.args-delete -fast
+ # ... then patch them: 10.4 requires -lQtHelp to be followed by
+ # -lQtCLucene (10.5+ figures this out) as found in Makefiles only.
+ # If just release, will be just "Makefile". If using +debug, will
+ # be "Makefile.Release" and "Makefile.Debug", so do a find on
+ # "Makefile*" to work no matter which is selected.
post-configure {
- fs-traverse item ${worksrcpath} {
- if {"Makefile" == [file tail ${item}]} {
- reinplace "s|-framework QtHelp|-framework QtHelp -lQtCLucene|" ${item}
- }
+ foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] {
+ reinplace "s|-lQtHelp|-lQtHelp -lQtCLucene|g" ${fixfile}
}
}
}
Modified: trunk/dports/aqua/qt4-mac/files/patch-mkspecs_common_mac.conf.diff
===================================================================
--- trunk/dports/aqua/qt4-mac/files/patch-mkspecs_common_mac.conf.diff 2010-11-10 16:43:50 UTC (rev 73342)
+++ trunk/dports/aqua/qt4-mac/files/patch-mkspecs_common_mac.conf.diff 2010-11-10 16:49:38 UTC (rev 73343)
@@ -6,7 +6,7 @@
+# allow CC and CXX to use CCACHE;
+# use "make CCACHE=ccache" when building
-+QMAKE_CC = "$(CCACHE)" $$QMAKE_CC
-+QMAKE_CXX = "$(CCACHE)" $$QMAKE_CXX
++QMAKE_CC = $(CCACHE) $$QMAKE_CC
++QMAKE_CXX = $(CCACHE) $$QMAKE_CXX
include(unix.conf)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101110/3464fca5/attachment.html>
More information about the macports-changes
mailing list