summaryrefslogtreecommitdiff
path: root/time/pclock/patches/patch-aa
blob: d515da251794d2432427102566b0ebea83976a64 (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
$NetBSD: patch-aa,v 1.2 2004/01/01 16:22:22 salo Exp $

--- src/Makefile.orig	Thu Nov 25 21:57:58 1999
+++ src/Makefile	Tue Aug 20 02:36:32 2002
@@ -1,4 +1,4 @@
-BINDIR = /usr/X11R6/bin
+BINDIR = ${PREFIX}/bin
 
 PROG = pclock
 OBJS = Main.o Graphics.o getopt.o getopt1.o
@@ -5,10 +5,8 @@
 
 DEFAULT_XPM = round-3d.xpm
 
-INCDIR = -I/usr/X11R6/include -I.
-LIBDIR = -L/usr/X11R6/lib
-CC = gcc
-CFLAGS = -O -s -Wall
+INCDIR = -I.
+LIBDIR = ${LDFLAGS}
 LIBS = -lXpm -lXext -lX11 -lm
 
 ###############################################################################
@@ -16,7 +14,7 @@
 all: $(PROG)
 
 install: all
-	install -s -m 111 -o bin -g bin $(PROG) $(BINDIR)
+	${BSD_INSTALL_PROGRAM} $(PROG) $(BINDIR)
 
 clean:
 	rm -f *.o Makefile.bak Default.xpm *~ #*
@@ -27,7 +25,7 @@
 ###############################################################################
 
 Default.xpm:
-	ln -s ../XPM/$(DEFAULT_XPM) $@
+	${LN} -s ../XPM/$(DEFAULT_XPM) $@
 
 Graphics.o: PClock.h Default.xpm