No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

51 líneas
2.2KB

  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. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40
  16. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40
  17. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40
  18. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40
  19. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40
  20. pushd FastPFor && \
  21. CXX=$$(which c++) cmake . && \
  22. make -j $$(nproc)
  23. package-ubuntu1804:
  24. rm -rf out
  25. mkdir -p out/opt/cppse/build/fastpfor/lib
  26. mkdir -p out/opt/cppse/build/fastpfor/include
  27. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  28. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  29. rm -rf fastpfor_*_amd64.deb
  30. 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
  31. package-ubuntu2004:
  32. rm -rf out
  33. mkdir -p out/opt/cppse/build/fastpfor/lib
  34. mkdir -p out/opt/cppse/build/fastpfor/include
  35. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  36. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  37. rm -rf fastpfor_*_amd64.deb
  38. 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
  39. clean:
  40. rm -rf FastPFor
  41. rm -rf out
  42. shell:
  43. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash