forked from mapnik/node-mapnik
-
Notifications
You must be signed in to change notification settings - Fork 5
/
install_mason.sh
executable file
·43 lines (36 loc) · 1.37 KB
/
install_mason.sh
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
#!/bin/bash
set -eu
set -o pipefail
function install() {
./mason/mason install $1 $2
./mason/mason link $1 $2
}
ICU_VERSION="57.1"
if [ ! -f ./mason/mason.sh ]; then
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
fi
if [ ! -f ./mason_packages/.link/bin/mapnik-config ]; then
# mapnik deps
install jpeg_turbo 1.5.2
install libpng 1.6.37
install libtiff 4.0.8
install icu ${ICU_VERSION}
install proj 5.2.0
install pixman 0.34.0
install cairo 1.14.12
install webp 0.6.0
install gdal 2.4.1 libgdal
install boost 1.65.1
install boost_libsystem 1.65.1
install boost_libfilesystem 1.65.1
install boost_libregex_icu57 1.65.1
install freetype 2.7.1
install harfbuzz 1.4.4-ft
# mapnik
# NOTE: sync this version with the `mapnik_version` in package.json (which is used for windows builds)
# In the future we could pull from that version automatically if mason were to support knowing the right dep
# versions to install automatically. Until then there is not much point since the deps are still hardcoded here.
MAPNIK_VERSION=$(node -e "console.log(require('./package.json').mapnik_version)")
MASON_CARTO_VERSION=${MAPNIK_VERSION//v} install mapnik 3.0.15-carto
fi