pkgsrc/games/zombies/patches/patch-aa
2005-03-07 15:09:59 +00:00

58 lines
1.5 KiB
Text

$NetBSD: patch-aa,v 1.4 2005/03/07 15:09:59 adam Exp $
--- Makefile.orig 1999-06-26 14:37:17.000000000 +0000
+++ Makefile
@@ -3,16 +3,16 @@
# ---- FILE LOCATIONS ----
-PREFIX = /usr/local
+#PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/man/man6
SCOREFILE = /var/games/zombies_score
-BINOWN = games
-BINGRP = games
-BINMODE = 2555
-MANOWN = root
-MANGRP = wheel
-MANMODE = 444
+#BINOWN = games
+#BINGRP = games
+#BINMODE = 2555
+#MANOWN = root
+#MANGRP = wheel
+#MANMODE = 444
SCOREMODE = 664
# ---- COMPILER OPTIONS ----
@@ -49,9 +49,9 @@ LIBS = -lcurses -ltermcap
# ---- INSTALLATION PROGRAMS ----
# BSDish
-INSTALL_PROG = install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_MAN = install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
-INSTALL_SCORE = install -c -o ${BINOWN} -g ${BINGRP} -m ${SCOREMODE}
+INSTALL_PROG = ${BSD_INSTALL_GAME}
+INSTALL_MAN = ${BSD_INSTALL_MAN}
+INSTALL_SCORE = ${BSD_INSTALL_GAME_DATA}
# SysVish
#INSTALL_PROG = install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE}
@@ -65,7 +65,7 @@ SRCS = level.c main.c misc.c move.c sco
HDRS = zombies.h
MAN = zombies.6
OBJS = ${SRCS:.c=.o}
-CFLAGS = $(FLAGS) $(DEFS) -DSCORE_FILE=\"${SCOREFILE}\"
+CFLAGS += $(DEFS) -DSCORE_FILE=\"${SCOREFILE}\"
all: $(PROG)
@@ -77,6 +77,7 @@ ${OBJS}: ${HDRS}
install: ${PROG}
${INSTALL_PROG} ${PROG} ${BINDIR}
${INSTALL_MAN} ${MAN} ${MANDIR}
+ ${INSTALL_SCORE} /dev/null ${PREFIX}/share/games/zombies_score.dist
if [ ! -f ${SCOREFILE} ]; then \
${INSTALL_SCORE} /dev/null ${SCOREFILE} ; \
fi