選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

37 行
1.5KB

  1. SHELL:=/bin/bash
  2. boost:
  3. wget "https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2"
  4. tar -xvf boost_1_68_0.tar.bz2
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40
  13. pushd boost_1_68_0 && \
  14. mkdir -p target && \
  15. CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \
  16. ./b2 clean && \
  17. ./b2 --prefix=$$PWD/target/ toolset=clang || true
  18. # ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those.
  19. #./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++"
  20. package:
  21. rm -rf out
  22. mkdir -p out/opt/cppse/build/boost/include/
  23. cp -prv boost_1_68_0/stage/lib out/opt/cppse/build/boost/
  24. cp -prv boost_1_68_0/boost out/opt/cppse/build/boost/include/
  25. rm -rf boost_1.0_amd64.deb
  26. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -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
  27. clean:
  28. rm -rf boost_1_68_0
  29. rm -rf out
  30. shell:
  31. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash