diff options
author | Remi Collet <remi@remirepo.net> | 2025-03-15 08:04:00 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-03-15 08:04:00 +0100 |
commit | 0b1ac95fd3becb48993b19024cb5bb74a1658557 (patch) | |
tree | f1c7e64523c2cfdf70be4ff29049ff47dfdf6444 /gs-check.patch | |
parent | 9eab1bf812611f97a4cab77a99b4b1345ef89213 (diff) |
test build for https://github.com/ImageMagick/ImageMagick6/pull/368
Diffstat (limited to 'gs-check.patch')
-rw-r--r-- | gs-check.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gs-check.patch b/gs-check.patch new file mode 100644 index 0000000..4fb8ae8 --- /dev/null +++ b/gs-check.patch @@ -0,0 +1,36 @@ +From 2b491ae699870d3dcc047a529b1a69ad59792dd5 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Sat, 15 Mar 2025 07:58:43 +0100 +Subject: [PATCH] try pngalpha if png16malpha not available + +--- + configure | 6 ++++-- + configure.ac | 2 ++ + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index e24752caa..ec13f0daf 100755 +--- a/configure ++++ b/configure +@@ -38027,6 +38027,8 @@ printf "%s\n" "$GSColorDevice" >&6; } + printf %s "checking for gs alpha device... " >&6; } + if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then + : ++ elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then ++ GSAlphaDevice=pngalpha + else + GSAlphaDevice=$GSColorDevice + fi +diff --git a/configure.ac b/configure.ac +index 5f990f3f2..c37d12ab9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3644,6 +3644,8 @@ if test $have_gs = 'yes'; then + AC_MSG_CHECKING([for gs alpha device]) + if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then + : ++ elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then ++ GSAlphaDevice=pngalpha + else + GSAlphaDevice=$GSColorDevice + fi |