aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Lukyanchuk <skif@skif-web.ru>2020-05-01 18:49:50 +0300
committerYann E. MORIN <yann.morin.1998@free.fr>2020-05-01 21:45:56 +0200
commitf9e359d7653f4af32a491e2baf4b6e524554174b (patch)
tree7c9507880c700e64865a95cad72eb5c6366589b4
parent59acde11f9f93e99df309b2ed7a14795bedbcfa9 (diff)
downloadbuildroot-f9e359d7653f4af32a491e2baf4b6e524554174b.tar.bz2
package/ghostscript: add cups support
Allow ghostscript to be used by cups for printing. Signed-off-by: Alexey Lukyanchuk <skif@skif-web.ru> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/ghostscript/ghostscript.mk10
1 files changed, 9 insertions, 1 deletions
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