Index: Portfile
===================================================================
--- Portfile	(revision 54020)
+++ Portfile	(working copy)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem	1.0
@@ -3,5 +4,5 @@
 
 name		py26-pyqt4
-version		4.5.1
+version		4.5.2
 categories	python devel
 platforms	macosx
@@ -18,17 +19,22 @@
 		http://pyqwt.sourceforge.net/support/
 distname	PyQt-mac-gpl-${version}
 
-checksums md5    6183de3147c7b7ada195f98c781e09a9 \
-          sha1   073d8a60079086ab3377a93e14acabeeba76004f \
-          rmd160 5ce46cfbc2ba70f7c8d953f1999ae6e0f92b02b8
+checksums md5    158a7a0804ce2fbc748a9a41105e34fe \
+          sha1   4fa04583829927a6bacba90adb9fabee682b3a7b \
+          rmd160 9a766254813bee83ccb923f4cae08dc084ee0927
 
 depends_lib	port:py26-sip port:qt4-mac
 
-#patchfiles	patch-configure.py
-
 set pyversion 2.6
 set qt_dir	${prefix}/libexec/qt4-mac
 
+# The patch file alters configure.py so that the qtdesigner plugin can link.
+# - it ensures that both LFLAGS are included and that the relevant version framework is linked
+patchfiles	patch-configure.py
+post-patch {
+    reinplace "s|@@MACPORTS_PYTHON_FRAMEWORK@@|${frameworks_dir}/Python.framework/Versions/${pyversion}/Python|" ${worksrcpath}/configure.py
+}
+
 pre-configure {
 	file copy -force ${qt_dir}/mkspecs/macx-g++/qmake.conf \
 		${worksrcpath}/qmake.conf
@@ -46,6 +52,7 @@
 configure.post_args	LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
 
 build.target    all
+use_parallel_build yes
 
 test.run	yes
 test.cmd	cd qt && ${prefix}/bin/python2.6 -c 'import PyQt4'

