[MacPorts] #19111: Proposed additions to vtk5 Portfile
MacPorts
noreply at macports.org
Wed Apr 1 12:35:42 PDT 2009
#19111: Proposed additions to vtk5 Portfile
-------------------------------------------------+--------------------------
Reporter: tgamblin@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: vtk qt carbon vtk5 python pyqt4 qt4 | Port: vtk5
-------------------------------------------------+--------------------------
I've added some variants to the vtk5 Portfile that better integrate with
qt4-mac and py25-pyqt4. I'd like to see these added to the MacPorts
distro... who do I talk to about this?
The current vtk5 portfile only allows building with cocoa or x11 support,
but the cocoa build of vtk5 doesn't allow embedding in qt widgets because
there are some unimplemented methods in vtkCocoaRenderWindow in VTK 5.2.
These methods are implemented properly for the Carbon build of VTK, so to
embed in Qt, you have to build VTK with Carbon support.
I've added two variants to the build to allow this:
tcltk: bundles up the tcl/tk build options into a variant
carbon: sets VTK_USE_COCOA to OFF and VTK_USE_CARBON to ON.
I separated these out because I couldn't get things to build properly with
Carbon, Tk, and Python. If you want to integrate with PyQt4, you would
build VTK like this:
sudo port install vtk5 +carbon +python
If you want to build what the vtk5 port builds right now, these are the
options you would use:
sudo port install vtk5 +tcltk +x11 +python
Can I get these changes integrated into MacPorts? I've attached my
modified Portfile.
The only thing I'm unsure of is what the default variants should be. I've
set them to my preferred variants (+carbon +python), but just so that
nobody gets surprised they should probably be set to +tcltk +x11 +python
to reflect what the port does right now.
Thanks!
-Todd Gamblin
--
Ticket URL: <http://trac.macports.org/ticket/19111>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list