$OpenBSD$

Index: include/Make/Install.make
--- include/Make/Install.make.orig
+++ include/Make/Install.make
@@ -125,19 +125,19 @@ $(INST_DIR) $(UNIX_BIN):
 	$(MAKE_DIR_CMD) $@
 
 $(STARTUP): $(ARCH_DISTDIR)/$(GRASS_NAME).tmp
-	sed -e 's#'@GISBASE@'#'$(INST_DIR)'#g' \
+	sed -e 's#'@GISBASE@'#'${TRUEPREFIX}/grass-$(GRASS_VERSION_NUMBER)'#g' \
 	    -e 's#'@LD_LIBRARY_PATH_VAR@'#'$(LD_LIBRARY_PATH_VAR)'#g' \
 	    -e 's#'@CONFIG_PROJSHARE@'#'$(PROJSHARE)'#g' \
 	    $< > $@
 	-$(CHMOD) a+x $@
 
 define fix_gisbase
-sed -e 's#$(GISBASE)#$(INST_DIR)#g' $< > $@
+sed -e 's#$(GISBASE)#${TRUEPREFIX}/grass-$(GRASS_VERSION_NUMBER)#g' $< > $@
 endef
 
 define fix_grass_home
-sed -e 's#^\(GRASS_HOME.[^=]*\).*#\1= $(INST_DIR)#g' \
-    -e 's#$(GISBASE)#$(INST_DIR)#g' $< > $@
+sed -e 's#^\(GRASS_HOME.[^=]*\).*#\1= ${TRUEPREFIX}/grass-$(GRASS_VERSION_NUMBER)#g' \
+    -e 's#$(GISBASE)#${TRUEPREFIX}/grass-$(GRASS_VERSION_NUMBER)#g' $< > $@
 endef
 
 define fix_grass_arch
