$OpenBSD: patch-WindowMaker_Defaults_Makefile_in,v 1.3 2020/05/27 09:07:55 solene Exp $
Index: WindowMaker/Defaults/Makefile.in
--- WindowMaker/Defaults/Makefile.in.orig
+++ WindowMaker/Defaults/Makefile.in
@@ -562,12 +562,13 @@ WMWindowAttributes: $(srcdir)/WMWindowAttributes.in
 
 WindowMaker: $(srcdir)/WindowMaker.in
 	$(AM_V_GEN)sed -e "s:#pkgdatadir#:$(pkgdatadir):" \
+		-e "s:#prefix#:$(prefix):" \
 		-e "s:#pixmapdir#:$(pixmapdir):" $(srcdir)/WindowMaker.in \
 		> WindowMaker ; \
 	chmod 644 WindowMaker
 
 WMState: $(srcdir)/WMState.in
-	$(AM_V_GEN)sed -e "s:#wprefs#:$(wpexecbindir)/WPrefs:" $(srcdir)/WMState.in > WMState ; \
+	$(AM_V_GEN)sed -e "s:#wprefs#:${TRUEPREFIX}/bin/WPrefs:" $(srcdir)/WMState.in > WMState ; \
 	chmod 644 WMState
 
 WMRootMenu: ./../plmenu
