Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

35 linhas
1.3KB

  1. SHELL:=/bin/bash
  2. caf:
  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
  8. impl:
  9. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-9 40
  10. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-9 40
  11. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 40
  12. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 40
  13. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-9 40
  14. pushd FastPFor && \
  15. CXX=$$(which c++) cmake . && \
  16. make -j $$(nproc)
  17. package:
  18. rm -rf out
  19. mkdir -p out/opt/cppse/build/fastpfor/lib
  20. mkdir -p out/opt/cppse/build/fastpfor/include
  21. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  22. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  23. rm -rf fastpfor_*_amd64.deb
  24. 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
  25. clean:
  26. rm -rf FastPFor
  27. rm -rf out
  28. shell:
  29. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash