-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.boost
34 lines (27 loc) · 1.11 KB
/
Makefile.boost
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
# Build boost
BASE=${PWD}
BOOST_VERSION=1_86_0
BOOST_URL=https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.gz
BOOST_SHA256=2575e74ffc3ef1cd0babac2c1ee8bdb5782a0ee672b1912da40e5b4b591ca01f
boost: build/boost_${BOOST_VERSION}.tar.gz \
build/boost_${BOOST_VERSION} \
build-dep/boost/include
build/boost_${BOOST_VERSION}.tar.gz:
cd build && \
wget "${BOOST_URL}"
build/boost_${BOOST_VERSION}:
cd build && \
echo '${BOOST_SHA256} boost_${BOOST_VERSION}.tar.gz' | sha256sum -c && \
tar xf boost_${BOOST_VERSION}.tar.gz
# Install Boost with its installer. This also creates the CMake config files, which are needed because newer
# versions of CMake no longer ship their own FindBoost module.
# Boost.System isn't actually needed. Boost.System is installed here, because Boost doesn't have an option to
# only install the header-only libraries.
build-dep/boost/include:
mkdir -p "${BASE}/build-dep/boost" && \
cd "build/boost_${BOOST_VERSION}" && \
./bootstrap.sh --prefix="${BASE}/build-dep/boost" --with-libraries=system && \
./b2 install
clean:
rm -rf build-dep/boost
rm -rf build/boost_*