<div dir="auto"><div>Sadly xcode is needed even for something as simple as<div dir="auto">a media player, for example mpv, I wonder why actually.</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il lun 7 mar 2022, 12:38 Ryan Schmidt <<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Feb 26, 2022, at 12:04, Haren Samarasinghe wrote:<br>
<br>
> After reading the installation guide [1], quite a few people that I've introduced MacPorts to have thought that a full XCode installation is required. They're uncertain of doing this due to the large amount of space it requires.<br>
> <br>
> In reality, I'd say that the majority of ports only require the command line tools. In the scenarios where XCode is required for a port, the user is normally alerted to this.<br>
> <br>
> I was planning on changing the docs [1][2] to show that XCode isn't required, but I wanted to first check whether this would be an acceptable change.<br>
<br>
Yes that's a good idea.<br>
<br>
If the port you're installing (and its dependencies) are available as binaries, you do not need Xcode and you do not need the command line tools. MacPorts will just install the binaries. MacPorts will probably print warnings about Xcode and/or CLT being missing but in this case they can be ignored.<br>
<br>
If the port (or its dependencies) are not available as binaries, you'll probably need either Xcode or the command line tools. If you don't have them installed, you'll get warnings, and then probably a build failure.<br>
<br>
Some ports need Xcode to build. These are (hopefully) marked with "use_xcode yes". If you try to install such a port and you do not have Xcode installed, MacPorts will tell you to install it.<br>
<br>
</blockquote></div></div></div>