Source: openttd-opengfx
Followup-For: Bug #1090256

Dear Maintainer,

Please find attached a backported equivalent patch that selects a specific
GIMP3 batch script interpreter, and uses the gimp-console command instead of
gimp to evaluate the sprite construction script.

A subsequent patch will address the compatibility issues in the script itself
when evaluated with GIMP3.

Regards,
James
Description: Fix: [Makefile] GIMP3-compatible command-line
 GIMP3 introduces multiple batch script interpreters, so this patch
 selects the script-fu language used to build sprites from source.
 .
 In addition, use the gimp-console command in preference to gimp,
 because the former seems more reliable for non-interactive use.
 .
 Backported with minor adjustments from an upstream pull request.
Origin: https://github.com/OpenTTD/OpenGFX/pull/95
Bug-Debian: https://bugs.debian.org/1090256
Author: James Addison <j...@jp-hosting.net>

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index f2870a7..4062769 100644
--- a/Makefile
+++ b/Makefile
@@ -97,8 +97,8 @@ GREP           ?= grep
 PYTHON         ?= python
 
 # Graphics processing
-GIMP           ?= $(shell which gimp)
-GIMP_FLAGS     ?= -n -i
+GIMP           ?= $(shell command -v gimp-console)
+GIMP_FLAGS     ?= -n -i --batch-interpreter=plug-in-script-fu-eval
 
 # NML
 NML            ?= nmlc
-- 
2.47.2

Reply via email to