summaryrefslogtreecommitdiff
path: root/games/xzip/files/patch-aa
blob: 4deca9889d1a890c68335fa1a384a21f97d75dc8 (plain) (blame)
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
--- Makefile.orig	Sat Jan  3 13:42:44 1998
+++ Makefile	Sat Jun 27 23:59:49 1998
@@ -62,19 +62,21 @@
 # definitions for some arbitrary little-endian system
 #SYSTEMFLAGS = -DLITTLE_END_MODE
 
+SYSTEMFLAGS = -DAUTO_END_MODE
+
 # --------------------
 
 # definitions for where the X lib and include directories are
-XDIR = /usr
-XINCLUDE = $(XDIR)/include/X11
-XLIB = $(XDIR)/lib/X11
+XDIR = ${X11BASE}
+XINCLUDE = $(XDIR)/include
+XLIB = $(XDIR)/lib
 
 # definition for where to install xzip executable and man page
-DESTDIR = /usr/local
+DESTDIR = ${PREFIX}
 
 # --------------------
 
-CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
+CFLAGS += $(SYSTEMFLAGS) -I$(XINCLUDE)
 LDFLAGS =
 LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
@@ -132,8 +134,8 @@
 	$(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
 
 install: $(PROGRAM)
-	install -s $(PROGRAM) $(DESTDIR)/bin
-	install $(PROGRAM).1 $(DESTDIR)/man/man1
+	${BSD_INSTALL_PROGRAM} $(PROGRAM) $(DESTDIR)/bin
+	${BSD_INSTALL_DATA} $(PROGRAM).1 $(DESTDIR)/man/man1
 
 clean :
 	-rm -f *~ *.o $(PROGRAM) test