Changes between Version 5 and Version 6 of howto/buildUniversal


Ignore:
Timestamp:
Apr 11, 2013, 2:43:16 PM (11 years ago)
Author:
rogerdpack@…
Comment:

hopefully bring this up to date

Legend:

Unmodified
Added
Removed
Modified
  • howto/buildUniversal

    v5 v6  
    88== Introduction ==
    99
    10 Most ports in the MacPorts ports tree can use the +universal variant, which enables compiling the binaries for both PowerPC and Intel architectures. This means the resulting ports can be used on both Intel-based and PowerPC-based Macs. This HOWTO shows how to compile ports with the +universal variant. It also gives some indications as to how to use these ports on different machines, so as to compile ports only once, on the fastest of two machines, for instance.
     10Most ports in the MacPorts ports tree can use the +universal variant (even those that don't explicitly mention it), which enables compiling the binaries for both PowerPC and Intel architectures, or for i386 as well as x86_64, etc fat binaries. This means the resulting ports can be used on both Intel-based and PowerPC-based Macs, etc. This HOWTO shows how to compile ports with the +universal variant. It also gives some indications as to how to use these ports on different machines, so as to compile ports only once, on the fastest of two machines, for instance.
    1111
    1212== The +universal variant ==
     
    2525
    2626You can add +universal to your `/opt/local/etc/macports/variants.conf` to ask MacPorts to build all ports you install with that variant, without having to remember to type it at every install command. However, some ports have not yet been tested as universal binaries and may not build properly. Or they may build but then not work on the foreign architecture. For some ports the universal variant has been expressly disabled, either because no way has been found to make it possible, or because nobody has yet tried to make it possible. If you encounter such a port, you can search the Trac tickets and the mailing lists to see if this is already being addressed. If not, you can file a ticket.
     27
     28You can also edit your macports.conf file to specify which architectures a "universal" build targets, for instance, i386 and ppc64, etc.
    2729
    2830=== Using the ports on two different Macs ===