* [gentoo-commits] gentoo-x86 commit in x11-plugins/wmSMPmon/files: wmSMPmon-3.1-makefile.patch
@ 2008-02-12 16:10 Michele Noberasco (s4t4n)
0 siblings, 0 replies; only message in thread
From: Michele Noberasco (s4t4n) @ 2008-02-12 16:10 UTC (permalink / raw
To: gentoo-commits
s4t4n 08/02/12 16:10:44
Added: wmSMPmon-3.1-makefile.patch
Log:
Revision bump, see bug #207804.
(Portage version: 2.1.3.19)
Revision Changes Path
1.1 x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-makefile.patch?rev=1.1&content-type=text/plain
Index: wmSMPmon-3.1-makefile.patch
===================================================================
--- Makefile.orig 2005-02-22 23:24:23.000000000 +0100
+++ Makefile 2008-01-28 00:12:33.000000000 +0100
@@ -2,22 +2,24 @@
# Adapted for wmSMPmon 2.9.x and higher: Thomas Ribbrock
# Change the following two to determine installation location
-BINDIR=/usr/local/bin/
-MANDIR=/usr/local/share/man/
+PREFIX=/usr
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
SRC = general.c sysinfo-linux.c ../wmgeneral/wmgeneral.c wmSMPmon.c
EXE = wmSMPmon
MAN = wmSMPmon.1
OBJ = $(SRC:.c=.o)
INSTALL = /usr/bin/install
-INSTALLEXEFLAGS = -m 755 -s
+INSTALLEXEFLAGS = -m 755
INSTALLMANFLAGS = -m 644
-CC = gcc
-CFLAGS = -Wall -O2 -g
-LIB = -L/usr/X11R6/lib -lXpm -lXext -lX11
+CC ?= gcc
+CFLAGS += -Wall
+LIBDIR ?= /usr/lib
+LIBS= -lXpm -lXext -lX11
all: $(OBJ)
- $(CC) -o $(EXE) $(OBJ) $(LIB)
+ $(CC) $(CFLAGS) -o $(EXE) $(OBJ) -L$(LIBDIR) $(LDFLAGS) $(LIBS)
$(OBJ): %.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
@@ -28,6 +31,7 @@
rm -rf ../wmgeneral/*.o
install:
- $(INSTALL) $(INSTALLEXEFLAGS) $(EXE) $(BINDIR)
- $(INSTALL) -d $(MANDIR)/man1
- $(INSTALL) $(INSTALLMANFLAGS) $(MAN) $(MANDIR)/man1
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) $(INSTALLEXEFLAGS) $(EXE) $(DESTDIR)$(BINDIR)
+ $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
+ $(INSTALL) $(INSTALLMANFLAGS) $(MAN) $(DESTDIR)$(MANDIR)/man1
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-12 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 16:10 [gentoo-commits] gentoo-x86 commit in x11-plugins/wmSMPmon/files: wmSMPmon-3.1-makefile.patch Michele Noberasco (s4t4n)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox