[99414] trunk/dports/devel/jubatus/Portfile
hum at macports.org
hum at macports.org
Sun Nov 4 06:31:05 PST 2012
Revision: 99414
http://trac.macports.org//changeset/99414
Author: hum at macports.org
Date: 2012-11-04 06:31:05 -0800 (Sun, 04 Nov 2012)
Log Message:
-----------
jubatus: fix to install_name_tool for plugin libraries.
Modified Paths:
--------------
trunk/dports/devel/jubatus/Portfile
Modified: trunk/dports/devel/jubatus/Portfile
===================================================================
--- trunk/dports/devel/jubatus/Portfile 2012-11-04 14:29:04 UTC (rev 99413)
+++ trunk/dports/devel/jubatus/Portfile 2012-11-04 14:31:05 UTC (rev 99414)
@@ -46,14 +46,18 @@
destroot.destdir
post-destroot {
- set libdir ${destroot}${prefix}/lib
+ set libdir ${destroot}${prefix}/lib
+ set plugin_dir ${libdir}/jubatus/plugin
foreach libname [glob -tails -directory ${libdir} *.dylib] {
system "install_name_tool -id ${prefix}/lib/${libname} ${libdir}/${libname}"
}
+ foreach libname [glob -tails -directory ${plugin_dir} *.dylib] {
+ system "install_name_tool -id ${prefix}/lib/jubatus/plugin/${libname} ${plugin_dir}/${libname}"
+ }
# fix to install_name for installed libraries.
set bindir ${destroot}${prefix}/bin
set builddir ${worksrcpath}/build/src
- foreach path [concat [glob ${libdir}/*.dylib] [glob ${bindir}/*]] {
+ foreach path [concat [glob ${libdir}/*.dylib] [glob ${libdir}/jubatus/plugin/*.dylib] [glob ${bindir}/*]] {
set libpathes1 [regexp -all -inline {\S+\/libjuba\S+dylib \(} [exec otool -L ${path}]]
set libpathes2 [regexp -all -inline {\S+\/fv_converter\/lib\S+dylib \(} [exec otool -L ${path}]]
foreach libpath [concat ${libpathes1} ${libpathes2}] {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121104/8ba4a5ce/attachment-0001.html>
More information about the macports-changes
mailing list