On Aug 22, 2012, at 3:23 AM, Mojca Miklavec <[email protected]> 
wrote:
> If I use
>    variant x_wxt ... {
>        if {<something>} {
>            # then this is already too late to make a dependency on "wxWidgets"
>        } else {
>            # or dependency on "wxWidgets-devel" here
>        }
>    }

What do you mean? do you mean you can't add an extra 'default' variant there?

You certainly can add (and/or remove) dependencies inside of variants.

For example, in the subversion port +mod_dav_svn does:

variant mod_dav_svn     description {Install the subversion apache module 
(mod_dav_svn)} {
                        depends_build path:apache2/bin/apxs:apache2
                        configure.args-append \
                                --with-apxs=${prefix}/apache2/bin/apxs \
                                --disable-mod-activation
                        configure.args-delete --without-apxs

                        destroot.violate_mtree yes
                        }

--
Daniel J. Luke                                                                  
 
+========================================================+                      
  
| *---------------- [email protected] ----------------* |                      
    
| *-------------- http://www.geeklair.net -------------* |                      
    
+========================================================+                      
  
|   Opinions expressed are mine and do not necessarily   |                      
    
|          reflect the opinions of my employer.          |                      
    
+========================================================+



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to