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.

114 líneas
4.2KB

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