$OpenBSD: patch-abi_src_wp_main_unix_GNUmakefile_in,v 1.1 2003/02/11 19:47:34 couderc Exp $
--- abi/src/wp/main/unix/GNUmakefile.in.orig	Thu Jan 23 02:08:17 2003
+++ abi/src/wp/main/unix/GNUmakefile.in	Tue Feb 11 19:16:43 2003
@@ -636,11 +636,13 @@ install-exec-local:	install-wrapper
 	@if test -f $(DESTDIR)/$(bindir)/abiword; then \
 	  echo "$(DESTDIR)/$(bindir)/abiword is a regular file - I'm not going to create a link."; \
 	else \
-	  ln -sf $(DESTDIR)/$(bindir)/AbiWord $(DESTDIR)/$(bindir)/abiword; \
+	  ln -sf $(LOCALBASE)/bin/AbiWord $(DESTDIR)/$(bindir)/abiword; \
 	fi
 
 install-wrapper:	
-	@$(top_srcdir)/src/pkg/common/unix/scripts/makewrapper.sh AbiWord $(pkgdatadir) $(bindir) $(DESTDIR)
+	@$(top_srcdir)/src/pkg/common/unix/scripts/makewrapper.sh AbiWord \
+		$(LOCALBASE)/share/AbiSuite $(LOCALBASE)/bin \
+		`echo $(PREFIX) | sed -e s#$(LOCALBASE)##`
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
