<div dir="ltr">Hello all,<div><br></div><div>I would like to announce that I have successfully included XCrySDen version 1.5.60 in the MacPorts package manager (<a href="http://www.macports.org">www.macports.org</a>) as of today: <a href="https://www.macports.org/ports.php?by=name&amp;substr=xcrysden">https://www.macports.org/ports.php?by=name&amp;substr=xcrysden</a>. This link can be added to the page at <a href="http://www.xcrysden.org/Download.html#__toc__1">http://www.xcrysden.org/Download.html#__toc__1</a>.  The code can be installed by &quot;port install xcrysden +x11&quot;. </div><div><br></div><div>Previously XCrySDen could not be included properly in MacPorts because the code only worked with a very old version of Mesa on MacOS; however now it can work with Mesa 10.5.4 (as well as with system OpenGL libraries), according to my tests on Yosemite (OSX 10.10.5). The key was the patch described by Hideyuki Kamisaka on Nov. 5, 2014 in this email list, namely setting &quot;-accum          false&quot; in the Togl options.</div><div><br></div><div>I have in the process also produced an updated version of the file system/Make.macosx-x11 for Make.sys, which had been produced many years ago and would not work on recent versions of MacOS. The new one is included below for any users who wish to build from source on MacOS. Tone, I recommend you replace the old file with this one in the next release.</div><div><br></div><div>Best,</div><div>David Strubbe</div><div><br></div><div><br></div><div><div>#########################################################################</div><div># System-dependent definitions for Mac OS X</div><div>#</div><div># David Strubbe 1 Oct. 2015</div><div># Tested on Yosemite, OSX 10.10.5</div><div># -----------------------------------------------------------------------</div><div>#</div><div># !!! EDIT ACCORDING TO YOUR OWN NEEDS !!!</div><div># In particular, you must specify:</div><div># FC (Fortran compiler)</div><div># TK_LIB and TCL_LIB (location of Tcl and Tk)</div><div># FFTW3_LIB and FFTW3_INCDIR (location of FFTW3 library and header)</div><div><br></div><div># Use of the MacPorts package manager (<a href="http://www.macports.org">www.macports.org</a>) and &#39;port install xcrysden&#39; is recommended</div><div># as an easier approach than using this file to build from source.</div><div># MacPorts can be used to obtain the dependencies: port install gcc5 tcl tk +x11 fftw-3</div><div># tk must have +x11 variant; a different version of gcc can be used instead if desired.</div><div><br></div><div># X11 and OpenGL from system are being used.</div><div><br></div><div>#------------------------------------------------------------------------</div><div># compilers &amp; flags</div><div>#------------------------------------------------------------------------</div><div>CFLAGS = -O3 -DUSE_INTERP_RESULT</div><div>CC     = cc</div><div>FFLAGS = -O3</div><div>FC     = gfortran-mp-5</div><div><br></div><div>#------------------------------------------------------------------------</div><div># X-libraries &amp; include files</div><div>#------------------------------------------------------------------------</div><div><br></div><div>X_LIB     = /opt/X11/lib/libXmu.dylib /opt/X11/lib/libX11.dylib /opt/X11/lib/libXext.dylib</div><div>X_INCDIR  = -I/opt/X11/include</div><div><br></div><div>COMPILE_TCLTK = no # generally will not compile without passing args to configure script</div><div>COMPILE_FFTW  = no # generally will not compile without passing args to configure script</div><div>COMPILE_MESA  = no</div><div>COMPILE_MESCHACH = no</div><div><br></div><div>#------------------------------------------------------------------------</div><div># Libraries and include files</div><div>#------------------------------------------------------------------------</div><div><br></div><div>TK_LIB      = /opt/local/lib/libtk.dylib</div><div>TCL_LIB     = /opt/local/lib/libtcl.dylib</div><div>GLU_LIB     = /opt/X11/lib/libGLU.dylib</div><div>GL_LIB      = /opt/X11/lib/libGL.dylib</div><div>FFTW3_LIB   = /opt/local/lib/libfftw3.dylib</div><div><br></div><div>GL_INCDIR    = -I/opt/X11/include</div><div>FFTW3_INCDIR = -I/opt/local/include</div></div><div><br></div></div>