$NetBSD: patch-ad,v 1.3 2009/09/02 11:38:01 wiz Exp $

--- src/Makefile.in.orig	2007-09-04 08:41:04.000000000 +0000
+++ src/Makefile.in
@@ -220,8 +220,8 @@ target_alias = @target_alias@
 target_cpu = @target_cpu@
 target_os = @target_os@
 target_vendor = @target_vendor@
-gamesdir = $(prefix)/games
-scoredir = /var/games
+gamesdir = $(prefix)/bin
+scoredir = $(localstatedir)/games
 score = powermanga.hi
 powermanga_SOURCES = $(SOURCES_MAIN) $(SOURCES_EXTRA)
 #powermanga_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@
@@ -1247,13 +1247,10 @@ uninstall-am: uninstall-gamesPROGRAMS un
 
 
 install-data-hook:
-	-chown root:games "$(DESTDIR)/$(gamesdir)/powermanga"
-	-chmod 2755 "$(DESTDIR)/$(gamesdir)/powermanga"
-	$(INSTALL) -d $(DESTDIR)/$(scoredir)
-	-for suffix in "-easy" "" "-hard"; do \
-	  touch "$(DESTDIR)/$(scoredir)/$(score)$$suffix"; \
-	  chown root:games "$(DESTDIR)/$(scoredir)/$(score)$$suffix"; \
-	  chmod 644 "$(DESTDIR)/$(scoredir)/$(score)$$suffix"; \
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)/$(scoredir)
+	@for suffix in "-easy" "" "-hard"; do \
+	  $(TOUCH) "$(WRKSRC)/$(score)$$suffix" && \
+	  $(BSD_INSTALL_GAME_DATA) "$(WRKSRC)/$(score)$$suffix" $(DESTDIR)/$(scoredir)/; \
 	done
 # 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.
