html and postscript viewer
Mark Brethen
mark.brethen at gmail.com
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
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}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 112011 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160401/f8ed16e7/attachment-0001.obj>
-------------- next part --------------
> On Apr 1, 2016, at 7:27 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Apr 1, 2016, at 19:03, Mark Brethen <mark.brethen at gmail.com> 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