default_variants per platform
Randall Wood
rhwood at mac.com
Fri Jul 13 01:49:23 PDT 2007
On 12 Jul 2007, at 08:14, Anders F Björklund wrote:
> Is it possible to set "default_variants" per platform ?
>
> Basically, I want to set +aqua for platform macosx,
> and +x11 for platform puredarwin or platform freebsd.
> I tried the most straight-forward approach, wrapping
> default_variants in platform, but it didn't work...
>
> For now I made due with "variant aqua requires macosx".
>
> 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...
>
You could try this:
variant aqua conflicts x11 requires macosx {}
variant x11 conflicts aqua {}
Randall Wood
rhwood at mac.com
http://shyramblings.blogspot.com
"The rules are simple: The ball is round. The game lasts 90 minutes.
All the
rest is just philosophy."
More information about the macports-dev
mailing list