Created
October 9, 2019 19:09
-
-
Save iperdomo/a1e85d87a8d04617020f74e0502affa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
set -o pipefail | |
apt-get update | |
apt-get install -y --no-install-recommends \ | |
build-essential \ | |
pkg-config \ | |
curl \ | |
ca-certificates \ | |
git \ | |
python \ | |
libz-dev \ | |
xutils-dev \ | |
libssl-dev | |
mkdir -p ./mason | |
curl -sSfL https://github.com/CartoDB/mason/archive/master.tar.gz | \ | |
tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason | |
export MAPNIK_VERSION="v3.0.15.17" | |
export MASON_CARTO_VERSION="${MAPNIK_VERSION//v}" | |
export MASON_CONCURRENCY=8 | |
export CC="clang-5.0" | |
export CXX="ccache clang++-5.0 -Qunused-arguments" | |
export ENABLE_GLIBC_WORKAROUND=false | |
./mason/mason install clang++ 5.0.0 | |
export PATH="$(./mason/mason prefix clang++ 5.0.0)/bin:${PATH}" | |
./mason/mason install ccache 3.3.1 | |
export PATH="$(./mason/mason prefix ccache 3.3.1)/bin:${PATH}" | |
echo "PATH= ${PATH}" | |
./mason/mason build mapnik 3.0.15-carto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment