source: issm/oecreview/Archive/14312-15392/ISSM-15367-15368.diff

Last change on this file was 15393, checked in by Mathieu Morlighem, 12 years ago

NEW: adding Archive/14312-15392 for oecreview

File size: 1.1 KB
  • ../trunk-jpl/externalpackages/gdal/install-1.6-linux64-astrid.sh

     
    1 #!/bin/bash
    2 set -eu
    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 \
    23         --prefix="$ISSM_DIR/externalpackages/gdal/install" \
    24         --without-python \
    25         --without-png \
    26         --with-netcdf=no \
    27         --with-jasper=no \
    28         --without-ld-shared \
    29         --with-unix-stdio-64=no \
    30         --with-expat-lib=/usr/lib64/libexpat.so
    31 
    32 #Patch GDALmake.opt
    33 patch GDALmake.opt ../configs/GDALmake.opt.patch.astrid
    34 
    35 #Compile and install gdal
    36 if [ $# -eq 0 ]; then
    37         make
    38 else
    39         make -j $1
    40 fi
    41 make install
Note: See TracBrowser for help on using the repository browser.