[Buildroot] [PATCH 1/1] package/ghostscript: add pdf support

Fabrice Fontaine fontaine.fabrice at gmail.com
Sun Sep 4 14:45:41 UTC 2022


pdf support was disabled in commit
7a4944569ce83b0b7b0cabd6e8aa184b8cb72a22

It depends on openjpeg and jbig2dec

Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=14976

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/ghostscript/ghostscript.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/ghostscript/ghostscript.mk b/package/ghostscript/ghostscript.mk
index 5bf8b08966..a11aec1c54 100644
--- a/package/ghostscript/ghostscript.mk
+++ b/package/ghostscript/ghostscript.mk
@@ -43,7 +43,6 @@ GHOSTSCRIPT_CONF_OPTS = \
 	--enable-freetype \
 	--disable-gtk \
 	--without-libpaper \
-	--without-pdf \
 	--with-system-libtiff
 
 ifeq ($(BR2_PACKAGE_JBIG2DEC),y)
@@ -63,6 +62,12 @@ endif
 ifeq ($(BR2_PACKAGE_OPENJPEG),y)
 GHOSTSCRIPT_DEPENDENCIES += openjpeg
 GHOSTSCRIPT_CONF_OPTS += --enable-openjpeg
+
+ifeq ($(BR2_PACKAGE_JBIG2DEC),y)
+GHOSTSCRIPT_CONF_OPTS += --with-pdf
+else
+GHOSTSCRIPT_CONF_OPTS += --without-pdf
+endif
 else
 GHOSTSCRIPT_CONF_OPTS += --disable-openjpeg
 endif
-- 
2.35.1




More information about the buildroot mailing list