source: issm/oecreview/Archive/19101-20495/ISSM-20191-20192.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 2.7 KB
RevLine 
[20498]1Index: ../trunk-jpl/externalpackages/chaco/install-macosx.sh
2===================================================================
3--- ../trunk-jpl/externalpackages/chaco/install-macosx.sh (revision 0)
4+++ ../trunk-jpl/externalpackages/chaco/install-macosx.sh (revision 20192)
5@@ -0,0 +1,55 @@
6+#!/bin/bash
7+set -eu
8+
9+# Some cleanup
10+rm -rf Chaco-2.2
11+rm -rf src
12+rm -rf install
13+mkdir src install
14+
15+#Download from ISSM server
16+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/Chaco-2.2.tar.gz' 'Chaco-2.2.tar.gz'
17+$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/docs/chaco_guide.pdf' 'chaco_guide.pdf'
18+
19+# Untar
20+tar -xvzf Chaco-2.2.tar.gz
21+
22+# Move chaco to src directory
23+mv Chaco-2.2/* src
24+rm -rf Chaco-2.2
25+
26+# Apply patches (all at once)
27+# (written by diff -rc src ~/Libs/Chaco-2.2 > chaco.patch)
28+patch -R -p0 < chaco.patch
29+
30+# Patch src/code/Makefile
31+patch ./src/code/Makefile ./patches/Makefile.patch
32+
33+
34+# Build chaco
35+cd src/code
36+if [ $# -eq 0 ]; then
37+ make
38+else
39+ make -j $1
40+fi
41+make chacominusblas.a
42+
43+# Clean up objects (but not library or executable)
44+make clean
45+cd ../..
46+
47+# Populate install directory
48+cp -p src/exec/README install
49+cp -p src/exec/User_Params install
50+cp -p src/exec/*.coords install
51+cp -p src/exec/*.graph install
52+mkdir install/include
53+cp -p src/code/main/defs.h install/include/defs.h
54+cp -p src/code/main/params.h install/include/params.h
55+cp -p chaco.h install/include/chaco.h
56+mkdir install/lib
57+mv src/code/chaco.a install/lib/libchaco.a
58+mv src/code/chacominusblas.a install/lib/libchacominusblas.a
59+mkdir install/exec
60+mv src/exec/chaco install/exec
61
62Property changes on: ../trunk-jpl/externalpackages/chaco/install-macosx.sh
63___________________________________________________________________
64Added: svn:executable
65 + *
66
67Index: ../trunk-jpl/externalpackages/chaco/patches/Makefile.patch
68===================================================================
69--- ../trunk-jpl/externalpackages/chaco/patches/Makefile.patch (revision 0)
70+++ ../trunk-jpl/externalpackages/chaco/patches/Makefile.patch (revision 20192)
71@@ -0,0 +1,11 @@
72+--- ./src/code/Makefile 2016-02-16 19:39:30.000000000 -0800
73++++ ./Makefile 2016-02-16 19:37:49.000000000 -0800
74+@@ -6,7 +6,7 @@
75+ #CFLAGS = -O2
76+ #OFLAGS = -O2
77+ #CFLAGS = -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE -pthread -fexceptions
78+-CFLAGS = -fPIC -fno-omit-frame-pointer -pthread -fexceptions -g
79++CFLAGS = -fPIC -fno-omit-frame-pointer -pthread -fexceptions -g -I/usr/include/malloc
80+ #CFLAGS = -fPIC -fno-omit-frame-pointer -pthread -fexceptions -DMATLAB
81+ OFLAGS = -O2
82+ #AR = /usr/ccs/bin/ar rcv # for solaris 2
Note: See TracBrowser for help on using the repository browser.