Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv5899/10.7/stable/main/finkinfo/sci

Modified Files:
        control-oct.info 
Log Message:
Fix build against -atlas variant.

Index: control-oct.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci/control-oct.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- control-oct.info    11 Jan 2012 01:14:24 -0000      1.7
+++ control-oct.info    11 Jan 2012 21:32:01 -0000      1.8
@@ -152,9 +152,18 @@
 #### Insert required changes here ####
 
 SourceDirectory: %type_pkg[forge]
-#TODO: fix FLIBS in Octave.
-PatchScript: perl -pi -e 's|\$.*mkoctfile.*FLIBS.*|"-L%p/lib/gcc4.6/lib 
-lgfortran"|' src/Makefile
-
+#TODO: fix FLIBS, BLAS_LIBS, and LAPACK_LIBS in Octave.
+PatchScript: <<
+#!/bin/sh -ev
+# all variants
+perl -pi -e 's|\$.*mkoctfile.*FLIBS.*|"-L%p/lib/gcc4.6/lib -lgfortran"|' 
src/Makefile
+# only -atlas
+if [ "x" != "x"`mkoctfile -p LAPACK_LIBS | grep dylib` ]
+       then perl -pi -e   's|^LAPACK_LIBS.*|LAPACK_LIBS = "-L%p/lib -llapack"|;
+                                               s|^BLAS_LIBS.*|BLAS_LIBS = 
"-L%p/lib -lf77blas -lcblas"|' \
+                                                       src/Makefile
+fi
+<<
 ######################################
 
 # Do not change anything from this point down, unless absolutely necessary,


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to