Revision
72687
Author
michaelld@macports.org
Date
2010-10-23 16:55:07 -0700 (Sat, 23 Oct 2010)

Log Message

vtk5: Trail fix for ticket #26956; works for me now.

Modified Paths

Diff

Modified: trunk/dports/graphics/vtk5/Portfile (72686 => 72687)


--- trunk/dports/graphics/vtk5/Portfile	2010-10-23 22:13:11 UTC (rev 72686)
+++ trunk/dports/graphics/vtk5/Portfile	2010-10-23 23:55:07 UTC (rev 72687)
@@ -147,15 +147,21 @@
     }
 }
 
+if {[variant_isset qt4_mac]} {
+    PortGroup qt4 1.0
+}
+
 variant qt4_mac conflicts x11 description {Build GUI support with Qt4 (Mac)} {
-    PortGroup     qt4 1.0
     configure.args-append   -DVTK_USE_QT:BOOL=ON \
-                            -DVTK_USE_GUISUPPORT:BOOL=ON
-
+                            -DVTK_USE_GUISUPPORT:BOOL=ON \
+                            -DQT_PHONON_INCLUDE_DIR=${prefix}/include/phonon \
+                            ${qt_cmake_defines}
     post-destroot {
         xinstall -m 755 -d ${destroot}${qt_plugins_dir}/designer
         move ${destroot}${prefix}/plugins/designer/libQVTKWidgetPlugin.dylib \
             ${destroot}${qt_plugins_dir}/designer/
+        set fixfile ${qt_plugins_dir}/designer/libQVTKWidgetPlugin.dylib
+        system "install_name_tool -id ${fixfile} ${destroot}${fixfile}"
     }
 }