On Jul 18, 2010, at 08:32, Harry van der Wolf wrote:

> When I want to create a universal build that needs to be built in separate 
> steps due to differences in ppc and i386 (big_endian or little_endian or SSE 
> dependencies), how do I specify that in the Portfile?
> 
> It used to be necessary to script it with either 
>     "if { [variant_isset universal] } {"  etc.
> or with
> "variant universal {"  etc.
> 
> Is their now some setting I can use to make macports build it in separate 
> steps depending on the architecture?

Add the line

PortGroup muniversal 1.0

after the

PortSystem 1.0

line at the top of the Portfile. That's all.

If you need to send separate configure arguments, environment variables, or 
other settings to each separate build, that can be done. There isn't 
documentation on muniversal, other than reading the portgroup file, but you can 
also look at the existing portfiles that use muniversal to see what's possible.


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

Reply via email to