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.

52 line
2.3KB

  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. patch FastPFor/CMakeLists.txt libcpp.patch
  6. bash ../ubuntu1804.sh make impl
  7. make package-ubuntu1804
  8. ubuntu2004:
  9. git clone https://github.com/lemire/FastPFor
  10. pushd FastPFor && git checkout 8030e3808f857cc12d1d09e264f1ad2a05b1964a # master at the time of writing
  11. patch FastPFor/CMakeLists.txt libcpp.patch
  12. bash ../ubuntu2004.sh make impl
  13. make package-ubuntu2004
  14. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  15. impl:
  16. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  17. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  18. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  19. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  20. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  21. pushd FastPFor && \
  22. CXX=$$(which c++) cmake . && \
  23. make -j $$(nproc)
  24. package-ubuntu1804:
  25. rm -rf out
  26. mkdir -p out/opt/cppse/build/fastpfor/lib
  27. mkdir -p out/opt/cppse/build/fastpfor/include
  28. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  29. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  30. rm -rf fastpfor_*_amd64.deb
  31. 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
  32. package-ubuntu2004:
  33. rm -rf out
  34. mkdir -p out/opt/cppse/build/fastpfor/lib
  35. mkdir -p out/opt/cppse/build/fastpfor/include
  36. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  37. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  38. rm -rf fastpfor_*_amd64.deb
  39. 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
  40. clean:
  41. rm -rf FastPFor
  42. rm -rf out
  43. shell:
  44. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash