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.

49 linhas
1.8KB

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. # check out revision that is master at the time of writing
  4. git clone https://github.com/magiblot/tvision || true
  5. pushd tvision && \
  6. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  7. popd && \
  8. bash ../ubuntu2004.sh make impl
  9. make package-ubuntu2004
  10. ubuntu2204:
  11. # check out revision that is master at the time of writing
  12. git clone https://github.com/magiblot/tvision || true
  13. pushd tvision && \
  14. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  15. popd && \
  16. bash ../ubuntu2204.sh make impl
  17. make package-ubuntu2204
  18. impl:
  19. pushd tvision && \
  20. cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \
  21. cmake --build ./build && \
  22. pushd build && \
  23. make install
  24. chown 997:997 tvision -R # workaround for not using non-root user for building
  25. package-ubuntu2004:
  26. rm -rf out
  27. mkdir -p out/opt/cppse/build/tvision
  28. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  29. rm -rf cppse_tvision_*_amd64.deb
  30. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n cppse-tvision --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "tvision - build dependency" --url "https://github.com/magiblot/tvision" --deb-generate-changes -C /src/out
  31. package-ubuntu2204:
  32. rm -rf out
  33. mkdir -p out/opt/cppse/build/tvision
  34. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  35. rm -rf cppse_tvision_*_amd64.deb
  36. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1 -s dir -t deb -n cppse-tvision --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "tvision - build dependency" --url "https://github.com/magiblot/tvision" --deb-generate-changes -C /src/out
  37. clean:
  38. sudo rm -rf tvision*
  39. sudo rm -rf out
  40. shell:
  41. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash