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

77 lines
2.9KB

  1. SHELL:=/bin/bash
  2. UBUNTU_VERSION ?= 2404
  3. CODENAME ?= noble
  4. VERSION:=2.0
  5. build: $(CODENAME)/cppse-tvision_$(VERSION)_amd64.deb
  6. $(CODENAME)/cppse-tvision_$(VERSION)_amd64.deb:
  7. mkdir -p $(CODENAME)
  8. make ubuntu$(UBUNTU_VERSION)
  9. ubuntu2004:
  10. # check out revision that is master at the time of writing
  11. git clone https://github.com/magiblot/tvision || true
  12. pushd tvision && \
  13. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  14. popd && \
  15. bash ../ubuntu2004.sh make impl
  16. make package-ubuntu2004
  17. ubuntu2204:
  18. # check out revision that is master at the time of writing
  19. git clone https://github.com/magiblot/tvision || true
  20. pushd tvision && \
  21. git checkout 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 && \
  22. popd && \
  23. bash ../ubuntu2204.sh make impl
  24. make package-ubuntu2204
  25. ubuntu$(UBUNTU_VERSION):
  26. # check out revision that is master at the time of writing
  27. git clone https://github.com/magiblot/tvision || true
  28. pushd tvision && \
  29. git checkout 8605384659274edf1db39abef5338d2573c3e0b6 && \
  30. popd && \
  31. bash ../ubuntu$(UBUNTU_VERSION).sh make impl
  32. make package-ubuntu$(UBUNTU_VERSION)
  33. impl:
  34. pushd tvision && \
  35. cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$$PWD/../tvision_out && \
  36. cmake --build ./build && \
  37. pushd build && \
  38. make install
  39. chown 997:997 tvision -R # workaround for not using non-root user for building
  40. package-ubuntu2004:
  41. rm -rf out
  42. mkdir -p out/opt/cppse/build/tvision
  43. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  44. rm -rf cppse_tvision_*_amd64.deb
  45. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -f -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
  46. package-ubuntu2204:
  47. rm -rf out
  48. mkdir -p out/opt/cppse/build/tvision
  49. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  50. rm -rf cppse_tvision_*_amd64.deb
  51. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -f -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
  52. package-ubuntu$(UBUNTU_VERSION):
  53. rm -rf out
  54. mkdir -p out/opt/cppse/build/tvision
  55. cp -prv tvision_out/* out/opt/cppse/build/tvision/
  56. rm -rf $(CODENAME)/cppse-tvision_*_amd64.deb
  57. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -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
  58. cp -prv cppse-tvision_*_amd64.deb $(CODENAME)/
  59. clean:
  60. sudo rm -rf tvision*
  61. sudo rm -rf out
  62. shell:
  63. FLAGS="-i --privileged" bash ../ubuntu$(UBUNTU_VERSION).sh /bin/bash