title: Installing SDL 2 with Macports; Is X11 a dependency?
body: <p>I am in the process of installing SDL 2 on Mac OSX 10.9 via macports, and for reference I have been following the official documentation as well as any sdl-specific information I can find.</p>
  
  <p><a href="https://guide.macports.org/" rel="nofollow noreferrer">https://guide.macports.org/</a> is straight-forward, as is: </p>
  
  <p><a href="https://guide.macports.org/#using.variants.invoking" rel="nofollow noreferrer">https://guide.macports.org/#using.variants.invoking</a></p>
  
  <p>I see that sdl2lib is available...</p>
  
  <pre><code>libsdl2 has the variants:
  universal: Build for multiple architectures
  x11: Enable X11 support
  </code></pre>
  
  <p>but despite having looked through pages at the above links and having searched for documentation for "SDL with X11", I can't seem to find information about whether I <em>need</em> X11 (and/or universal AKA powerpc) support. I wouldn't want to install SDL only to find that something is broken or missing.
  Then again, there were some issues with X11 being enabled by default back when Mac OSX 10.1 was new:
  <a href="https://forums.libsdl.org/viewtopic.php?t=2871&amp;sid=52ca72a72c285196dd25fd8619715ae9" rel="nofollow noreferrer">https://forums.libsdl.org/viewtopic.php?t=2871&amp;sid=52ca72a72c285196dd25fd8619715ae9</a></p>
  
  <p>(That is another problem: much of the information I discover applies to outdated operating systems.)</p>
  
  <p>Apparently SDL wasn't thread-safe at one point unless you used X11, but this was mentioned when SDL verson 1 was the main version:
  <a href="http://forum.freegamedev.net/viewtopic.php?f=3&amp;t=1078" rel="nofollow noreferrer">http://forum.freegamedev.net/viewtopic.php?f=3&amp;t=1078</a></p>
  
  <p>How am I meant to proceed (Which flags, if any, are usually chosen?)</p>
  
  <pre><code>port install libsdl2 &lt;???&gt;
  </code></pre>
  
  <p>I would appreciate any help and follow-up warnings for the next stepsinstallation steps.
  Thank you in advance.</p>