]> git.pld-linux.org Git - packages/cups-filters.git/blame - cups-filters-php.patch
- rebuild with poppler 0.65.0
[packages/cups-filters.git] / cups-filters-php.patch
CommitLineData
960629b2
JB
1--- cups-filters-1.0.41/configure.ac.orig 2013-12-01 10:26:49.834817503 +0100
2+++ cups-filters-1.0.41/configure.ac 2013-12-01 10:37:48.081456545 +0100
3@@ -568,6 +568,8 @@
4 ])
5 PHPDIR="`$PHPCONFIG --extension-dir`"
6 AC_SUBST(PHPDIR)
7+ PHP_CFLAGS="`$PHPCONFIG --includes`"
8+ AC_SUBST(PHP_CFLAGS)
9 ])
10
11 # =========
12--- cups-filters-1.0.41/Makefile.am.orig 2013-12-01 10:26:49.831484169 +0100
13+++ cups-filters-1.0.41/Makefile.am 2013-12-01 10:37:08.568124870 +0100
14@@ -696,7 +696,7 @@
15 scripting/php/phpcups.c \
16 scripting/php/phpcups.h
17 libphpcups_la_LIBADD = $(CUPS_LIBS)
18-libphpcups_la_CFLAGS = $(CUPS_CFLAGS)
19-libphpcups_la_LDFLAGS = -no-undefined
20+libphpcups_la_CFLAGS = $(CUPS_CFLAGS) $(PHP_CFLAGS)
21+libphpcups_la_LDFLAGS = -module -avoid-version -shared -no-undefined
b390b79a 22
960629b2
JB
23
24--- cups-filters-1.0.41/scripting/php/phpcups.c.orig 2012-06-22 18:10:47.000000000 +0200
25+++ cups-filters-1.0.41/scripting/php/phpcups.c 2013-12-01 10:50:16.171425151 +0100
26@@ -29,12 +29,16 @@
27 * Include necessary headers...
28 */
29
30-#include <cups/string-private.h>
31+#include <cups/cups.h>
32 #include "php.h"
33 #include "php_ini.h"
34 #include "ext/standard/info.h"
35 #include "phpcups.h"
36
37+#ifndef CUPS_SVERSION
38+# define CPPSTR(x) #x
39+# define CUPS_SVERSION CPPSTR(CUPS_VERSION_MAJOR) "." CPPSTR(CUPS_VERSION_MINOR) "." CPPSTR(CUPS_VERSION_PATCH)
40+#endif
41
42 /*
43 * PHP function list...
44--- cups-filters-1.0.41/scripting/php/phpcups.h.orig 2012-06-22 18:10:47.000000000 +0200
45+++ cups-filters-1.0.41/scripting/php/phpcups.h 2013-12-01 10:42:51.171443826 +0100
46@@ -22,7 +22,6 @@
47
48 # include <cups/cups.h>
49 # include <cups/language.h>
50-# include <cups/debug-private.h>
51 # include <fcntl.h>
52 # include <sys/stat.h>
53 # if defined(WIN32) || defined(__EMX__)
fa79957f
JP
54diff -urN cups-filters-1.0.53.orig/scripting/php/phpcups.c cups-filters-1.0.53/scripting/php/phpcups.c
55--- cups-filters-1.0.53.orig/scripting/php/phpcups.c 2014-05-01 18:48:49.622212848 +0200
56+++ cups-filters-1.0.53/scripting/php/phpcups.c 2014-05-01 18:49:21.228878551 +0200
57@@ -44,7 +44,7 @@
58 * PHP function list...
59 */
60
61-function_entry phpcups_functions[] =
62+zend_function_entry phpcups_functions[] =
63 {
64 PHP_FE(cups_cancel_job, NULL)
65 PHP_FE(cups_get_dests, NULL)
This page took 0.029842 seconds and 4 git commands to generate.