<div dir="ltr">Well, I was asking for anything huge like say pypy or ffmpeg or anything that takes hours to build. Is there some kind of preferences you can set for certain ports to request pre-built binaries only? Does macports automatically detect your build environment and just know which binaries to download and install?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 26, 2016 at 2:42 AM, Ryan Schmidt <span dir="ltr">&lt;<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On Mar 25, 2016, at 8:40 PM, Carlo Tambuatco wrote:<br>
<br>
&gt; I’m just curious if there’s a way to cross compile a port for a different machine than the current one you’re using, for say compiling something huge and copying it over to a much slower mac (also running macports) and then updating the corresponding portfiles, etc...<br>
<br>
</span>MacPorts isn&#39;t meant to be used that way. There are some variables that can be set in macports.conf to do cross-compiling, such as build_arch, universal_archs, macosx_deployment_target and macosx_sdk_version, but not all ports will build correctly if you change these. And certainly you should only change these if you have no ports installed. If you change the macosx_*_version settings from their defaults, you must also set &quot;buildfromsource always&quot;.<br>
<br>
Which ports specifically are you asking about? We have an automated build system which makes binaries for most ports, which should make compiling on your machine unnecessary in many cases. However, we don&#39;t make binaries for very old versions of OS X, nor for all combinations of variants, nor for all ports; some ports cannot be distributed as binaries, and other ports deliberately disable the use of binaries because they compile differently on different processors, and so must be compiled on the machine they will run on.<br>
<br>
<br>
</blockquote></div><br></div>