osrm-backend/third_party/mason/scripts/supercluster/0.2.0/script.sh

35 lines
684 B
Bash

#!/usr/bin/env bash
MASON_NAME=supercluster
MASON_VERSION=0.2.0
MASON_HEADER_ONLY=true
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/supercluster.hpp/archive/v${MASON_VERSION}.tar.gz \
48bda562627a3032ba73b8b1ff739dc525544d72
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/supercluster.hpp-${MASON_VERSION}
}
function mason_compile {
mkdir -p ${MASON_PREFIX}/include/
cp -v include/*.hpp ${MASON_PREFIX}/include
cp -v README.md LICENSE ${MASON_PREFIX}
}
function mason_cflags {
echo "-I${MASON_PREFIX}/include"
}
function mason_ldflags {
:
}
mason_run "$@"