On Jul 13, 2014, at 7:16 PM, Mark Brethen wrote:

> On Jul 13, 2014, at 7:10 PM, Ryan Schmidt 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        
> }

The destination needs to be created in the destroot, pointing to where the 
source will be not in the destroot.

post-destroot {
   # link the executables back

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

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

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to