|
- SHELL:=/bin/bash
-
- UBUNTU_VERSION ?= 2404
- CODENAME ?= noble
-
- VERSION:=1.86.0
-
- build: $(CODENAME)/cppse-boost_$(VERSION)_amd64.deb
-
- $(CODENAME)/cppse-boost_$(VERSION)_amd64.deb:
- mkdir -p $(CODENAME)
- make ubuntu$(UBUNTU_VERSION)
-
-
-
- bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R
-
- ubuntu$(UBUNTU_VERSION):
- git clone --branch boost-1.86.0 --recursive https://github.com/boostorg/boost
- bash ../ubuntu$(UBUNTU_VERSION).sh make impl
- make package-ubuntu$(UBUNTU_VERSION)
- bash ../ubuntu$(UBUNTU_VERSION).sh chown $$(id -u):$$(id -g) . -R
-
- impl:
- switch-to-latest-clang
- pushd boost && \
- mkdir -p target && \
- CXX=$$(which c++) ./bootstrap.sh --prefix=$$PWD/target/ --with-toolset=clang && \
- ./b2 clean && \
- ./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-std=c++17 -stdlib=libstdc++ -fPIC" linkflags="-stdlib=libstdc++" --with-program_options \
- --with-system \
- --with-date_time \
- --with-thread \
- --with-chrono || true
- # do not use -D_GLIBCXX_USE_CXX11_ABI=0 , other libs I now compile with libstdc++ don't do it either.
- # with stdlib: \
- #./b2 --prefix=$$PWD/target/ toolset=clang cxxflags="-D_GLIBCXX_USE_CXX11_ABI=0 -stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++" || true
- # without:
- #./b2 --prefix=$$PWD/target/ toolset=clang || true
- # ^ ||true because with clang I saw a few libraries not compile correctly, we can ignore those.
- #./b2 --with-program_options --prefix=$$PWD/target/ toolset=clang cxxflags="-stdlib=libc++ -std=c++17" linkflags="-stdlib=libc++"
-
- # also from; ./b2 --show-libraries && \
- #- atomic
- #- container
- #- context
- #- contract
- #- coroutine
- #- exception
- #- fiber
- #- filesystem
- #- graph
- #- graph_parallel
- #- headers
- #- iostreams
- #- locale
- #- log
- #- math
- #- mpi
- #- nowide
- #- python
- #- random
- #- regex
- #- serialization
- #- stacktrace
- #- test
- #- timer
- #- type_erasure
- #- wave
-
-
-
-
- package-ubuntu$(UBUNTU_VERSION):
- rm -rf out
- mkdir -p out/opt/cppse/build/boost/include/
- cp -L -prv boost/stage/lib out/opt/cppse/build/boost/
- cp -L -prv boost/boost out/opt/cppse/build/boost/include/
- rm -rf $(CODENAME)/cppse-boost_*_amd64.deb
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -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
- cp -prv cppse-boost_*_amd64.deb $(CODENAME)/
-
- clean:
- rm -rf boost
- rm -rf out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu2404.sh /bin/bash
|