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.

100 líneas
3.5KB

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