[40957] trunk/dports/net/transmission-x11/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Oct 18 19:10:02 PDT 2008


On Oct 18, 2008, at 20:44, raimue at macports.org 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
}



More information about the macports-dev mailing list