/
jsmn-0+git20161012-1bl1.src.patch
68 lines (68 loc) · 1.74 KB
/
jsmn-0+git20161012-1bl1.src.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- origsrc/jsmn/Makefile.am 1970-01-01 09:00:00.000000000 +0900
+++ src/jsmn/Makefile.am 2016-12-01 08:31:52.525857100 +0900
@@ -0,0 +1,21 @@
+
+noinst_PROGRAMS = simple jsondump
+simple_SOURCES = example/simple.c
+simple_LDADD = libjsmn.la
+jsondump_SOURCES = example/jsondump.c
+jsondump_LDADD = libjsmn.la
+
+check_PROGRAMS = jsmn_test
+jsmn_test_SOURCES = test/tests.c
+jsmn_test_LDADD = libjsmn.la
+
+TESTS = $(check_PROGRAMS)
+
+include_HEADERS = jsmn.h
+
+lib_LTLIBRARIES = libjsmn.la
+libjsmn_la_SOURCES = jsmn.c
+libjsmn_la_LDFLAGS = -no-undefined
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(PACKAGE).pc
--- origsrc/jsmn/configure.ac 1970-01-01 09:00:00.000000000 +0900
+++ src/jsmn/configure.ac 2016-12-01 08:27:19.249571500 +0900
@@ -0,0 +1,28 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([jsmn], [0])
+AC_CONFIG_SRCDIR([jsmn.c])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([subdir-objects])
+
+# Checks for programs.
+AC_PROG_CC
+LT_INIT
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+AC_CHECK_FUNCS([memset])
+
+AC_CONFIG_FILES([jsmn.pc Makefile])
+AC_OUTPUT
--- origsrc/jsmn/jsmn.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/jsmn/jsmn.pc.in 2016-12-01 08:27:19.253493400 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: jsmn
+Description: Minimalistic JSON parser in C
+Version: @VERSION@
+Libs: -L${libdir} -ljsmn
+Cflags: -I${includedir}