1b2a685d95
Patch the project makefiles to set MANDIR to the point to the correct location for installed manpages under ${PKGMANDIR}.
34 lines
753 B
Text
34 lines
753 B
Text
$NetBSD: patch-ab,v 1.2 2017/08/19 00:24:36 jlam Exp $
|
|
|
|
--- chat/Makefile.netbsd.orig 2004-12-31 23:50:59.000000000 +0100
|
|
+++ chat/Makefile.netbsd
|
|
@@ -0,0 +1,29 @@
|
|
+DESTDIR = @DESTDIR@
|
|
+BINDIR = $(DESTDIR)/sbin
|
|
+MANDIR = $(DESTDIR)/$(PKGMANDIR)/man8
|
|
+
|
|
+CDEF1= -DTERMIOS # Use the termios structure
|
|
+CDEF2= -DSIGTYPE=void # Standard definition
|
|
+CDEF3= -DHAS_STRLFUNCS # strlcat and strlcpy
|
|
+CDEFS= $(CDEF1) $(CDEF2) $(CDEF3)
|
|
+
|
|
+COPTS= -O2 -g -pipe
|
|
+CFLAGS= $(COPTS) $(CDEFS)
|
|
+
|
|
+INSTALL= install
|
|
+
|
|
+all: chat
|
|
+
|
|
+chat: chat.o
|
|
+ $(CC) -o chat chat.o
|
|
+
|
|
+chat.o: chat.c
|
|
+ $(CC) -c $(CFLAGS) -o chat.o chat.c
|
|
+
|
|
+install: chat
|
|
+ mkdir -p $(BINDIR)
|
|
+ $(INSTALL) -s -c chat $(BINDIR)
|
|
+ $(INSTALL) -c -m 644 chat.8 $(MANDIR)
|
|
+
|
|
+clean:
|
|
+ rm -f chat.o chat *~
|