summaryrefslogtreecommitdiff
path: root/games/xzip/patches/patch-aa
blob: 1b663d28e7cde1ed4a5bbe049ed74402a23f1380 (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
43
44
45
46
47
48
49
$NetBSD: patch-aa,v 1.2 2001/06/15 23:04:52 wiz Exp $

--- Makefile.orig	Sun Jul 12 00:27:32 1998
+++ Makefile	Tue Aug 11 00:14:31 1998
@@ -57,15 +57,15 @@
 #SYSTEMFLAGS = -DBIG_END_MODE
 
 # 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.
 # The following are defaults that might work.
 
-XINCLUDE = /usr/include/X11
-XLIB = /usr/lib/X11
+XINCLUDE = $(X11BASE)/include
+XLIB = $(X11BASE)/lib
 
 # If your compiler can't find these things, try commenting out the
 # above, and uncommenting various versions below. Also look around
@@ -90,12 +90,12 @@
 # --------------------
 
 # definition for where to install xzip executable and man page
-DESTDIR = /usr/local
+DESTDIR = $(PREFIX)
 
 # --------------------
 
 CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
-LDFLAGS =
+LDFLAGS = -Wl,-R$(X11BASE)/lib 
 LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
 
 # definitions for the default fonts. Users can override these with X resources.
@@ -152,8 +152,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_MAN} $(PROGRAM).1 $(DESTDIR)/man/man6/$(PROGRAM).6
 
 clean :
 	-rm -f *~ *.o $(PROGRAM) test