Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- SHELL:=/bin/bash
-
- UBUNTU_VERSION ?= 2404
- CODENAME ?= noble
-
- VERSION:=3.3.2
-
- build: $(CODENAME)/cppse-openexr_$(VERSION)_amd64.deb
-
- $(CODENAME)/cppse-openexr_$(VERSION)_amd64.deb:
- mkdir -p $(CODENAME)
- make ubuntu$(UBUNTU_VERSION)
-
- ubuntu$(UBUNTU_VERSION):
- git clone --branch v3.3.2 https://github.com/AcademySoftwareFoundation/openexr || true
- bash ../ubuntu$(UBUNTU_VERSION).sh make impl
- make package-ubuntu$(UBUNTU_VERSION)
- bash ../ubuntu$(UBUNTU_VERSION).sh chown $$(id -u):$$(id -g) . -R # fix permissions
-
- impl:
- switch-to-latest-clang
- 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-ubuntu$(UBUNTU_VERSION):
- 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 $(CODENAME)/cppse-openexr_*_amd64.deb
- # TODO: make sure all other debs are in noble.
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:24.04 fpm -f -v $(VERSION) --iteration $(CODENAME) -s dir -t deb -n cppse-openexr --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "openexr - build dependency" --url "https://github.com/AcademySoftwareFoundation/openexr" --deb-generate-changes -C /src/out
- cp -prv cppse-openexr_*_amd64.deb $(CODENAME)/
-
- clean:
- rm -rf openexr
- rm -rf out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu$(UBUNTU_VERSION).sh /bin/bash
|