[Pkg-voip-commits] [kamailio] 02/03: add json-c patch
Victor Seva Lopez
maniac-guest at moszumanska.debian.org
Thu Apr 17 15:41:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
maniac-guest pushed a commit to branch master
in repository kamailio.
commit 1f2da97bf923988feaad25e0cb1da6221a7e819e
Author: Victor Seva <vseva at sipwise.com>
Date: Thu Apr 17 16:58:50 2014 +0200
add json-c patch
---
debian/patches/json-c.patch | 39 +++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 40 insertions(+)
diff --git a/debian/patches/json-c.patch b/debian/patches/json-c.patch
new file mode 100644
index 0000000..a2bc54f
--- /dev/null
+++ b/debian/patches/json-c.patch
@@ -0,0 +1,39 @@
+Subject: [PATCH] json/jsonrpc-c: use json-c lib
+--- a/modules/json/Makefile
++++ b/modules/json/Makefile
+@@ -11,12 +11,12 @@
+
+ BUILDER = $(shell which pkg-config)
+ ifeq ($(BUILDER),)
+- DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \
++ DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json-c \
+ -I$(LOCALBASE)/include
+- LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -ljson
++ LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -ljson-c
+ else
+- DEFS+= $(shell pkg-config --cflags json)
+- LIBS+= $(shell pkg-config --libs json)
++ DEFS+= $(shell pkg-config --cflags json-c)
++ LIBS+= $(shell pkg-config --libs json-c)
+ endif
+ DEFS+=-DKAMAILIO_MOD_INTERFACE
+
+--- a/modules/jsonrpc-c/Makefile
++++ b/modules/jsonrpc-c/Makefile
+@@ -11,12 +11,12 @@
+
+ BUILDER = $(shell which pkg-config)
+ ifeq ($(BUILDER),)
+- DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \
++ DEFS+=-I/usr/include/json-c -I$(LOCALBASE)/include/json-c \
+ -I$(LOCALBASE)/include
+- LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson
++ LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson-c
+ else
+- DEFS+= $(shell pkg-config --cflags json)
+- LIBS+= $(shell pkg-config --libs json)
++ DEFS+= $(shell pkg-config --cflags json-c)
++ LIBS+= $(shell pkg-config --libs json-c)
+ DEFS+= $(shell pkg-config --cflags libevent)
+ LIBS+= $(shell pkg-config --libs libevent)
+ endif
diff --git a/debian/patches/series b/debian/patches/series
index 55f8fe5..fa07f37 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ no_lib64_on_64_bits.patch
no_INSTALL_file.patch
fix_export.patch
default_fifo.patch
+json-c.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/kamailio.git
More information about the Pkg-voip-commits
mailing list