osrm-backend/third_party/mason/scripts/nunicode/1.7.1/script.sh

48 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
MASON_NAME=nunicode
MASON_VERSION=1.7.1
MASON_LIB_FILE=lib/libnu.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download https://bitbucket.org/alekseyt/nunicode/get/1.7.1.tar.bz2 \
96e4b9893c88be4dacd2db7db154ec1727a757d1
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-263219737286
}
function mason_compile {
mkdir -p build-dir
cd build-dir
# patch CMakeLists file
cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \
${MASON_CMAKE_TOOLCHAIN} \
..
make install -j${MASON_CONCURRENCY}
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_clean {
make clean
}
mason_run "$@"