-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.boost
More file actions
34 lines (27 loc) · 1.1 KB
/
Makefile.boost
File metadata and controls
34 lines (27 loc) · 1.1 KB
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_89_0
BOOST_URL=https://archives.boost.io/release/1.89.0/source/boost_1_89_0.tar.gz
BOOST_SHA256=9de758db755e8330a01d995b0a24d09798048400ac25c03fc5ea9be364b13c93
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_*