2011-08-13 17:07:05 +00:00
|
|
|
|
|
|
|
## program below
|
|
|
|
|
2010-07-18 21:34:08 +00:00
|
|
|
usage()
|
|
|
|
{
|
|
|
|
cat <<EOF
|
|
|
|
Usage: mapnik-config [OPTION]
|
|
|
|
|
|
|
|
Known values for OPTION are:
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
-h --help display this help and exit
|
2013-05-10 20:45:18 +00:00
|
|
|
-v --version version information (MAPNIK_VERSION_STRING)
|
2013-05-21 21:09:49 +00:00
|
|
|
--version-number version number (MAPNIK_VERSION) (new in 2.2.0)
|
2013-03-14 02:49:59 +00:00
|
|
|
--git-revision git hash from "git rev-list --max-count=1 HEAD"
|
2013-05-21 21:09:49 +00:00
|
|
|
--git-describe git decribe output (new in 2.2.0)
|
2013-03-14 02:49:59 +00:00
|
|
|
--fonts default fonts directory
|
|
|
|
--input-plugins default input plugins directory
|
2013-05-21 21:09:49 +00:00
|
|
|
--defines pre-processor defines for Mapnik build (new in 2.2.0)
|
2013-03-14 02:49:59 +00:00
|
|
|
--prefix Mapnik prefix [default $CONFIG_PREFIX]
|
|
|
|
--lib-name Mapnik library name
|
|
|
|
--libs library linking information
|
|
|
|
--dep-libs library linking information for Mapnik dependencies
|
|
|
|
--ldflags library paths (-L) information
|
2013-05-21 21:09:49 +00:00
|
|
|
--includes include paths (-I) for Mapnik headers (new in 2.2.0)
|
|
|
|
--dep-includes include paths (-I) for Mapnik dependencies (new in 2.2.0)
|
|
|
|
--cxxflags c++ compiler flags and pre-processor defines (new in 2.2.0)
|
2013-03-19 07:15:04 +00:00
|
|
|
--cflags all include paths, compiler flags, and pre-processor defines (for back-compatibility)
|
2013-05-21 21:09:49 +00:00
|
|
|
--cxx c++ compiler used to build mapnik (new in 2.2.0)
|
|
|
|
--all-flags all compile and link flags (new in 2.2.0)
|
2017-09-10 15:19:04 +00:00
|
|
|
--gdal-data path to GDAL_DATA directory, if detected at build time (new in 3.0.16)
|
|
|
|
--proj-lib path to PROJ_LIB directory, if detected at build time (new in 3.0.16)
|
|
|
|
--icu-data path to ICU_DATA directory, if detected at build time (new in 3.0.16)
|
2010-07-18 21:34:08 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
exit $1
|
|
|
|
}
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
echoerr() { echo "$@" 1>&2; }
|
|
|
|
|
2010-07-18 21:34:08 +00:00
|
|
|
if test $# -eq 0; then
|
|
|
|
usage 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
while test $# -gt 0; do
|
|
|
|
case "$1" in
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$1" in
|
2011-10-18 22:22:47 +00:00
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--help)
|
|
|
|
usage 0
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
-h)
|
|
|
|
usage 0
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
-v)
|
2013-05-10 20:45:18 +00:00
|
|
|
echo ${CONFIG_MAPNIK_VERSION_STRING}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
--version)
|
2013-05-10 20:45:18 +00:00
|
|
|
echo ${CONFIG_MAPNIK_VERSION_STRING}
|
|
|
|
;;
|
|
|
|
|
|
|
|
--version-number)
|
|
|
|
echo ${CONFIG_MAPNIK_VERSION}
|
2011-08-13 17:07:05 +00:00
|
|
|
;;
|
|
|
|
|
2011-10-18 22:22:47 +00:00
|
|
|
--git-revision)
|
|
|
|
echo ${CONFIG_GIT_REVISION}
|
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--git-describe)
|
|
|
|
echo ${CONFIG_GIT_DESCRIBE}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
--fonts)
|
2011-10-18 22:22:47 +00:00
|
|
|
echo ${CONFIG_FONTS}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
2010-11-15 22:14:43 +00:00
|
|
|
--input-plugins)
|
2011-10-18 22:22:47 +00:00
|
|
|
echo ${CONFIG_INPUT_PLUGINS}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
2011-10-18 22:22:47 +00:00
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--defines)
|
|
|
|
echo ${CONFIG_MAPNIK_DEFINES}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--prefix)
|
|
|
|
echo ${CONFIG_PREFIX}
|
|
|
|
;;
|
|
|
|
|
|
|
|
--lib-name)
|
|
|
|
echo ${CONFIG_MAPNIK_LIBNAME}
|
2013-03-03 04:17:03 +00:00
|
|
|
;;
|
|
|
|
|
2010-07-18 21:34:08 +00:00
|
|
|
--libs)
|
2013-03-15 20:31:10 +00:00
|
|
|
echo -L${CONFIG_MAPNIK_LIBPATH} -l${CONFIG_MAPNIK_LIBNAME}
|
2011-08-13 17:07:05 +00:00
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--dep-libs)
|
|
|
|
echo ${CONFIG_DEP_LIBS}
|
|
|
|
;;
|
|
|
|
|
2011-08-13 17:07:05 +00:00
|
|
|
--ldflags)
|
|
|
|
echo ${CONFIG_MAPNIK_LDFLAGS}
|
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--includes)
|
|
|
|
echo -I${CONFIG_MAPNIK_INCLUDE}
|
2011-08-13 17:07:05 +00:00
|
|
|
;;
|
|
|
|
|
2013-03-14 02:49:59 +00:00
|
|
|
--dep-includes)
|
|
|
|
echo ${CONFIG_DEP_INCLUDES}
|
|
|
|
;;
|
|
|
|
|
|
|
|
--cxxflags)
|
|
|
|
echo ${CONFIG_CXXFLAGS}
|
|
|
|
;;
|
|
|
|
|
|
|
|
--cflags)
|
2013-03-19 07:15:04 +00:00
|
|
|
echo -I${CONFIG_MAPNIK_INCLUDE} ${CONFIG_DEP_INCLUDES} ${CONFIG_MAPNIK_DEFINES} ${CONFIG_CXXFLAGS}
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
|
2013-05-10 20:24:41 +00:00
|
|
|
--cxx)
|
|
|
|
echo ${CONFIG_CXX}
|
|
|
|
;;
|
|
|
|
|
2013-05-10 20:27:44 +00:00
|
|
|
--all-flags)
|
|
|
|
echo -I${CONFIG_MAPNIK_INCLUDE} ${CONFIG_DEP_INCLUDES} ${CONFIG_MAPNIK_DEFINES} ${CONFIG_CXXFLAGS} -L${CONFIG_MAPNIK_LIBPATH} -l${CONFIG_MAPNIK_LIBNAME} ${CONFIG_MAPNIK_LDFLAGS} ${CONFIG_DEP_LIBS}
|
|
|
|
;;
|
|
|
|
|
2015-04-27 23:02:41 +00:00
|
|
|
--gdal-data)
|
2017-09-10 15:19:04 +00:00
|
|
|
if [[ ${CONFIG_MAPNIK_GDAL_DATA:-unset} != "unset" ]]; then echo ${CONFIG_MAPNIK_GDAL_DATA}; fi;
|
2015-04-27 23:02:41 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
--proj-lib)
|
2017-09-10 15:19:04 +00:00
|
|
|
if [[ ${CONFIG_MAPNIK_PROJ_LIB:-unset} != "unset" ]]; then echo ${CONFIG_MAPNIK_PROJ_LIB}; fi;
|
2015-04-27 23:02:41 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
--icu-data)
|
2017-09-10 15:19:04 +00:00
|
|
|
if [[ ${CONFIG_MAPNIK_ICU_DATA:-unset} != "unset" ]]; then echo ${CONFIG_MAPNIK_ICU_DATA}; fi;
|
2015-04-27 23:02:41 +00:00
|
|
|
;;
|
|
|
|
|
2010-07-18 21:34:08 +00:00
|
|
|
*)
|
2013-03-14 02:49:59 +00:00
|
|
|
# push to stderr any invalid options
|
|
|
|
echo "unknown option $1" 1>&2;
|
2010-07-18 21:34:08 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|