Gentoo Archives: gentoo-commits

From: "Michele Noberasco (s4t4n)" <s4t4n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmacpimon/files: Makefile.patch
Date: Mon, 06 Sep 2010 07:48:37
Message-Id: 20100906074833.5745F2003C@flycatcher.gentoo.org
1 s4t4n 10/09/06 07:48:33
2
3 Modified: Makefile.patch
4 Log:
5 Reworked Makefile patch, simplified ebuild. Closes bug #336091.
6 (Portage version: 2.1.8.3/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 x11-plugins/wmacpimon/files/Makefile.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmacpimon/files/Makefile.patch?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmacpimon/files/Makefile.patch?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmacpimon/files/Makefile.patch?r1=1.1&r2=1.2
14
15 Index: Makefile.patch
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/wmacpimon/files/Makefile.patch,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- Makefile.patch 2 Dec 2008 11:29:52 -0000 1.1
22 +++ Makefile.patch 6 Sep 2010 07:48:33 -0000 1.2
23 @@ -1,13 +1,24 @@
24 ---- Makefile 2002-11-26 22:53:07.000000000 +0100
25 -+++ Makefile.new 2008-12-02 12:25:29.000000000 +0100
26 -@@ -11,8 +11,10 @@
27 +--- Makefile 2010-09-06 11:33:16.000000000 +0200
28 ++++ Makefile.new 2010-09-06 11:36:28.000000000 +0200
29 +@@ -1,8 +1,5 @@
30 +-OPT = -O3 -DACPI
31 +-
32 +-CC = gcc
33 +-CFLAGS = $(OPT) -Wall -I/usr/X11R6/include
34 +-LDFLAGS = $(OPT) -L/usr/X11R6/lib -lX11 -lXpm -lXext
35 ++CFLAGS += -DACPI -Wall -I/usr/X11R6/include
36 ++LIBS = -DACPI -L/usr/X11R6/lib -lX11 -lXpm -lXext
37 +
38 + SRCS = wmacpimon.c libacpi.c
39 + OBJS = wmacpimon.o libacpi.o
40 +@@ -11,8 +8,10 @@
41 all: wmacpimon wmacpimond
42
43 wmacpimon: $(OBJS)
44 -+ $(CC) $(CFLAGS) -o wmacpimon $^ $(LDFLAGS)
45 ++ $(CC) $(LDFLAGS) -o wmacpimon $^ $(LIBS)
46
47 wmacpimond: $(OBJZ)
48 -+ $(CC) $(CFLAGS) -o wmacpimond $^ $(LDFLAGS)
49 ++ $(CC) $(LDFLAGS) -o wmacpimond $^ $(LIBS)
50
51 clean:
52 rm -f *.o *~ wmacpimon wmacpimond trace *.out *.bb *.bbg