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.

88 lines
3.7KB

  1. SHELL:=/bin/bash
  2. VERSION:=0.1.7
  3. build: cppse-fastpfor_$(VERSION)_amd64.deb
  4. cppse-fastpfor_$(VERSION)_amd64.deb:
  5. make ubuntu2404
  6. ubuntu1804:
  7. #git clone https://github.com/lemire/FastPFor
  8. git clone https://github.com/rayburgemeestre/FastPFor
  9. pushd FastPFor && git checkout change-google-test-branch
  10. bash ../ubuntu1804.sh make impl
  11. make package-ubuntu1804
  12. ubuntu2004:
  13. git clone https://github.com/rayburgemeestre/FastPFor
  14. pushd FastPFor && git checkout change-google-test-branch # master at the time of writing
  15. bash ../ubuntu2004.sh make impl
  16. make package-ubuntu2004
  17. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  18. ubuntu2204:
  19. git clone https://github.com/rayburgemeestre/FastPFor
  20. pushd FastPFor && git checkout change-google-test-branch # master at the time of writing
  21. bash ../ubuntu2204.sh make impl
  22. make package-ubuntu2204
  23. bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  24. ubuntu2404:
  25. git clone https://github.com/rayburgemeestre/FastPFor || true
  26. pushd FastPFor && git checkout change-google-test-branch # master at the time of writing
  27. bash ../ubuntu2404.sh make impl
  28. make package-ubuntu2404
  29. bash ../ubuntu2404.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  30. impl:
  31. patch FastPFor/CMakeLists.txt libcpp.patch
  32. switch-to-latest-clang
  33. pushd FastPFor && \
  34. CXX=$$(which c++) cmake . && \
  35. make -j $$(nproc)
  36. package-ubuntu1804:
  37. rm -rf out
  38. mkdir -p out/opt/cppse/build/fastpfor/lib
  39. mkdir -p out/opt/cppse/build/fastpfor/include
  40. cp -prv ./FastPFor/libFastPFOR.a out/opt/cppse/build/fastpfor/lib/
  41. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  42. rm -rf fastpfor_*_amd64.deb
  43. 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
  44. package-ubuntu2004:
  45. rm -rf out
  46. mkdir -p out/opt/cppse/build/fastpfor/lib
  47. mkdir -p out/opt/cppse/build/fastpfor/include
  48. cp -prv ./FastPFor/libFastPFOR.a out/opt/cppse/build/fastpfor/lib/
  49. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  50. rm -rf fastpfor_*_amd64.deb
  51. 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
  52. package-ubuntu2204:
  53. rm -rf out
  54. mkdir -p out/opt/cppse/build/fastpfor/lib
  55. mkdir -p out/opt/cppse/build/fastpfor/include
  56. cp -prv ./FastPFor/libFastPFOR.a out/opt/cppse/build/fastpfor/lib/
  57. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  58. rm -rf fastpfor_*_amd64.deb
  59. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.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
  60. package-ubuntu2404:
  61. rm -rf out
  62. mkdir -p out/opt/cppse/build/fastpfor/lib
  63. mkdir -p out/opt/cppse/build/fastpfor/include
  64. cp -prv ./FastPFor/libFastPFOR.a out/opt/cppse/build/fastpfor/lib/
  65. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  66. rm -rf fastpfor_*_amd64.deb
  67. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v $(VERSION) -s dir -t deb -n cppse-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
  68. clean:
  69. rm -rf FastPFor
  70. rm -rf out
  71. shell:
  72. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash