html and postscript viewer

Mark Brethen mark.brethen at
Fri Apr 1 21:03:28 PDT 2016

I’ve run into a snag building calculix. glut and libSNL are libraries that calculix uses. I set 

"compiler.whitelist      macports-gcc-4.9” 

per the developers instructions. However there isn’t a configure so I’m not sure what else needs to be passed.

subport ${name}-cgx {
    revision                0
    distname                cgx_${version}.all
    checksums               rmd160  02302101f16c2b4cdd570e81986cc4d36c2110d8 \
        sha256  64810dab1c22152c7946282fac5763cc36b9e31e309f962c23b8bf8238537c7e

    depends_run-append      port:openbrowser 

    worksrcdir              CalculiX
    build.dir               ${worksrcpath}/cgx_${version}/src            
    compiler.whitelist      macports-gcc-4.9
    patchfiles              patch-cgx-build.diff \
    patch.dir               ${workpath}

    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|g" \

    use_configure           no
livecheck.regex         {ccx_${version}.all}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 112011 bytes
Desc: not available
URL: <>
-------------- next part --------------

> On Apr 1, 2016, at 7:27 PM, Ryan Schmidt <ryandesign at> wrote:
> On Apr 1, 2016, at 19:03, Mark Brethen <mark.brethen at> wrote:
>> Would someone look at the patch file and comment if okay or needs changes.
> You should remove -L/usr/X11R6/lib; we don't want to get any libraries from there. We want to use the versions installed in ${prefix} by MacPorts. 
> You should replace "g++" not with "$(CC)" but with "$(CXX)". 

More information about the macports-dev mailing list