Ryan Schmidt wrote:

I tried the most straight-forward approach, wrapping
default_variants in platform, but it didn't work...

It should be possible. Off the top of my head:

platform macosx {
        default_variants +aqua
}

platform puredarwin {
        default_variants +x11
}

This was the setting that didn't work that I mentioned,
as it didn't pick up anything from the aqua variant ?

I also seemed to have the misguided notion that the
default variants would somehow go away when actually
providing some variants ? Not so, I had to give an
explicit "+x11 -aqua" to get rid of the defaults...

I noticed that too. See my solution in the e.g. the minivmac portfile:

if { ![variant_isset mac128k] && ![variant_isset mac512k] && ![variant_isset mac512ke] && ![variant_isset macse] } {
        default_variants +macplus
}

It gives you the default variant only if you have not already selected another variant.

OK, a bit longwinded but I guess it'll do too...
The archive got a "+macosx+aqua", but that's OK.

--anders

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

Reply via email to