[108553] trunk/dports/gis/libpcl/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Jul 26 15:14:48 PDT 2013


On Jul 26, 2013, at 06:41, vince at macports.org wrote:

> Revision: 108553
>          https://trac.macports.org/changeset/108553
> Author:   vince at macports.org
> Date:     2013-07-26 04:41:35 -0700 (Fri, 26 Jul 2013)
> Log Message:
> -----------
> Specify that the vtk5 portfile must be build against the +qt4_mac variant
> 
> Modified Paths:
> --------------
>    trunk/dports/gis/libpcl/Portfile
> 
> Modified: trunk/dports/gis/libpcl/Portfile
> ===================================================================
> --- trunk/dports/gis/libpcl/Portfile	2013-07-26 09:47:05 UTC (rev 108552)
> +++ trunk/dports/gis/libpcl/Portfile	2013-07-26 11:41:35 UTC (rev 108553)
> @@ -4,6 +4,7 @@
> PortSystem          1.0
> PortGroup           cmake 1.0
> PortGroup           github 1.0
> +PortGroup           active_variants 1.1
> 
> name                libpcl
> version             1.7.0
> @@ -36,6 +37,12 @@
>                     port:qhull \
>                     port:openni
> 
> +pre-configure {
> +    if {![active_variants vtk5 "qt4_mac" ""]} {
> +        return -code error "VTK5 toolkit must be built over Qt4.\
> +                            Please reinstall with +qt4_mac variant."
> +} 

You should probably use the require_active_variants proc for this instead of reimplementing that functionality.





More information about the macports-dev mailing list