Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

121 rinda
4.4KB

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