Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

65 lines
2.5KB

  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. ubuntu2404:
  19. # check out revision that is master at the time of writing
  20. git clone https://github.com/magiblot/tvision || true
  21. pushd tvision && \
  22. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  23. popd && \
  24. bash ../ubuntu2404.sh make impl
  25. make package-ubuntu2404
  26. impl:
  27. pushd tvision && \
  28. cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \
  29. cmake --build ./build && \
  30. pushd build && \
  31. make install
  32. chown 997:997 tvision -R # workaround for not using non-root user for building
  33. package-ubuntu2004:
  34. rm -rf out
  35. mkdir -p out/opt/cppse/build/tvision
  36. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  37. rm -rf cppse_tvision_*_amd64.deb
  38. 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
  39. package-ubuntu2204:
  40. rm -rf out
  41. mkdir -p out/opt/cppse/build/tvision
  42. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  43. rm -rf cppse_tvision_*_amd64.deb
  44. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.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
  45. package-ubuntu2404:
  46. rm -rf out
  47. mkdir -p out/opt/cppse/build/tvision
  48. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  49. rm -rf cppse_tvision_*_amd64.deb
  50. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -v 1.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
  51. clean:
  52. sudo rm -rf tvision*
  53. sudo rm -rf out
  54. shell:
  55. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash