Last change
on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13393
|
-
Property svn:executable
set to
*
|
File size:
730 bytes
|
Rev | Line | |
---|
[13223] | 1 | #!/bin/bash
|
---|
[13246] | 2 | set -eu
|
---|
[13223] | 3 |
|
---|
| 4 | #Some cleanup
|
---|
| 5 | rm -rf src
|
---|
| 6 | rm -rf install
|
---|
| 7 | rm -rf gdal-1.6.0
|
---|
| 8 | mkdir src install
|
---|
| 9 |
|
---|
| 10 | #Download from ISSM server
|
---|
| 11 | $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/gdal-1.6.0.tar.gz' 'gdal-1.6.0.tar.gz'
|
---|
| 12 |
|
---|
| 13 | #Untar
|
---|
| 14 | tar -zxvf gdal-1.6.0.tar.gz
|
---|
| 15 |
|
---|
| 16 | #Move gdal into src directory
|
---|
| 17 | mv gdal-1.6.0/* src
|
---|
| 18 | rm -rf gdal-1.6.0
|
---|
| 19 |
|
---|
| 20 | #Configure gdal
|
---|
| 21 | cd src
|
---|
| 22 | ./configure --prefix="$ISSM_DIR/externalpackages/gdal/install" \
|
---|
| 23 | --without-python \
|
---|
| 24 | --without-png \
|
---|
| 25 | --with-netcdf=no \
|
---|
| 26 | --with-jasper=no \
|
---|
| 27 | --without-ld-shared \
|
---|
| 28 | --with-unix-stdio-64=no
|
---|
| 29 |
|
---|
| 30 | #Patch GDALmake.opt
|
---|
| 31 | patch GDALmake.opt ../GDALmake.opt.patch
|
---|
| 32 |
|
---|
| 33 | #Compile and install gdal
|
---|
[13249] | 34 | if [ $# -eq 0 ]; then
|
---|
[13223] | 35 | make
|
---|
| 36 | else
|
---|
| 37 | make -j $1
|
---|
| 38 | fi
|
---|
| 39 | make install
|
---|
Note:
See
TracBrowser
for help on using the repository browser.