~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to mswindows/osgeo4w/gdal-config

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
 
 
4
CONFIG_LIBS="$OSGEO4W_ROOT_MSYS/lib/gdal_i.lib"
 
5
CONFIG_DEP_LIBS="$OSGEO4W_ROOT_MSYS/lib/libpng13.lib $OSGEO4W_ROOT_MSYS/lib/zlib.lib"
 
6
CONFIG_PREFIX="$OSGEO4W_ROOT_MSYS"
 
7
CONFIG_CFLAGS="-I$OSGEO4W_ROOT_MSYS/include"
 
8
CONFIG_VERSION="1.8.0"
 
9
CONFIG_OGR_ENABLED=yes
 
10
CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi idrisi bsb gif jpeg png pcraster "
 
11
usage()
 
12
{
 
13
        cat <<EOF
 
14
Usage: gdal-config [OPTIONS]
 
15
Options:
 
16
        [--prefix[=DIR]]
 
17
        [--libs]
 
18
        [--dep-libs]
 
19
        [--cflags]
 
20
        [--version]
 
21
        [--ogr-enabled]
 
22
        [--formats]
 
23
EOF
 
24
        exit $1
 
25
}
 
26
 
 
27
if test $# -eq 0; then
 
28
        usage 1 1>&2
 
29
fi
 
30
 
 
31
case $1 in 
 
32
  --libs)
 
33
    echo $CONFIG_LIBS
 
34
    ;;
 
35
 
 
36
  --dep-libs)
 
37
    echo $CONFIG_DEP_LIBS
 
38
    ;;
 
39
 
 
40
  --cflags)
 
41
    echo $CONFIG_CFLAGS
 
42
    ;;
 
43
 
 
44
  --prefix)
 
45
    echo $CONFIG_PREFIX
 
46
    ;;
 
47
 
 
48
  --version)
 
49
    echo $CONFIG_VERSION
 
50
    ;;
 
51
 
 
52
  --ogr-enabled)
 
53
    echo $CONFIG_OGR_ENABLED
 
54
    ;;
 
55
 
 
56
  --formats)
 
57
    echo $CONFIG_FORMATS
 
58
    ;;
 
59
 
 
60
  *)
 
61
    usage 1 1>&2
 
62
    ;;
 
63
 
 
64
esac