changeset 0:98a7d116c15f draft

initial upload
author iuc
date Sun, 11 Aug 2013 06:27:58 -0400
parents
children 5686c79a72d5
files tool_dependencies.xml
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Sun Aug 11 06:27:58 2013 -0400
@@ -0,0 +1,21 @@
+<tool_dependency>
+    <package name="lapack" version="3.4.2">
+        <install version="1.0">
+            <actions>
+                <!-- first action is always downloading -->
+                <action type="download_by_url">http://www.netlib.org/lapack/lapack-3.4.2.tgz</action>
+
+                <action type="shell_command">sed 's/^OPTS\s.*/OPTS     = -O2 -fPIC/g' INSTALL/make.inc.gfortran  | sed  's/^NOOPT\s.*/OPTS     = -O2 -fPIC/g'  > make.inc</action>
+                <action type="shell_command">mkdir build</action>
+                <action type="shell_command">cd build &amp;&amp; cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/lapack</action>
+                <action type="shell_command">cd build &amp;&amp; make</action>
+                <action type="shell_command">cd build &amp;&amp; make install</action>
+
+                <action type="set_environment">
+                    <environment_variable name="LAPACK_LIB_DIR" action="set_to">$INSTALL_DIR/lapack/lib</environment_variable>
+                </action>
+            </actions>
+        </install>
+        <readme>LAPACK requires gcc and gfortran. LAPACK_LIB_DIR will be set (including liblapack.a and libblas.a). </readme>
+    </package>
+</tool_dependency>