Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

47 lines
1.9KB

  1. SHELL:=/bin/bash
  2. ubuntu1804:
  3. git clone https://github.com/lemire/FastPFor
  4. pushd FastPFor && git checkout 8030e3808f857cc12d1d09e264f1ad2a05b1964a # master at the time of writing
  5. bash ../ubuntu1804.sh make impl
  6. make package-ubuntu1804
  7. ubuntu2004:
  8. git clone https://github.com/lemire/FastPFor
  9. pushd FastPFor && git checkout 8030e3808f857cc12d1d09e264f1ad2a05b1964a # master at the time of writing
  10. bash ../ubuntu2004.sh make impl
  11. make package-ubuntu2004
  12. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  13. impl:
  14. patch FastPFor/CMakeLists.txt libcpp.patch
  15. switch-to-latest-clang
  16. pushd FastPFor && \
  17. CXX=$$(which c++) cmake . && \
  18. make -j $$(nproc)
  19. package-ubuntu1804:
  20. rm -rf out
  21. mkdir -p out/opt/cppse/build/fastpfor/lib
  22. mkdir -p out/opt/cppse/build/fastpfor/include
  23. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  24. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  25. rm -rf fastpfor_*_amd64.deb
  26. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -v 1.1 -s dir -t deb -n fastpfor --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out
  27. package-ubuntu2004:
  28. rm -rf out
  29. mkdir -p out/opt/cppse/build/fastpfor/lib
  30. mkdir -p out/opt/cppse/build/fastpfor/include
  31. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  32. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  33. rm -rf fastpfor_*_amd64.deb
  34. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n fastpfor --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out
  35. clean:
  36. rm -rf FastPFor
  37. rm -rf out
  38. shell:
  39. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash