You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 line
2.6KB

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