This file is indexed.

/usr/bin/mapnik-config is in libmapnik2-dev 2.0.0+ds1-3build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#!/bin/sh

## variables

CONFIG_PREFIX=/usr
CONFIG_MAPNIK_LIBNAME=mapnik2
CONFIG_MAPNIK_INCLUDE=${CONFIG_PREFIX}/include
CONFIG_MAPNIK_LIB=${CONFIG_PREFIX}/lib
CONFIG_MAPNIK_VERSION='2.0.0'
CONFIG_MAPNIK_LDFLAGS=' -L/usr/lib -L/usr/lib/x86_64-linux-gnu'
CONFIG_DEP_LIBS='  -lfreetype -lltdl -lpng -ltiff -lz -ljpeg -lproj -licuuc -lboost_filesystem -lboost_regex -lxml2 -lboost_thread -lboost_system -lcairomm-1.0 -lcairo -lsigc-2.0'
CONFIG_OTHER_INCLUDES=' -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -DHAVE_CAIRO -DLIBTOOL_SUPPORTS_ADVISE -DHAVE_LIBXML2  -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include'
CONFIG_FONTS='/usr/share/fonts/truetype/ttf-dejavu'
CONFIG_INPUT_PLUGINS='/usr/lib/mapnik/2.0/input'
CONFIG_SVN_REVISION='None'

CONFIG_JSON="{
  \"prefix\": \"${CONFIG_PREFIX}\",
  \"mapnik_libname\": \"${CONFIG_MAPNIK_LIBNAME}\",
  \"mapnik_include\": \"${CONFIG_MAPNIK_INCLUDE}\",
  \"mapnik_lib\": \"${CONFIG_MAPNIK_LIB}\",
  \"version\": \"${CONFIG_MAPNIK_VERSION}\",
  \"ldflags\": \"${CONFIG_MAPNIK_LDFLAGS}\",
  \"dep_libs\": \"${CONFIG_DEP_LIBS}\",
  \"other_includes\": \"${CONFIG_OTHER_INCLUDES}\",
  \"fonts\": \"${CONFIG_FONTS}\",
  \"input_plugins\": \"${CONFIG_INPUT_PLUGINS}\",
  \"svn_revision\": ${CONFIG_SVN_REVISION}
}"


## program below

usage()
{
    cat <<EOF
Usage: mapnik-config [OPTION]

Known values for OPTION are:

  --prefix          display mapnik prefix [default $CONFIG_PREFIX]
  --prefix=DIR      change mapnik prefix [default $CONFIG_PREFIX]
  --libs            print library linking information
  --dep-libs        print library linking information for mapnik depedencies
  --ldflags         print library paths (-L) information
  --cflags          print pre-processor and compiler flags
  --fonts           print default fonts directory
  --input-plugins   print default input plugins directory
  --json            print all config options as json object
  --help            display this help and exit
  -v --version      output version information
  --svn-revision    output svn revision information
EOF

    exit $1
}

if test $# -eq 0; then
    usage 1
fi

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case "$1" in
    
    --prefix=*)
      prefix=$optarg
      includedir=$CONFIG_PREFIX/include
      CONFIG_MAPNIK_LIB=$CONFIG_PREFIX/lib
      ;;

    --prefix)
      echo $CONFIG_PREFIX
      ;;

    -v)
      echo $CONFIG_VERSION
      ;;

    --version)
      echo $CONFIG_VERSION
      ;;

    --json)
      echo $CONFIG_JSON
      ;;

    --svn-revision)
      echo ${CONFIG_SVN_REVISION}
      ;;

    --help)
      usage 0
      ;;

    --fonts)
      echo ${CONFIG_FONTS} 
      ;;

    --input-plugins)
      echo ${CONFIG_INPUT_PLUGINS} 
      ;;
      
    --cflags)
      echo -I${CONFIG_MAPNIK_INCLUDE} ${CONFIG_OTHER_INCLUDES}
      ;;

    --libs)
      echo -L${CONFIG_MAPNIK_LIB} -l${CONFIG_MAPNIK_LIBNAME}
      ;;

    --ldflags)
      echo ${CONFIG_MAPNIK_LDFLAGS}
      ;;

    --lib-name)
      echo ${CONFIG_MAPNIK_LIBNAME}
      ;;

    --dep-libs)
      echo ${CONFIG_DEP_LIBS}
      ;;

    *)
  # if no matches, return 'usage 1' meaning usage + 1 (error return type)
  usage 1
  exit 1
  ;;
    esac
    shift
done

exit 0