Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/canlock/files: canlock-2b-make.patch
Date: Fri, 30 Sep 2011 10:44:37
Message-Id: 20110930100517.E792E20069@flycatcher.gentoo.org
1 radhermit 11/09/30 10:05:17
2
3 Added: canlock-2b-make.patch
4 Log:
5 Initial import (bug #104244).
6
7 (Portage version: 2.2.0_alpha60/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-libs/canlock/files/canlock-2b-make.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/canlock/files/canlock-2b-make.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/canlock/files/canlock-2b-make.patch?rev=1.1&content-type=text/plain
14
15 Index: canlock-2b-make.patch
16 ===================================================================
17 --- canlock2b.orig/Makefile
18 +++ canlock2b/Makefile
19 @@ -15,16 +15,17 @@
20 $(CC) $(CFLAGS) t/$@.c -o $@ $(LDFLAGS)
21
22 $(STATIC_LIB):
23 - cd src && make
24 + cd src && $(MAKE) libcanlock.so.2.0.0
25 + cd src && $(MAKE) libcanlock.a
26 ln -s src/libcanlock.a libcanlock.a
27
28 clean:
29 rm -f src/*.o t/*.o t/*.out *.gmon gmon.*
30 - cd src && make clean
31 + cd src && $(MAKE) clean
32 rm -f *.a canlocktest hmactest sha1test *.exe *.h lib-stamp
33
34 install: all
35 - cd src && make install DESTDIR=$(DESTDIR)
36 + cd src && $(MAKE) install DESTDIR=$(DESTDIR)
37 install --mode=644 include/canlock.h $(DESTDIR)/usr/include
38
39 test: all
40 --- canlock2b.orig/src/Makefile
41 +++ canlock2b/src/Makefile
42 @@ -13,8 +13,8 @@
43
44 libcanlock.a:
45 $(CC) $(CFLAGS) -c $(SOURCES)
46 - ar cru libcanlock.a $(OBJS)
47 - ranlib libcanlock.a
48 + $(AR) cru libcanlock.a $(OBJS)
49 + $(RANLIB) libcanlock.a
50 rm $(OBJS)
51
52 libcanlock.so.2.0.0:
53 @@ -26,7 +26,7 @@
54 cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so.2
55 cd $(DESTDIR)/usr/lib && ln -s libcanlock.so.2.0.0 libcanlock.so
56 $(INSTALL) libcanlock.a $(DESTDIR)/usr/lib/libcanlock.a
57 - ranlib $(DESTDIR)/usr/lib/libcanlock.a
58 + $(RANLIB) $(DESTDIR)/usr/lib/libcanlock.a
59
60 clean:
61 rm -f $(OBJS) $(LIBS)