#! /usr/bin/env bash set -eu RUNTIME_PREFIX=$(cd -- "${BASH_SOURCE%"${BASH_SOURCE##*/}"}.." && pwd) ## CONFIG variables substituted from build script CONFIG_MAPNIK_NAME="mapnik" CONFIG_MAPNIK_VERSION="unknown" CONFIG_MAPNIK_VERSION_STRING="unknown" CONFIG_GIT_REVISION="N/A" CONFIG_GIT_DESCRIBE="${CONFIG_MAPNIK_VERSION_STRING}" CONFIG_PREFIX="/usr/local" CONFIG_LIBDIR_SCHEMA="lib" CONFIG_LIB_DIR_NAME="mapnik" CONFIG_MAPNIK_LIB_BASE="${CONFIG_PREFIX}/${CONFIG_LIBDIR_SCHEMA}" CONFIG_MAPNIK_LIB_DIR="${CONFIG_MAPNIK_LIB_BASE}/${CONFIG_LIB_DIR_NAME}" CONFIG_MAPNIK_INPUT_PLUGINS="${CONFIG_MAPNIK_LIB_DIR}/input" CONFIG_MAPNIK_FONTS="${CONFIG_MAPNIK_LIB_DIR}/fonts" CONFIG_CXX="c++" CONFIG_CXXFLAGS= CONFIG_DEFINES= CONFIG_LDFLAGS= CONFIG_DEP_INCLUDES= CONFIG_DEP_LIBS= CONFIG_QUERIED_GDAL_DATA= CONFIG_QUERIED_PROJ_LIB= CONFIG_QUERIED_ICU_DATA= ## D.R.Y. variables DRY_INCLUDES="-I${RUNTIME_PREFIX}/include -I${RUNTIME_PREFIX}/include/mapnik/agg -I${RUNTIME_PREFIX}/include/mapnik/deps" DRY_CFLAGS="${DRY_INCLUDES} ${CONFIG_DEP_INCLUDES} ${CONFIG_DEFINES} ${CONFIG_CXXFLAGS}" DRY_LIBS="-L${RUNTIME_PREFIX}/${CONFIG_LIBDIR_SCHEMA} -l${CONFIG_MAPNIK_NAME}" ## program below usage() { cat <&2 ;; esac shift done exit 0