On Jun 9, 2009, at 8:59 PM, Ryan Schmidt wrote:
Something like

configure.args-append --with-xdvi-x-toolkit=xaw
variant motif {
        configure.args-delete --with-xdvi-x-toolkit=xaw
        configure.args-append --with-xdvi-x-toolkit=motif
        depends_lib-delete      port:xorg-libXaw
        depends_lib-append      lib:libXm:openmotif
}

If you're going to have a compile-time choice between xaw and motif, then it would be best to have two variants, one called xaw and one called motif, which are marked as conflicting with one another, and the port should select one of these by default, and prevent the deselection of both variants simultaneously. This makes it clear to the user that there is a choice between two alternatives. There are several ports that exemplify this strategy (pdftk's compiler selection, minivmac version 2's emulator selection).


This is a matter of style, though.

I find it simpler to set things up like the above example instead (this avoids an extra variant and avoids having to indicate conflicting variants).

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



Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to