summaryrefslogtreecommitdiff
path: root/graphics/wmgrabimage/files/patch-aa
blob: e81879496f1d18d6f4605e1923d19c3dfed71713 (plain)
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
--- Makefile.orig	Sun May 27 16:02:18 2001
+++ Makefile	Fri Jul 27 17:06:11 2001
@@ -1,8 +1,6 @@
-CC     = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+INCDIR = -I${LOCALBASE}/include
+DESTDIR= ${PREFIX}
+LIBDIR = -L${LOCALBASE}/lib
 # for linux
 LIBS   = -lXpm -lX11 -lXext
 # for Solaris
@@ -12,14 +10,14 @@
 
 
 .c.o:
-	$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+	$(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
 
 
 all:	wmGrabImage.o wmGrabImage
 
 wmGrabImage.o: wmGrabImage_master.xpm wmGrabImage_mask.xbm
 wmGrabImage:	$(OBJS) 
-	$(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $^ $(INCDIR) $(LIBDIR) $(LIBS)
+	$(CC) $(CFLAGS) $(SYSTEM) -o wmGrabImage $(OBJS) $(LIBDIR) $(LIBS)
 
 clean:
 	for i in $(OBJS) ; do \
@@ -28,7 +26,7 @@
 	rm -f wmGrabImage
 
 install:: wmGrabImage
-	install -s -m 0755 wmGrabImage $(DESTDIR)/bin
-	install    -m 0755 GrabImage $(DESTDIR)/bin
-	install    -m 0644 wmGrabImage.1 $(DESTDIR)/man/man1 
+	${BSD_INSTALL_PROGRAM} wmGrabImage $(DESTDIR)/bin
+	${BSD_INSTALL_SCRIPT} GrabImage $(DESTDIR)/bin
+	${BSD_INSTALL_MAN} wmGrabImage.1 $(DESTDIR)/man/man1