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
}

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

Reply via email to