cjson: bump to version 1.4.3
[buildroot-gz.git] / package / canfestival / 0001-install-pkgconfig-module-for-canfestival.patch
blob23f3d899f18ae464c74a39a2b71763c9da329df3
1 From s.martin49@gmail.com Sun Sep 28 14:59:53 2014
2 Content-Type: text/plain; charset="us-ascii"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [PATCH] Install pkgconfig module for canfestival
6 X-Mercurial-Node: c408fdc77aa18fcda81db4f0d038e8a69ba84bb2
7 X-Mercurial-Series-Index: 1
8 X-Mercurial-Series-Total: 1
9 Message-Id: <c408fdc77aa18fcda81d.1411909193@bobook>
10 X-Mercurial-Series-Id: <c408fdc77aa18fcda81d.1411909193@bobook>
11 User-Agent: Mercurial-patchbomb/3.1.1
12 Date: Sun, 28 Sep 2014 14:59:53 +0200
13 From: Samuel Martin <s.martin49@gmail.com>
14 To: canfestival-devel@lists.sourceforge.net
15 Cc: Samuel Martin <s.martin49@gmail.com>
17 # HG changeset patch
18 # User "Samuel Martin" <s.martin49@gmail.com>
19 # Date 1411906817 -7200
20 # Sun Sep 28 14:20:17 2014 +0200
21 # Node ID c408fdc77aa18fcda81db4f0d038e8a69ba84bb2
22 # Parent 7740ac6fdedc23e1ed6908d3d7db54833c88572b
23 Install pkgconfig module for canfestival.
25 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
26 Cc: Cluadio Laurita <claudio.laurita@integrazionetotale.it>
28 diff -r 7740ac6fdedc -r c408fdc77aa1 canfestival.pc.in
29 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
30 +++ b/canfestival.pc.in Sun Sep 28 14:20:17 2014 +0200
31 @@ -0,0 +1,12 @@
32 +PREFIX = SUB_PREFIX
33 +TARGET = SUB_TARGET
35 +prefix=${PREFIX}
36 +libdir=${prefix}/lib
37 +includedir=${prefix}/include/canfestival
39 +Name: Canfestival
40 +Description: Canfestival CANOpen library
41 +Version: 1
42 +Libs: -L${libdir} -lcanfestival -lcanfestival_${TARGET} -lrt -ldl -lpthread
43 +Cflags: -I${includedir}
44 diff -r 7740ac6fdedc -r c408fdc77aa1 configure
45 --- a/configure Thu Jun 12 14:07:16 2014 +0200
46 +++ b/configure Sun Sep 28 14:20:17 2014 +0200
47 @@ -813,6 +813,10 @@
48 MAKEFILES=$MAKEFILES\ drivers/$SUB_TARGET/Makefile.in
51 +if [ "$SUB_TARGET" = "unix" ]; then
52 + MAKEFILES=$MAKEFILES\ canfestival.pc.in
53 +fi
55 if [ "$SUB_TARGET" = "unix" -a "$SUB_TIMERS_DRIVER" = "kernel" ]; then
56 MAKEFILES=$MAKEFILES\
57 \ examples/kerneltest/Makefile.in\
58 diff -r 7740ac6fdedc -r c408fdc77aa1 src/Makefile.in
59 --- a/src/Makefile.in Thu Jun 12 14:07:16 2014 +0200
60 +++ b/src/Makefile.in Sun Sep 28 14:20:17 2014 +0200
61 @@ -132,9 +132,10 @@
62 $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
64 install: libcanfestival.a
65 - mkdir -p $(DESTDIR)$(PREFIX)/lib/
66 + mkdir -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
67 mkdir -p $(DESTDIR)$(PREFIX)/include/canfestival
68 cp libcanfestival.a $(DESTDIR)$(PREFIX)/lib/
69 + cp ../canfestival.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/
70 cp ../include/*.h $(DESTDIR)$(PREFIX)/include/canfestival
72 uninstall: