2021-08-31 09:27:30 +00:00
|
|
|
#!/bin/sh
|
2021-03-16 18:18:54 +00:00
|
|
|
|
|
|
|
ARCH=$1
|
2021-08-31 09:27:30 +00:00
|
|
|
PREFIX=$2
|
|
|
|
BOOST_SRC_DIR=$3
|
|
|
|
BOOST_FILENAME=$4
|
|
|
|
BOOST_VERSION=$5
|
2021-03-16 18:18:54 +00:00
|
|
|
BOOST_FILE_PATH=$WORKDIR/$BOOST_FILENAME
|
2022-04-04 14:29:37 +00:00
|
|
|
BOOST_SHA256="59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722"
|
2021-03-16 18:18:54 +00:00
|
|
|
|
|
|
|
if [ ! -e "$BOOST_FILE_PATH" ]; then
|
2021-08-31 09:27:30 +00:00
|
|
|
curl -L http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION}/${BOOST_FILENAME} > $BOOST_FILE_PATH
|
2021-03-16 18:18:54 +00:00
|
|
|
fi
|
|
|
|
|
2021-08-31 09:27:30 +00:00
|
|
|
echo $BOOST_SHA256 $BOOST_FILE_PATH | sha256sum -c - || exit 1
|
|
|
|
|
2021-03-16 18:18:54 +00:00
|
|
|
cd $WORKDIR
|
|
|
|
rm -rf $BOOST_SRC_DIR
|
2022-03-31 19:52:21 +00:00
|
|
|
rm -rf $PREFIX/include/boost
|
2021-03-16 18:18:54 +00:00
|
|
|
tar -xvf $BOOST_FILE_PATH -C $WORKDIR
|
|
|
|
cd $BOOST_SRC_DIR
|
|
|
|
./bootstrap.sh --prefix=${PREFIX}
|