Changeset 99414


Ignore:
Timestamp:
Nov 4, 2012, 2:31:05 PM (12 years ago)
Author:
hum@…
Message:

jubatus: fix to install_name_tool for plugin libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/jubatus/Portfile

    r99409 r99414  
    4747
    4848post-destroot {
    49     set libdir   ${destroot}${prefix}/lib
     49    set libdir      ${destroot}${prefix}/lib
     50    set plugin_dir  ${libdir}/jubatus/plugin
    5051    foreach libname [glob -tails -directory ${libdir} *.dylib] {
    5152        system "install_name_tool -id ${prefix}/lib/${libname} ${libdir}/${libname}"
     53    }
     54    foreach libname [glob -tails -directory ${plugin_dir} *.dylib] {
     55        system "install_name_tool -id ${prefix}/lib/jubatus/plugin/${libname} ${plugin_dir}/${libname}"
    5256    }
    5357    # fix to install_name for installed libraries.
    5458    set bindir   ${destroot}${prefix}/bin
    5559    set builddir ${worksrcpath}/build/src
    56     foreach path [concat [glob ${libdir}/*.dylib] [glob ${bindir}/*]] {
     60    foreach path [concat [glob ${libdir}/*.dylib] [glob ${libdir}/jubatus/plugin/*.dylib] [glob ${bindir}/*]] {
    5761        set libpathes1 [regexp -all -inline {\S+\/libjuba\S+dylib \(}           [exec otool -L ${path}]]
    5862        set libpathes2 [regexp -all -inline {\S+\/fv_converter\/lib\S+dylib \(} [exec otool -L ${path}]]
Note: See TracChangeset for help on using the changeset viewer.