Changeset 97809


Ignore:
Timestamp:
Sep 16, 2012, 3:12:56 PM (12 years ago)
Author:
hum@…
Message:

ux-trie: fix to change install_name for installed libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/ux-trie/Portfile

    r87890 r97809  
    66name                ux-trie
    77version             0.1.8
    8 revision            1
     8revision            2
    99categories          textproc
    1010platforms           darwin
     
    3737    set libpath  ${prefix}/lib/libux.dylib
    3838    set builddir ${worksrcpath}/build/src
    39     system "install_name_tool -id     ${libpath}                         ${destroot}${libpath}"
    40     system "install_name_tool -change ${builddir}/libux.dylib ${libpath} ${destroot}${prefix}/bin/ux"
     39    set bin      ${destroot}${prefix}/bin/ux
     40    regexp {(\S+\/libux\S+dylib)} [exec otool -L ${bin}] path
     41    system "install_name_tool -id     ${libpath} ${destroot}${libpath}"
     42    system "install_name_tool -change ${path}    ${libpath} ${bin}"
    4143}
Note: See TracChangeset for help on using the changeset viewer.