]> git.pld-linux.org Git - packages/cups-filters.git/blame - cups-filters-dbus.patch
up to 1.28.7
[packages/cups-filters.git] / cups-filters-dbus.patch
CommitLineData
98eddd8d
JR
1diff -up cups-filters-1.0.41/Makefile.am.dbus cups-filters-1.0.41/Makefile.am
2--- cups-filters-1.0.41/Makefile.am.dbus 2013-10-25 14:12:56.000000000 +0100
3+++ cups-filters-1.0.41/Makefile.am 2013-11-06 17:16:58.504234619 +0000
4@@ -474,9 +474,11 @@ gstoraster_SOURCES = \
98eddd8d
JR
5 gstoraster_CFLAGS = \
6 $(CUPS_CFLAGS) \
32c40dff 7 $(LIBQPDF_CFLAGS) \
98eddd8d
JR
8+ $(DBUS_CFLAGS) \
9 -I$(srcdir)/cupsfilters/
10 gstoraster_LDADD = \
11 $(CUPS_LIBS) \
32c40dff 12 $(LIBQPDF_LIBS) \
98eddd8d
JR
13+ $(DBUS_LIBS) \
14 libcupsfilters.la
15
16 imagetopdf_SOURCES = \
17diff -up cups-filters-1.0.41/config.h.in.dbus cups-filters-1.0.41/config.h.in
18diff -up cups-filters-1.0.41/configure.ac.dbus cups-filters-1.0.41/configure.ac
19--- cups-filters-1.0.41/configure.ac.dbus 2013-10-30 07:21:44.000000000 +0000
20+++ cups-filters-1.0.41/configure.ac 2013-11-06 17:23:07.619921079 +0000
21@@ -114,6 +114,18 @@ AX_COMPARE_VERSION([$CUPS_VERSION],[gt],
22 AC_DEFINE(PDFTOPDF, [], [Needed for pdftopdf filter compilation])
23 AC_DEFINE_DIR(BANNERTOPDF_DATADIR, "{CUPS_DATADIR}/data", [Directory where bannertopdf finds its data files (PDF templates)])
24
25+dnl DBus support
26+DBUS_CFLAGS=""
27+DBUS_LIBS=""
28+AC_ARG_ENABLE([dbus], AC_HELP_STRING([--disable-dbus],
29+ [Do not use dbus to communicate with external services]))
30+if test "$enable_dbus" != "no"; then
31+ PKG_CHECK_MODULES(DBUS, [dbus-1], [HAVE_DBUS=-DHAVE_DBUS])
32+ AC_DEFINE([HAVE_DBUS], [], [Defines if dbus is available.])
33+fi
34+AC_SUBST(DBUS_CFLAGS)
35+AC_SUBST(DBUS_LIBS)
36+
37 AC_SEARCH_LIBS([dlopen],
38 [dl],
39 [AS_IF([test "$ac_cv_search_dlopen" != "none required"], [
40@@ -640,6 +652,7 @@ Build configuration:
41 php-config: ${with_php_config}
42 test-font: ${with_test_font_path}
43 tiff: ${with_tiff}
44+ dbus: ${HAVE_DBUS}
45 avahi: ${enable_avahi}
46 browsing: ${with_browseremoteprotocols}
47 werror: ${enable_werror}
cbe62ebd
JB
48--- cups-filters-1.0.42/cupsfilters/colord.c.orig 2013-11-27 00:40:41.000000000 +0100
49+++ cups-filters-1.0.42/cupsfilters/colord.c 2013-12-01 14:33:00.854197621 +0100
50@@ -32,12 +32,12 @@ MIT Open Source License - http://www.o
98eddd8d
JR
51 #include <stdio.h>
52 #include <sys/types.h>
53
cbe62ebd 54+#include "colord.h"
98eddd8d
JR
55+
56 #ifdef HAVE_DBUS
57 #include <dbus/dbus.h>
58 #endif
cbe62ebd
JB
59
60-#include "colord.h"
61-
62 #define QUAL_COLORSPACE 0
63 #define QUAL_MEDIA 1
64 #define QUAL_RESOLUTION 2
This page took 1.850494 seconds and 4 git commands to generate.