> On Apr 1, 2016, at 23:03, Mark Brethen <[email protected]> wrote:
>
> 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.
Why? We usually do not want to use FSF GCC.
> However there isn’t a configure so I’m not sure what else needs to be passed.
>
> subport ${name}-cgx {
> revision 0
> master_sites http://www.dhondt.de/
> distname cgx_${version}.all
>
> checksums rmd160 02302101f16c2b4cdd570e81986cc4d36c2110d8 \
> sha256
> 64810dab1c22152c7946282fac5763cc36b9e31e309f962c23b8bf8238537c7e
>
> depends_run-append port:openbrowser
>
> worksrcdir CalculiX
> build.dir ${worksrcpath}/cgx_${version}/src
> build.target
>
> compiler.whitelist macports-gcc-4.9
>
> patchfiles patch-cgx-build.diff \
> patch-libSNL-build.diff
> patch.dir ${workpath}
>
> post-patch {
> reinplace "s|@@PREFIX@@|${prefix}|g" \
> ${worksrcpath}/cgx_${version}/src/cgx.h
> }
>
> use_configure no
>
> livecheck.regex {ccx_${version}.all}
> }
When you set "use_configure no", you must add code to use the right compiler
and -arch flags and offer a universal variant. See:
https://trac.macports.org/wiki/UsingTheRightCompiler
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev