<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" class="">From their installation guide:</span></div><div class=""><span style="font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class="">
                
        
        
                <div class="page" title="Page 11">
                        <div class="layoutArea">
                                <div class="column"><p class=""><font face="Times" size="3" class="">For the compilation of cgx, therefore, the unmodified GCC 4.9 is required because the modified (by Apple) GCC for several reasons is not suitable for the compilation
of cgx&nbsp;…&nbsp;</font><span style="font-size: 12pt; font-family: Times;" class="">The
modified GCC includes the individual compilers: gcc (GNU c compiler), g++ and clang.
Because the modified GCC has a problem with function overloading it is not suitable for
the </span><span style="font-size: 8pt; font-family: Times; vertical-align: 5pt;" class="">2</span><span style="font-size: 12pt; font-family: Times;" class="">compilation of cgx.</span></p><div class="">
                
        
        
                <div class="page" title="Page 13">
                        <div class="layoutArea">
                                <div class="column"><p class=""><span style="font-size: 6.000000pt; font-family: 'Times'; vertical-align: 3.000000pt" class="">2</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">In particular, the compilation of function: #define abs(x) ((x) &gt;= 0 ? (x) : -(x)) in the cgx-routine: </span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">“</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">extUtil.h</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">“
</span><span style="font-size: 10.000000pt; font-family: 'Times'" class="">causes a compiler error. A bug fix for the compiler was not available at the time the installation of cgx was
tested.&nbsp;</span></p>
                                </div>
                        </div>
                </div></div><div class="page" title="Page 13"><div class="layoutArea"><div class="column">
                
        
        
                <div class="page" title="Page 21">
                        <div class="layoutArea">
                                <div class="column"><p class=""><br class=""></p></div></div></div></div></div></div></div></div></div></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class="">I have looked at that link but it doesn’t explain how, for example, to set a default compiler. The compilers group gives more instruction, but it’s not completely clear to me. I guess something like</span></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class="">compilers.choose &nbsp; &nbsp;cc&nbsp;</span>cxx cpp</font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><a href="http://configure.cc" class="">configure.cc</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span>macports-gcc-4.9</font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><br class=""></font></div><div class=""><font face="Lucida Grande, Verdana, Arial, Helvetica, sans-serif" size="2" class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></font><div><blockquote type="cite" class=""><div class="">On Apr 1, 2016, at 11:59 PM, Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On Apr 1, 2016, at 23:03, Mark Brethen &lt;<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>&gt; wrote:<br class=""><br class="">I’ve run into a snag building calculix. glut and libSNL are libraries that calculix uses. I set<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">"compiler.whitelist &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;macports-gcc-4.9”<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">per the developers instructions.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Why? We usually do not want to use FSF GCC.<span class="Apple-converted-space">&nbsp;</span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">However there isn’t a configure so I’m not sure what else needs to be passed.<br class=""><br class="">subport ${name}-cgx {<br class="">&nbsp;&nbsp;revision &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0<br class="">&nbsp;&nbsp;master_sites &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.dhondt.de/" class="">http://www.dhondt.de/</a><br class="">&nbsp;&nbsp;distname &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cgx_${version}.all<br class=""><br class="">&nbsp;&nbsp;checksums &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rmd160 &nbsp;02302101f16c2b4cdd570e81986cc4d36c2110d8 \<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sha256 64810dab1c22152c7946282fac5763cc36b9e31e309f962c23b8bf8238537c7e<br class=""><br class="">&nbsp;&nbsp;depends_run-append &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;port:openbrowser<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">&nbsp;&nbsp;worksrcdir &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CalculiX<br class="">&nbsp;&nbsp;build.dir &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${worksrcpath}/cgx_${version}/src<br class="">&nbsp;&nbsp;build.target &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br class=""><br class="">&nbsp;&nbsp;compiler.whitelist &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;macports-gcc-4.9<br class=""><br class="">&nbsp;&nbsp;patchfiles &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;patch-cgx-build.diff \<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;patch-libSNL-build.diff<br class="">&nbsp;&nbsp;patch.dir &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${workpath}<br class=""><br class="">&nbsp;&nbsp;post-patch {<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reinplace "s|@@PREFIX@@|${prefix}|g" \<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${worksrcpath}/cgx_${version}/src/cgx.h<br class="">&nbsp;&nbsp;}<br class=""><br class="">&nbsp;&nbsp;use_configure &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;no<br class=""><br class="">livecheck.regex &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ccx_${version}.all}<br class="">}<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">When you set "use_configure no", you must add code to use the right compiler and -arch flags and offer a universal variant. See:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://trac.macports.org/wiki/UsingTheRightCompiler" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://trac.macports.org/wiki/UsingTheRightCompiler</a></div></div></blockquote></div><br class=""></div></body></html>