您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

37 行
1.3KB

  1. SHELL:=/bin/bash
  2. ubuntu2004:
  3. git clone --branch v2.5.2 https://github.com/AcademySoftwareFoundation/openexr || true
  4. bash ../ubuntu2004.sh make impl
  5. make package-ubuntu2004
  6. bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions
  7. impl:
  8. switch-to-latest-clang
  9. apt-get update && apt-get install libz-dev -y && \
  10. pushd openexr && \
  11. mkdir build && pushd build && \
  12. CXX=$$(which c++) cmake -DBUILD_SHARED_LIBS=off -DCMAKE_INSTALL_PREFIX=$$PWD/openexr_out .. && \
  13. make -j $$(nproc) && \
  14. make install && \
  15. popd && \
  16. mkdir build2 && pushd build2 && \
  17. CXX=$$(which c++) cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$$PWD/openexr_out .. && \
  18. make -j $$(nproc) && \
  19. make install
  20. package-ubuntu2004:
  21. rm -rf out
  22. mkdir -p out/opt/cppse/build/openexr
  23. cp -prv openexr/build/openexr_out/* out/opt/cppse/build/openexr/
  24. cp -prv openexr/build2/openexr_out/lib/* out/opt/cppse/build/openexr/lib/
  25. rm -rf cppseopenexr_*_amd64.deb
  26. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n cppseopenexr --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "openexr - build dependency" --url "https://github.com/AcademySoftwareFoundation/openexr" --deb-generate-changes -C /src/out
  27. clean:
  28. rm -rf openexr
  29. rm -rf out
  30. shell:
  31. FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash