0
|
1 <tool_dependency>
|
|
2 <package name="lapack" version="3.4.2">
|
|
3 <install version="1.0">
|
|
4 <actions>
|
|
5 <!-- first action is always downloading -->
|
|
6 <action type="download_by_url">http://www.netlib.org/lapack/lapack-3.4.2.tgz</action>
|
1
|
7
|
0
|
8 <action type="shell_command">cp INSTALL/make.inc.gfortran make.inc</action>
|
1
|
9 <action type="shell_command">sed -i '.tmp' 's/^OPTS\s.*/OPTS = -O2 -fPIC/g' make.inc</action>
|
|
10 <action type="shell_command">sed -i '.tmp' 's/^NOOPT\s.*/OPTS = -O2 -fPIC/g' make.inc</action>
|
0
|
11 <action type="shell_command">mkdir build</action>
|
|
12 <action type="shell_command">cd build && cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/lapack</action>
|
|
13 <action type="shell_command">cd build && make</action>
|
|
14 <action type="shell_command">cd build && make install</action>
|
|
15
|
|
16 <action type="set_environment">
|
|
17 <environment_variable name="LAPACK_LIB_DIR" action="set_to">$INSTALL_DIR/lapack/lib</environment_variable>
|
|
18 </action>
|
|
19 </actions>
|
|
20 </install>
|
|
21 <readme>LAPACK requires gcc and gfortran. LAPACK_LIB_DIR will be set (including liblapack.a and libblas.a). </readme>
|
|
22 </package>
|
|
23 </tool_dependency>
|