mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
imagemagick new version & deps (#2441)
* new version & deps * clean * linux/aarch64: without-x * libheif * paths * std_configure_args * +deps * debug * debug * static * debug (darwin aarch64) * echo $? * grep * remove echo $? * simplify identical calls to sed --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
776e97fb5d
commit
b6361963ec
|
@ -1,12 +1,12 @@
|
|||
distributable:
|
||||
#FIXME: they use a weird versioning scheme
|
||||
url: https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.0-61.tar.gz
|
||||
url: https://github.com/ImageMagick/ImageMagick/archive/7.1.1-12.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
#FIXME: they use a weird versioning scheme
|
||||
# github: ImageMagick/ImageMagick
|
||||
- 7.1.0.61
|
||||
- 7.1.1.12
|
||||
|
||||
provides:
|
||||
- bin/animate
|
||||
|
@ -27,27 +27,100 @@ provides:
|
|||
- bin/stream
|
||||
|
||||
dependencies:
|
||||
libpng.org: 1
|
||||
ijg.org: 9
|
||||
libpng.org: '*'
|
||||
ijg.org: '*'
|
||||
freetype.org: '*'
|
||||
libjpeg-turbo.org: '*'
|
||||
liblqr.wikidot.com: '*'
|
||||
simplesystems.org/libtiff: '*'
|
||||
gnu.org/libtool: '*'
|
||||
littlecms.com: '*'
|
||||
openexr.com: '*'
|
||||
openjpeg.org: '*'
|
||||
google.com/webp: '*'
|
||||
tukaani.org/xz: '*'
|
||||
sourceware.org/bzip2: '*'
|
||||
gnome.org/libxml2: '*'
|
||||
zlib.net: '*'
|
||||
jpeg.org/jpegxl: '*'
|
||||
perl.org: '*'
|
||||
libzip.org: '*'
|
||||
darwin:
|
||||
openmp.llvm.org: '*'
|
||||
github.com/strukturag/libheif: '*'
|
||||
linux/x86-64:
|
||||
github.com/strukturag/libheif: '*'
|
||||
linux:
|
||||
x.org/x11: '*'
|
||||
|
||||
runtime:
|
||||
MAGICK_HOME: "{{prefix}}"
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script: |-
|
||||
# seemingly `./configure` doesn't use pkg-config for libjpeg
|
||||
export CPPFLAGS=`pkg-config --cflags libjpeg`
|
||||
export LDFLAGS=`pkg-config --libs libjpeg`
|
||||
script:
|
||||
- sed -i'' -e 's|${PACKAGE_NAME}-${PACKAGE_BASE_VERSION}|${PACKAGE_NAME}|g' configure
|
||||
- find . -type f -name '*-config.in' -exec sed -i'' -e 's|@PKG_CONFIG@|pkg-config|g' {} +
|
||||
- ./configure $ARGS
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
- run: sed -i'' -e 's|^prefix=.*|prefix=${MAGICK_HOME}|g' Magick++-config MagickCore-config MagickWand-config
|
||||
working-directory: ${{prefix}}/bin
|
||||
|
||||
./configure \
|
||||
--prefix={{ prefix }} \
|
||||
--disable-silent-rules
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
# https://github.com/ImageMagick/ImageMagick/issues/1549
|
||||
LDFLAGS:
|
||||
- -L{{deps.gnu.org/libtool.prefix}}/lib
|
||||
- -L{{deps.liblqr.wikidot.com.prefix}}/lib
|
||||
- -L{{deps.sourceware.org/bzip2.prefix}}/lib
|
||||
- -L{{deps.ijg.org.prefix}}/lib
|
||||
ARGS:
|
||||
- --prefix={{ prefix }}
|
||||
- --libdir={{prefix}}/lib
|
||||
- --enable-osx-universal-binary=no
|
||||
- --disable-silent-rules
|
||||
- --disable-opencl
|
||||
- --enable-static
|
||||
- --disable-shared
|
||||
- --with-png=yes
|
||||
- --with-tiff=yes
|
||||
- --with-jxl=yes
|
||||
- --with-perl=yes
|
||||
- --with-freetype=yes
|
||||
- --with-gvc=no
|
||||
- --with-modules
|
||||
- --with-openjp2
|
||||
- --with-openexr
|
||||
- --with-webp=yes
|
||||
- --with-heic=yes
|
||||
- --with-lqr
|
||||
- --without-lzma
|
||||
- --without-djvu
|
||||
- --without-fftw
|
||||
- --without-pango
|
||||
- --without-wmf
|
||||
- --without-perl
|
||||
- --enable-openmp
|
||||
- --with-zip=yes
|
||||
|
||||
linux:
|
||||
ARGS:
|
||||
- --with-x=yes
|
||||
- --x-includes={{deps.x.org/x11.prefix}}/include
|
||||
- --x-libraries={{deps.x.org/x11.prefix}}/lib
|
||||
darwin:
|
||||
ARGS:
|
||||
- --without-x
|
||||
|
||||
test:
|
||||
env:
|
||||
MAGICK_HOME: "{{prefix}}"
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
script: |
|
||||
curl "https://upload.wikimedia.org/wikipedia/commons/6/6a/PNG_Test.png" -o a.png
|
||||
identify a.png | grep "a.png PNG 3120x3920 3120x3920+0+0 8-bit sRGB 7.02443MiB 0.000u"
|
||||
script:
|
||||
#FIXME: they use a weird versioning scheme
|
||||
- magick -version | grep 7.1.1-12
|
||||
- curl "https://upload.wikimedia.org/wikipedia/commons/6/6a/PNG_Test.png" -o a.png
|
||||
- magick identify a.png | grep "a.png PNG"
|
||||
|
|
Loading…
Reference in a new issue