How can variant B imply variant A?
Daniel J. Luke
dluke at geeklair.net
Wed Aug 22 06:38:27 PDT 2012
On Aug 22, 2012, at 3:23 AM, Mojca Miklavec <mojca.miklavec.lists at gmail.com> 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
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-dev
mailing list