You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3KB

  1. SHELL:=/bin/bash
  2. VERSION:=1.0
  3. build: cppse-benchmarklib_$(VERSION)_amd64.deb
  4. cppse-benchmarklib_$(VERSION)_amd64.deb:
  5. make benchmarklib_
  6. benchmarklib_:
  7. git clone https://bitbucket.org/rayburgemeestre/benchmarklib || true
  8. pushd benchmarklib && git checkout master
  9. bash ../ubuntu2404.sh make impl
  10. make package
  11. impl:
  12. switch-to-latest-clang
  13. # TODO install boost from apt repo
  14. # if [[ -f CMakeCache.txt ]]; then rm CMakeCache.txt; fi
  15. dpkg -i ../boost/cppse-boost_*_amd64.deb
  16. pushd benchmarklib && \
  17. CXX=$$(which c++) cmake -DSTATIC=1 -DBOOST_ROOT=/opt/cppse/build/boost -DCMAKE_INSTALL_PREFIX=$$PWD/benchmarklib_out -DNO_AUTO_USE_LIBCPP_CLANG=1 . && \
  18. make -j $$(nproc) && \
  19. make install
  20. package:
  21. rm -rf out
  22. mkdir -p out/opt/cppse/build/benchmarklib
  23. cp -prv ./benchmarklib/benchmarklib_out/* out/opt/cppse/build/benchmarklib/
  24. rm -rf benchmarklib_*_amd64.deb
  25. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v $(VERSION) -s dir -t deb -n cppse-benchmarklib --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "benchmarklib - build dependency" --url "https://bitbucket.org/rayburgemeestre/benchmarklib" --deb-generate-changes -C /src/out
  26. clean:
  27. rm -rf benchmarklib
  28. rm -rf out
  29. shell:
  30. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash