annotate tool_dependencies.xml @ 3:0538fd672119 draft

Uploaded
author iuc
date Thu, 16 Jul 2015 05:43:42 -0400
parents b36c9ee883e9
children f27d2f8761ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
597c0e54eded initial upload
iuc
parents:
diff changeset
1 <tool_dependency>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
2 <package name="atlas" version="3.10.2">
0
597c0e54eded initial upload
iuc
parents:
diff changeset
3 <install version="1.0">
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
4 <actions_group>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
5 <actions architecture="x86_64" os="linux">
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
6 <action type="download_by_url">https://depot.galaxyproject.org/package/linux/x86_64/atlas/atlas-3.10.2-Linux-x86_64.tar.gz</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
7 <action type="move_directory_files">
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
8 <source_directory>.</source_directory>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
9 <destination_directory>$INSTALL_DIR</destination_directory>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
10 </action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
11 <action type="set_environment">
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
12 <environment_variable action="set_to" name="ATLAS_LIB_DIR">$INSTALL_DIR/lib</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
13 <environment_variable action="set_to" name="ATLAS_INCLUDE_DIR">$INSTALL_DIR/include</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
14 <environment_variable action="set_to" name="ATLAS_BLAS_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
15 <environment_variable action="set_to" name="ATLAS_LAPACK_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
16 <environment_variable action="set_to" name="ATLAS_ROOT_PATH">$INSTALL_DIR</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
17 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
3
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
18 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib/atlas</environment_variable>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
19 </action>
3
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
20 <action type="shell_command"><![CDATA[
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
21 command -v gfortran || return 0
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
22 BUNDLED_LGF_CANON=$INSTALL_DIR/lib/libgfortran.so.3.0.0 &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
23 BUNDLED_LGF_VERS=`objdump -p $BUNDLED_LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
24 echo 'program test; end program test' > test.f90 &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
25 gfortran -o test test.f90 &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
26 LGF=`ldd test | grep libgfortran | awk '{print $3}'` &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
27 LGF_CANON=`readlink -f $LGF` &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
28 LGF_VERS=`objdump -p $LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
29 if [ $LGF_VERS -gt $BUNDLED_LGF_VERS ]; then
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
30 cp -p $BUNDLED_LGF_CANON ${BUNDLED_LGF_CANON}.bundled &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
31 cp -p $LGF_CANON $BUNDLED_LGF_CANON
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
32 fi
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
33 ]]></action>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
34 </actions>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
35 <actions architecture="x86_64" os="darwin">
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
36 <!-- NOOP: On OS X we will use Apple's vecLib -->
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
37 </actions>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
38 <actions>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
39 <action type="download_file">http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
40 <action type="download_file">http://www.netlib.org/lapack/lapack-3.5.0.tgz</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
41 <action type="download_file">https://depot.galaxyproject.org/patch/atlas/static_full_blas_lapack.diff</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
42 <action type="download_file">https://depot.galaxyproject.org/patch/atlas/shared_libraries.diff</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
43 <action type="download_file">https://depot.galaxyproject.org/patch/atlas/cpu-throttling-check.diff</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
44 <action type="shell_command">tar -jxvf atlas3.10.2.tar.bz2</action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
45 <!-- a 64-bit architecture is assumed for compilation -->
3
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
46 <action type="shell_command"><![CDATA[
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
47 cd ATLAS &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
48 mkdir ATLAS/build &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
49 patch -p1 </host/static_full_blas_lapack.diff &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
50 patch -p1 </host/shared_libraries.diff &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
51 patch -p1 </host/cpu-throttling-check.diff &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
52 cd build &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
53 ../configure --prefix="$INSTALL_DIR" -D c -DWALL -b 64 -Fa alg '-fPIC' --with-netlib-lapack-tarfile=../../lapack-3.5.0.tgz -v 2 -t 0 -Si cputhrchk 0 &&
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
54 make &&
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
55 make install
3
0538fd672119 Uploaded
iuc
parents: 2
diff changeset
56 ]]></action>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
57 <action type="set_environment">
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
58 <environment_variable action="set_to" name="ATLAS_LIB_DIR">$INSTALL_DIR/lib</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
59 <environment_variable action="set_to" name="ATLAS_INCLUDE_DIR">$INSTALL_DIR/include</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
60 <environment_variable action="set_to" name="ATLAS_BLAS_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
61 <environment_variable action="set_to" name="ATLAS_LAPACK_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
62 <environment_variable action="set_to" name="ATLAS_ROOT_PATH">$INSTALL_DIR</environment_variable>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
63 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
2
b36c9ee883e9 Uploaded
bgruening
parents: 1
diff changeset
64 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib/atlas</environment_variable>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
65 </action>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
66 </actions>
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
67 </actions_group>
0
597c0e54eded initial upload
iuc
parents:
diff changeset
68 </install>
1
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
69 <readme>Compiling ATLAS requires a C and Fortran compiler (typically gcc and gfortran). The base ATLAS installation path can be is exported as ATLAS_ROOT_PATH, libraries as ATLAS_LIB_DIR, and headers as ATLAS_INCLUDE_DIR.
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
70 This ATLAS build includes patches from the Debian ATLAS packages which enable additional features:
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
71 1. Shared versions of the standard ATLAS libraries are built in addition to the static versions
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
72 2. Full BLAS and LAPACK libraries are built, which can be found in the ATLAS_BLAS_LIB_DIR and ATLAS_LAPACK_LIB_DIR directories
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
73 This package also includes a bundled libgfortran and export LD_LIBRARY_PATH=$ATLAS_LIB_DIR so that any dependent packages which link to ATLAS will be able to resolve all necessary libraries at runtime.
37ff27ea37ed Uploaded
iuc
parents: 0
diff changeset
74 On Mac OS X, this package is a dummy package - BLAS and LAPACK libraries are already provided in Apple's vecLib.
0
597c0e54eded initial upload
iuc
parents:
diff changeset
75 </readme>
597c0e54eded initial upload
iuc
parents:
diff changeset
76 </package>
597c0e54eded initial upload
iuc
parents:
diff changeset
77 </tool_dependency>