Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- SHELL:=/bin/bash
-
- ubuntu2004:
- git clone --branch 7.0.10-53 https://github.com/ImageMagick/ImageMagick || 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 autoconf -y && \
- apt-get install -y libpng-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libtiff-dev libtiff5-dev libtiffxx5 && \
- dpkg -i openexr/pkg/*.deb && \
- pushd ImageMagick && \
- autoconf && \
- PKG_CONFIG_PATH=/opt/cppse/build//openexr/lib/pkgconfig ./configure CC=$$(which cc) CXX=$$(which c++) --with-pkgconfigdir=/opt/cppse/build/openexr/lib/pkgconfig CFLAGS="-I/opt/cppse/build/openexr/include/OpenEXR" LDFLAGS="-L/opt/cppse/build/openexr/lib/" --with-openexr=yes --enable-hdri --with-tiff=yes --with-jpeg=yes --with-openexr=yes --with-png=yes --with-tiff=yes --enable-shared=no --enable-static=yes --prefix=$$PWD/imagemagick_out && \
- make -j $$(nproc) && \
- make install
-
- package-ubuntu2004:
- rm -rf out
- mkdir -p out/opt/cppse/build/imagemagick
- cp -prv ImageMagick/imagemagick_out/* out/opt/cppse/build/imagemagick/
- rm -rf imagemagick_*_amd64.deb
- docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:20.04 fpm -v 1.1 -s dir -t deb -n imagemagick --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "imagemagick - build dependency" --url "https://github.com/ImageMagick/ImageMagick" --deb-generate-changes -C /src/out
-
- clean:
- rm -rf ImageMagick
- rm -rf out
-
- shell:
- FLAGS="-i --privileged" bash ../ubuntu2004.sh /bin/bash
|