diff --git a/games/nbsdgames/files/patch-Makefile b/games/nbsdgames/files/patch-Makefile index 00cd15fc084b..9d27d42dde0c 100644 --- a/games/nbsdgames/files/patch-Makefile +++ b/games/nbsdgames/files/patch-Makefile @@ -1,35 +1,35 @@ ---- Makefile.orig 2021-05-05 17:39:38 UTC +--- Makefile.orig 2021-05-07 00:50:08 UTC +++ Makefile @@ -6,7 +6,7 @@ GAMES_DIR?=/usr/games SCORES_DIR?=/var/games MAN_DIR?=/usr/share/man/man6 -CFLAGS+= -Wno-unused-result -D SCORES_DIR=\"$(SCORES_DIR)\" -+CFLAGS+= ${CPPFLAGS} -Wno-unused-result -D SCORES_DIR=\"$(SCORES_DIR)\" ++CFLAGS+= ${CPPFLAGS} -D SCORES_DIR=\"$(SCORES_DIR)\" LDFLAGS+= -lncurses -lm @@ -16,11 +16,11 @@ SCORE_FILES= pipes_scores jewels_scores miketron_score all: $(ALL) scorefiles: - for sf in $(SCORE_FILES); do touch $(SCORES_DIR)/$$sf ; chmod 664 $(SCORES_DIR)/$$sf; chown :games $(SCORES_DIR)/$$sf ; done; - for game in $(ALL); do chown :games $(GAMES_DIR)/$$game; chmod g+s $(GAMES_DIR)/$$game ; done; + mkdir -p ${DESTDIR}${SCORES_DIR} + for sf in $(SCORE_FILES); do touch ${DESTDIR}$(SCORES_DIR)/$$sf.sample; done; manpages: - cp man/* $(MAN_DIR) + cp man/* ${DESTDIR}$(MAN_DIR) jewels: jewels.c config.h common.h $(CC) jewels.c $(LDFLAGS) $(CFLAGS) -o ./jewels sudoku: sudoku.c config.h @@ -60,6 +60,6 @@ clean: rm $(ALL) uninstall: for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz done; -install: $(ALL) - cp $(ALL) $(GAMES_DIR) +install: $(ALL) manpages scorefiles + cp $(ALL) ${DESTDIR}$(GAMES_DIR)