$NetBSD: patch-ae,v 1.2 2006/05/15 23:26:18 joerg Exp $

--- iwidgets/Makefile.in.orig	Wed Sep 25 23:12:59 2002
+++ iwidgets/Makefile.in
@@ -40,7 +40,7 @@ libdir = @libdir@
 INSTALL_ROOT =
 
 # Path name to use when installing library scripts:
-SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)/iwidgets$(IWIDGETS_VERSION)
+SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/lib/tcl/iwidgets$(VERSION)
 
 # Directory in which to install the archive libtcl.a:
 LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
@@ -164,7 +164,7 @@ install-doc:
 	@echo "Installing man pages from $(TOP_DIR)/doc into $(MAN_INSTALL_DIR)"
 	@cd $(TOP_DIR)/doc; for i in *.n; \
 	    do \
-	    rm -f $(MAN_INSTALL_DIR)/`basename $$i`; \
+	    [ $$i != panedwindow.n ] && rm -f $(MAN_INSTALL_DIR)/`basename $$i`; \
 	    rm -f $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \
 	    sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
 	        $$i > $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \
