On Oct 18, 2008, at 20:44, [EMAIL PROTECTED] wrote:

>
> +variant aqua description {Build Aqua front-end} {
> +     configure.args-delete   --disable-darwin
> +     configure.args-append   --enable-darwin
> +}
> +
> +pre-fetch {
> +     if { [variant_isset aqua] } {
> +             set comparison [string  compare "${os.platform} ${os.major}"  
> "darwin 9"]
> +             if {$comparison != 0} {
> +                     return -code error "The aqua front-end only builds on 
> Mac OS X  
> Leopard (10.5.x). try the gtk variant"
> +             }
> +     }
> +}

It builds only on 10.5? or it builds on 10.5 or greater? If the  
latter, I recommend something like:

variant aqua description {Build Aqua front-end} {
        pre-fetch {
                if { ${os.major} < 9 } {
                        return -code error "The aqua front-end of ${name} 
requires Mac OS  
X 10.5 or greater. Try the gtk variant instead."
                }
        }
        configure.args-delete   --disable-darwin
        configure.args-append   --enable-darwin
}

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

Reply via email to