Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ghostscript: add cups support
@ 2020-05-01 15:49 Alexey Lukyanchuk
  2020-05-01 19:50 ` Yann E. MORIN
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey Lukyanchuk @ 2020-05-01 15:49 UTC (permalink / raw)
  To: buildroot

Ghostscript can be used for cups printing.

In current version it's disabled, but may be needed for some customers.

This patch add cups support if cups enabled.

Signed-off-by: Alexey Lukyanchuk <skif@skif-web.ru>
---
 package/ghostscript/ghostscript.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/ghostscript/ghostscript.mk b/package/ghostscript/ghostscript.mk
index 1d6f8d04a0..7d12195f17 100644
--- a/package/ghostscript/ghostscript.mk
+++ b/package/ghostscript/ghostscript.mk
@@ -39,7 +39,6 @@ GHOSTSCRIPT_CONF_ENV = \
 
 GHOSTSCRIPT_CONF_OPTS = \
 	--disable-compile-inits \
-	--disable-cups \
 	--enable-fontconfig \
 	--with-fontpath=/usr/share/fonts \
 	--enable-freetype \
@@ -68,6 +67,15 @@ else
 GHOSTSCRIPT_CONF_OPTS += --disable-openjpeg
 endif
 
+ifeq ($(BR2_PACKAGE_CUPS),y)
+GHOSTSCRIPT_DEPENDENCIES += cups
+GHOSTSCRIPT_CONF_OPTS  += \
+	CUPSCONFIG=$(STAGING_DIR)/usr/bin/cups-config \
+	--enable-cups
+else
+GHOSTSCRIPT_CONF_OPTS += --disable-cups
+endif
+
 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
 GHOSTSCRIPT_DEPENDENCIES += xlib_libX11
 GHOSTSCRIPT_CONF_OPTS += --with-x
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-01 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-01 15:49 [Buildroot] [PATCH 1/1] package/ghostscript: add cups support Alexey Lukyanchuk
2020-05-01 19:50 ` Yann E. MORIN
2020-05-01 20:06   ` Alexey Lukyanchuk
2020-05-01 20:20     ` Yann E. MORIN
2020-05-01 20:23       ` Alexey Lukyanchuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox