Freecad install path

Mark Brethen mark.brethen at gmail.com
Sun Jul 13 17:16:15 PDT 2014


On Jul 13, 2014, at 7:10 PM, Ryan Schmidt <ryandesign at macports.org> wrote:

> On Jul 13, 2014, at 6:54 PM, Mark Brethen wrote:
> 
>> On Jul 13, 2014, at 6:34 PM, Ryan Schmidt wrote:
>> 
>>> On Jul 13, 2014, at 5:31 PM, Mark Brethen wrote:
>>> 
>>>> 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
>> }
> 
> The links need to be created in the destroot.
> 
> post-destroot {
>   # link the executables back
> 
>   ln -s ${prefix}/bin/FreeCAD \
>       ${destroot}${prefix}/libexec/${name}/bin/FreeCAD
>   ln -s ${prefix}/bin/FreeCADCmd \
>       ${destroot}${prefix}/libexec/${name}/bin/FreeCADCmd
> }
> 

My source and targets were switched:

post-destroot {
    # link the executables back

    ln -s ${destroot}${prefix}/libexec/${name}/bin/FreeCAD \
        ${prefix}/bin
        
    ln -s ${destroot}${prefix}/libexec/${name}/bin/FreeCADCmd \
        ${prefix}/bin        
}

Mark






More information about the macports-dev mailing list