Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/sci
In directory 
sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23461/10.4-stable/main/finkinfo/sci

Modified Files:
        tmv0.info 
Added Files:
        tmv0.patch 
Log Message:
fix install_name


Index: tmv0.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/sci/tmv0.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tmv0.info   6 Mar 2012 15:12:53 -0000       1.1
+++ tmv0.info   11 Aug 2013 18:27:51 -0000      1.2
@@ -1,6 +1,6 @@
 Package: tmv0
 Version: 0.71
-Revision: 1
+Revision: 12
 Description: Template Matrix/Vector library for C++
 HomePage: http://tmv-cpp.googlecode.com/
 License: GPL
@@ -17,12 +17,17 @@
     # Note: The above two parameters should mean that the MAKEFILES 
     # environment variable only has '-jN'.  This has the same meaning for 
     # scons, but scons doesn't use MAKEFLAGS, so put it here explicitly.
-    scons SHARED=true $MAKEFLAGS
+    scons SHARED=true PREFIX=%p $MAKEFLAGS
 <<
 InstallScript: <<
     # Use -j1 to prevent Scons script from automatically detecting and using 
     # the number of cpus 
     scons install PREFIX=%i FINAL_PREFIX=%p IMPORT_PREFIX=false -j1
+
+    # see https://code.google.com/p/tmv-cpp/issues/detail?id=7
+    # Ugly-hack to work around scons being such a mess! --dmacks
+    install_name_tool -id %p/lib/libtmv.0.dylib %i/lib/libtmv.0.dylib
+    install_name_tool -change %b/lib/libtmv.0.dylib %p/lib/libtmv.0.dylib 
%i/lib/libtmv_symband.0.dylib
 <<
 DocFiles: README CHANGELOG LICENSE doc/TMV_Documentation.pdf
 SplitOff: <<

--- NEW FILE: tmv0.patch ---
diff -Nurd -x'*~' tmv0.71.orig/src/SConscript tmv0.71/src/SConscript
--- tmv0.71.orig/src/SConscript 2012-03-06 02:15:42.000000000 -0500
+++ tmv0.71/src/SConscript      2013-08-11 06:35:18.000000000 -0400
@@ -107,9 +107,9 @@
         #lib_full_name = 
os.path.join(GetBuildPath('#lib'),'libtmv.%s.%s.dylib'%version)
         lib_short_name = 
os.path.join(GetBuildPath('#lib'),'libtmv.%s.dylib'%version[0])
         link_name = os.path.join(GetBuildPath('#lib'),'libtmv.dylib')
-        #print 'lib_final_name = ',lib_final_name
-        #print 'lib_short_name = ',lib_short_name
-        #print 'link_name = ',link_name
+        print 'lib_final_name = ',lib_final_name
+        print 'lib_short_name = ',lib_short_name
+        print 'link_name = ',link_name
         env1.AppendUnique( SHLINKFLAGS=[
             '-dynamic',
             '-Wl,-install_name,%s'%lib_final_name,


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to