No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

90 líneas
3.1KB

  1. SHELL:=/bin/bash
  2. ubuntu1804:
  3. # below URL is unreliable
  4. # wget "https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.bz2"
  5. #tar -xf boost_1_72_0.tar.bz2
  6. git clone --branch boost-1.73.0 --recursive https://github.com/boostorg/boost
  7. bash ../ubuntu1804.sh make impl
  8. make package-ubuntu1804
  9. ubuntu2004:
  10. git clone --branch boost-1.73.0 --recursive https://github.com/boostorg/boost
  11. bash ../ubuntu2004.sh make impl
  12. make package-ubuntu2004
  13. impl:
  14. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  15. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  16. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  17. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  18. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  19. pushd boost && \
  20. mkdir -p target && \
  21. CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \
  22. ./b2 clean && \
  23. ./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-std=c++17 -stdlib=libstdc++" linkflags="-stdlib=libstdc++" --with-program_options \
  24. --with-system \
  25. --with-date_time \
  26. --with-thread \
  27. --with-chrono || true
  28. # do not use -D_GLIBCXX_USE_CXX11_ABI=0 , other libs I now compile with libstdc++ don't do it either.
  29. # with stdlib: \
  30. #./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true
  31. # without:
  32. #./b2 --prefix=$$PWD/target/ toolset=clang || true
  33. # ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those.
  34. #./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++"
  35. # also from; ./b2 --show-libraries && \
  36. #- atomic
  37. #- container
  38. #- context
  39. #- contract
  40. #- coroutine
  41. #- exception
  42. #- fiber
  43. #- filesystem
  44. #- graph
  45. #- graph_parallel
  46. #- headers
  47. #- iostreams
  48. #- locale
  49. #- log
  50. #- math
  51. #- mpi
  52. #- nowide
  53. #- python
  54. #- random
  55. #- regex
  56. #- serialization
  57. #- stacktrace
  58. #- test
  59. #- timer
  60. #- type_erasure
  61. #- wave
  62. package-ubuntu1804:
  63. rm -rf out
  64. mkdir -p out/opt/cppse/build/boost/include/
  65. cp -L -prv boost/stage/lib out/opt/cppse/build/boost/
  66. cp -L -prv boost/boost out/opt/cppse/build/boost/include/
  67. rm -rf boost_*_amd64.deb
  68. 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
  69. package-ubuntu2004:
  70. rm -rf out
  71. mkdir -p out/opt/cppse/build/boost/include/
  72. cp -L -prv boost/stage/lib out/opt/cppse/build/boost/
  73. cp -L -prv boost/boost out/opt/cppse/build/boost/include/
  74. rm -rf boost_*_amd64.deb
  75. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.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
  76. clean:
  77. rm -rf boost
  78. rm -rf out
  79. shell:
  80. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash