blob: 4336a802c40694ea939ae9e2b21ff9b98876f31b (
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
50
51
|
$NetBSD: patch-aa,v 1.4 2015/07/27 22:22:18 wiz Exp $
Adapt Makefile for pkgsrc.
--- 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)${PREFIX}/bin
+ ${BSD_INSTALL_MAN} $(PROGRAM).1 $(DESTDIR)${PREFIX}/${PKGMANDIR}/man6/$(PROGRAM).6
clean :
-rm -f *~ *.o $(PROGRAM) test
|