Files
pkgsrc-ng/games/xsoldier/patches/patch-aa
2013-09-26 17:14:40 +02:00

41 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$NetBSD: patch-aa,v 1.5 2010/02/14 22:28:55 joerg Exp $
--- Imakefile.orig Fri Feb 28 08:48:57 1997
+++ Imakefile Mon Sep 14 16:52:46 1998
@@ -11,12 +11,12 @@
/* インストールディレクトリ */
/* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^; */
-PIXMAPDIR = /usr/local/games/lib/xsoldier
-SCOREDIR = /usr/local/games/lib/xsoldier
-BINDIR = /usr/local/games
+PIXMAPDIR = ${DESTDIR}$(PREFIX)/share/xsoldier
+SCOREDIR = /var/games/
+BINDIR = ${DESTDIR}$(PREFIX)/bin
/* スコアファイル名SCOREDIR 以下に置かれます. */
-SCOREFILE = .scorefile
+SCOREFILE = xsoldier
/* ----------------------------------------------------------------------- */
@@ -93,9 +93,9 @@
@echo "install update . done"
install.score::
- @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \
- else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
- $(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
+ @if [ ! -e $(PIXMAPDIR)/$(SCOREFILE).score.dist ]; then \
+ $(BSD_INSTALL_DATA) scorefile.txt $(PIXMAPDIR)/$(SCOREFILE).score.dist ; \
+ fi
@echo "install score . done"
install.pixmap::
@@ -109,5 +109,5 @@
install.bin::
@if [ -d $(BINDIR) ]; then set +x; \
else (set -x; $(MKDIRHIER) $(BINDIR)); fi
- $(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
+ $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(BINDIR)/$(PROGRAM)
@echo "install bin . done"