Ticket #36866: clhep_add_dylib.diff

File clhep_add_dylib.diff, 658 bytes (added by mojca (Mojca Miklavec), 12 years ago)

Add a symlink to unversionsed libCLHEP.dylib(.a)

  • Portfile

     
    66
    77name                clhep
    88version             2.1.2.5
     9revision            1
    910categories          science
    1011maintainers         pd.infn.it:cristiano.fontana
    1112license             LGPL-3
     
    2930    file mkdir ${configure.dir}
    3031}
    3132
     33post-destroot {
     34    # else Geant4 doesn't find the library
     35    # it would be nice to fix this upstream (either in CLHEP or Geant4)
     36    system "cd ${destroot}${prefix}/lib && ln -s libCLHEP-${version}.a     libCLHEP.a"
     37    system "cd ${destroot}${prefix}/lib && ln -s libCLHEP-${version}.dylib libCLHEP.dylib"
     38}
     39
    3240configure.post_args ${worksrcpath}
    3341
    3442post-build {