$OpenBSD: patch-Makefile_in,v 1.6 2014/11/07 17:10:36 schwarze Exp $
chunk 1: Install preformatted manuals, not source pages (local change).
chunk 2: src/devices/gropdf depends on arch/misc (to be submitted upstream).
--- Makefile.in.orig	Tue Nov  4 09:38:35 2014
+++ Makefile.in	Fri Nov  7 17:30:00 2014
@@ -253,15 +253,15 @@ manroot=$(mandir)
 
 # `man1ext' is the man section for user commands.
 man1ext=1
-man1dir=$(manroot)/man$(man1ext)
+man1dir=$(manroot)/cat$(man1ext)
 
 # `man5ext' is the man section for file formats.
 man5ext=5
-man5dir=$(manroot)/man$(man5ext)
+man5dir=$(manroot)/cat$(man5ext)
 
 # `man7ext' is the man section for macros.
 man7ext=7
-man7dir=$(manroot)/man$(man7ext)
+man7dir=$(manroot)/cat$(man7ext)
 
 # `dist' target is disallowed in some `configure' combinations.
 doc_dist_target_ok=@doc_dist_target_ok@
@@ -895,6 +895,8 @@ $(GNULIBDIRS): FORCE
 	    || eval $$srcdir/configure "$$args" --srcdir=$$srcdir; \
 	  $(MAKE) ACLOCAL=: AUTOCONF=: AUTOHEADER=: AUTOMAKE=: $(do) ;; \
 	esac
+
+$(SHPROGDIRS): $(PROGDEPDIRS)
 
 $(OTHERDIRS): $(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS) $(SHPROGDIRS)
 
