[49649] trunk/dports/graphics/vtk5/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Apr 14 14:48:54 PDT 2009


On Apr 14, 2009, at 10:48, macsforever2000 at macports.org wrote:

> Revision: 49649
>           http://trac.macports.org/changeset/49649
> Author:   macsforever2000 at macports.org
> Date:     2009-04-14 08:48:51 -0700 (Tue, 14 Apr 2009)
> Log Message:
> -----------
> Fix for +tcltk +x11 +python variants. (#19111)

Looks like you also added a +carbon variant.

Using the +carbon variant will be painful, as the user will have to  
also specify "-tcltk -x11" every time they want to upgrade their  
"vtk5 +carbon", because those default variants would otherwise  
conflict. It may be useful to specify +x11 and +tcltk as default  
variants *only* if the user has not already requested the +carbon  
variant. See many ports for examples of how to handle this, e.g.  
minivmac.

[snip]

> -default_variants +x11 +python
> +default_variants +x11 +tcltk +python
>
> -variant x11 description {use X11} {
> +variant x11 conflicts carbon description {use X11} {
>      depends_build-append    port:xorg-libs
>      configure.args-delete   -DVTK_USE_COCOA:BOOL=ON
>      configure.args-append   \
> @@ -96,6 +99,26 @@
>          -DOPENGL_glu_LIBRARY:FILEPATH=${x11prefix}/lib/libGLU.dylib
>  }
>
> +variant tcltk conflicts carbon description {build with Tcl  
> wrappers and Tk support} {
> +    configure.args-delete \
> +        -DVTK_USE_TK:BOOL=OFF \
> +        -DVTK_WRAP_TCL:BOOL=OFF
> +    configure.args-append \
> +        -DVTK_USE_TK:BOOL=ON \
> +        -DVTK_WRAP_TCL:BOOL=ON \
> +        -DTCL_INCLUDE_PATH=${prefix}/include \
> +        -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib
> +}
> +
> +variant carbon conflicts x11 tcltk description {Use Carbon.   
> Allows embedding VTK within qt4-mac (and py25-pyqt4 when used with  
> Python)} {
> +    configure.args-delete \
> +        -DVTK_USE_COCOA:BOOL=ON \
> +        -DVTK_USE_CARBON:BOOL=OFF
> +    configure.args-append \
> +        -DVTK_USE_COCOA:BOOL=OFF \
> +        -DVTK_USE_CARBON:BOOL=ON
> +}





More information about the macports-dev mailing list