$NetBSD: patch-ab,v 1.4 2006/03/16 17:32:03 joerg Exp $

--- Makefile.BSD.orig	2004-08-12 22:30:04.000000000 +0200
+++ Makefile.BSD
@@ -52,14 +52,17 @@ NOSHARED = YES
 BINDIR ?= ${PREFIX}/bin
 BINOWN ?= root
 
-.if defined(__NetBSD__)
-MANDIR ?= ${PREFIX}/share/man
-.elif defined(__FreeBSD__)
-MANDIR ?= ${PREFIX}/share/man/man
-.else
+#.if defined(__NetBSD__)
+#MANDIR ?= ${PREFIX}/share/man
+#.elif defined(__FreeBSD__)
+#MANDIR ?= ${PREFIX}/share/man/man
+#.else
 # 4.4BSD, including BSD/OS
-MANDIR ?= ${PREFIX}/share/man/cat
-.endif
+#MANDIR ?= ${PREFIX}/share/man/cat
+#.endif
+
+# Pkgsrc
+MANDIR?=	${PREFIX}/man
 
 # this check is a nasty hack and will break building 'host' in the
 # NetBSD source tree on any host that doesn't have this file....
@@ -124,7 +127,6 @@ CWARNFLAGS += -Wcomment
 CWARNFLAGS += -Wtraditional
 CWARNFLAGS += -Wcast-qual
 # -Wid-clash-LEN is sadly no longer supported in 3.2.2
-CWARNFLAGS += -Wid-clash-30
 CWARNFLAGS += -Wpointer-arith
 CWARNFLAGS += -Wshadow
 #
@@ -167,7 +169,6 @@ __GNULD__ ?= 1
 .if ${__GNULD__} >= 1
 LDFLAGS += -W
 LDFLAGS += -Wall
-LDFLAGS += -Wid-clash-30
 LDFLAGS += -Wl,--warn-common
 .endif
 
