選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

38 行
1.2KB

  1. SHELL:=/bin/bash
  2. ubuntu2204:
  3. git clone -b v3.0.1 https://github.com/gurki/vivid
  4. bash ../ubuntu2204.sh make impl
  5. make package-ubuntu2204
  6. bash ../ubuntu2204.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  7. impl:
  8. switch-to-latest-clang
  9. # patch away issue of adding tests, currently catch is broken in clang 14.
  10. cat vivid/CMakeLists.txt | head -n -1 > vivid/CMakeLists.txt.new
  11. mv vivid/CMakeLists.txt.new vivid/CMakeLists.txt
  12. # build without tests for now
  13. mkdir -p vidid_out && \
  14. pushd vivid && \
  15. mkdir -p build && \
  16. pushd build && \
  17. cmake -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$$PWD/../vidid_out .. && \
  18. make -j $$(nproc) && \
  19. make install
  20. package-ubuntu2204:
  21. rm -rf out
  22. mkdir -p out/opt/cppse/build/vivid/
  23. cp -prv vivid/vidid_out/* out/opt/cppse/build/vivid/
  24. rm -rf vivid_*_amd64.deb
  25. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:22.04 fpm -v 1.1.1 -s dir -t deb -n vivid --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "vivid - build dependency" --url "https://github.com/gurki/vivid.git" --deb-generate-changes -C /src/out
  26. clean:
  27. rm -rf vivid
  28. rm -rf out
  29. shell:
  30. FLAGS="-i --privileged" bash ../ubuntu2204.sh /bin/bash