|
|
@@ -1,8 +1,10 @@ |
|
|
|
SHELL:=/bin/bash |
|
|
|
|
|
|
|
boost: |
|
|
|
wget "https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2" |
|
|
|
tar -xf boost_1_72_0.tar.bz2 |
|
|
|
boost_: |
|
|
|
# below URL is unreliable |
|
|
|
# wget "https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2" |
|
|
|
#tar -xf boost_1_72_0.tar.bz2 |
|
|
|
git clone --branch boost-1.73.0 --recursive https://github.com/boostorg/boost |
|
|
|
bash ../ubuntu1804.sh make impl |
|
|
|
make package |
|
|
|
|
|
|
@@ -12,14 +14,14 @@ impl: |
|
|
|
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40 |
|
|
|
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40 |
|
|
|
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40 |
|
|
|
pushd boost_1_72_0 && \ |
|
|
|
pushd boost && \ |
|
|
|
mkdir -p target && \ |
|
|
|
CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \ |
|
|
|
./b2 clean && \ |
|
|
|
# with stdlib: |
|
|
|
./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17" || true |
|
|
|
# with stdlib: \ |
|
|
|
#./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true |
|
|
|
# without: |
|
|
|
./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17" linkflags="" || true |
|
|
|
#./b2 --prefix=$$PWD/target/ toolset=clang || true |
|
|
|
# ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those. |
|
|
|
#./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" |
|
|
@@ -27,13 +29,13 @@ impl: |
|
|
|
package: |
|
|
|
rm -rf out |
|
|
|
mkdir -p out/opt/cppse/build/boost/include/ |
|
|
|
cp -prv boost_1_72_0/stage/lib out/opt/cppse/build/boost/ |
|
|
|
cp -prv boost_1_72_0/boost out/opt/cppse/build/boost/include/ |
|
|
|
cp -prv boost/stage/lib out/opt/cppse/build/boost/ |
|
|
|
cp -prv boost/boost out/opt/cppse/build/boost/include/ |
|
|
|
rm -rf boost_*_amd64.deb |
|
|
|
docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n boost --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "boost - build dependency" --url "https://github.com/liballeg/boost.git" --deb-generate-changes -C /src/out |
|
|
|
|
|
|
|
clean: |
|
|
|
rm -rf boost_1_72_0 |
|
|
|
rm -rf boost |
|
|
|
rm -rf out |
|
|
|
|
|
|
|
shell: |