Freecad install path
Mark Brethen
mark.brethen at gmail.com
Sun Jul 13 16:54:29 PDT 2014
On Jul 13, 2014, at 6:34 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Jul 13, 2014, at 5:31 PM, Mark Brethen wrote:
>
>> On Jul 13, 2014, at 5:25 PM, Mark Brethen wrote:
>>
>>> FreeCAD assumes that the Data, Doc and Mod directories are at the same level as the bin directory, which violate the port file sytem. So I propose to install freecad instead with:
>>>
>>> -DCMAKE_INSTALL_PREFIX=${prefix}/lib/${name} \
>>> -DCMAKE_INSTALL_MANDIR=${prefix}/share/man \
>>> -DCMAKE_INSTALL_INFODIR=${prefix}/share/info \
>>> -DCMAKE_INSTALL_DATADIR=${prefix}/share/${name} \
>>> -DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include/${name} \
>>> -DCMAKE_INSTALL_DOCDIR=${prefix}/share/doc/${name}
>>>
>>> Does the cmake portgroup augment/interfere with these variables?
>
> The cmake portgroup does have some configure args of its own; read the portgroup file to know more. Append to configure.args, rather than overwriting them entirely.
>
>
>> I forgot to mention that the FreeCAD executable would be located in /opt/local/lib/freecad/bin and then it is necessary to symlink it to /opt/local/bin. Is this possible?
>
> libexec would be a better choice for this than lib, but yes, that would be ok.
>
Someone please check my links; it takes awhile to build, so I don't want to do it over:
post-destroot {
# link the executables back
ln -s ${prefix}/bin/FreeCAD \
${prefix}/libexec/${name}/bin/FreeCAD
ln -s ${prefix}/bin/FreeCADCmd \
${prefix}/libexec/${name}/bin/FreeCADCmd
}
Thanks
Mark
More information about the macports-dev
mailing list