SHELL:=/bin/bash ubuntu2004: git clone --branch v2.5.2 https://github.com/AcademySoftwareFoundation/openexr || true bash ../ubuntu2004.sh make impl make package-ubuntu2004 bash ../ubuntu2004.sh chown $$(id -u):$$(id -g) . -R # fix permissions impl: update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-10 40 update-alternatives --install /usr/bin/cc cc /usr/bin/clang-10 40 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-10 40 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 40 update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-10 40 apt-get update && apt-get install libz-dev -y && \ pushd openexr && \ mkdir build && pushd build && \ CXX=$$(which c++) cmake -DBUILD_SHARED_LIBS=off -DCMAKE_INSTALL_PREFIX=$$PWD/openexr_out .. && \ make -j $$(nproc) && \ make install && \ popd && \ mkdir build2 && pushd build2 && \ CXX=$$(which c++) cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$$PWD/openexr_out .. && \ make -j $$(nproc) && \ make install package-ubuntu2004: rm -rf out mkdir -p out/opt/cppse/build/openexr cp -prv openexr/build/openexr_out/* out/opt/cppse/build/openexr/ cp -prv openexr/build2/openexr_out/lib/* out/opt/cppse/build/openexr/lib/ rm -rf cppseopenexr_*_amd64.deb 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 " --description "openexr - build dependency" --url "https://github.com/AcademySoftwareFoundation/openexr" --deb-generate-changes -C /src/out clean: rm -rf openexr rm -rf out shell: FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash