mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
games/nbsdgames: update to 5
From ChangeLog: https://github.com/abakh/nbsdgames/releases/tag/v5 * icon and menu shortcut included * tugow added * menu added * sudoku algorithm is replaced with a simple and fast algorithm that generates good puzzles in little time * miketron gameplay is improved upon * RedSquare now fits in the screen * command-line options are now in more conventional, getopt syntax * minor bug fixes PR: 261778 Reported by: fuz@fuz.su (maintainer)
This commit is contained in:
parent
e66a5ac7ef
commit
03c4407ac9
@ -1,6 +1,6 @@
|
||||
PORTNAME= nbsdgames
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 4.1.2
|
||||
DISTVERSION= 5
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= fuz@fuz.su
|
||||
@ -29,6 +29,7 @@ _GAMES= battleship \
|
||||
miketron \
|
||||
mines \
|
||||
muncher \
|
||||
nbsdgames \
|
||||
pipes \
|
||||
rabbithole \
|
||||
redsquare \
|
||||
@ -36,8 +37,12 @@ _GAMES= battleship \
|
||||
snakeduel \
|
||||
sos \
|
||||
sudoku \
|
||||
tugow
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/nbsdgames.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
|
||||
${INSTALL_DATA} ${WRKSRC}/nbsdgames.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
|
||||
.for game in ${_GAMES}
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${game}
|
||||
.endfor
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1626652244
|
||||
SHA256 (abakh-nbsdgames-v4.1.2_GH0.tar.gz) = b4ba777791274af7db13d2827b254cf998a757468e119c6ee106ccbeafcd04c1
|
||||
SIZE (abakh-nbsdgames-v4.1.2_GH0.tar.gz) = 49789
|
||||
TIMESTAMP = 1643821944
|
||||
SHA256 (abakh-nbsdgames-v5_GH0.tar.gz) = ca81d8b854a7bf9685bbc58aabc1a24cd617cadb7e9ddac64a513d2c8ddb2e6c
|
||||
SIZE (abakh-nbsdgames-v5_GH0.tar.gz) = 58893
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- Makefile.orig 2021-05-07 00:50:08 UTC
|
||||
--- Makefile.orig 2022-02-02 12:39:13 UTC
|
||||
+++ Makefile
|
||||
@@ -6,7 +6,7 @@
|
||||
GAMES_DIR?=/usr/games
|
||||
@ -10,11 +10,11 @@
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ SCORE_FILES= pipes_scores jewels_scores miketron_score
|
||||
all: $(ALL)
|
||||
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;
|
||||
- for game in $(ALL); do chown :games $(GAMES_DIR)/$$game; chmod g $(GAMES_DIR)/$$game ; done;
|
||||
+ mkdir -p ${DESTDIR}${SCORES_DIR}
|
||||
+ for sf in $(SCORE_FILES); do touch ${DESTDIR}$(SCORES_DIR)/$$sf.sample; done;
|
||||
|
||||
@ -24,12 +24,14 @@
|
||||
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)
|
||||
@@ -66,8 +66,8 @@ clean:
|
||||
for game in $(ALL); do rm $$game; done;
|
||||
uninstall:
|
||||
for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz done;
|
||||
for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz ;done;
|
||||
-install: $(ALL)
|
||||
- cp $(ALL) $(GAMES_DIR)
|
||||
- cp $(ALL) $(GAMES_DIR)
|
||||
+install: $(ALL) manpages scorefiles
|
||||
+ cp $(ALL) ${DESTDIR}$(GAMES_DIR)
|
||||
+ cp $(ALL) ${DESTDIR}$(GAMES_DIR)
|
||||
test:
|
||||
for game in $(ALL); do ./$$game ;done;
|
||||
|
||||
|
@ -8,6 +8,7 @@ bin/memoblocks
|
||||
@(,games,2555) bin/miketron
|
||||
bin/mines
|
||||
@(,games,2555) bin/muncher
|
||||
bin/nbsdgames
|
||||
@(,games,2555) bin/pipes
|
||||
bin/rabbithole
|
||||
bin/redsquare
|
||||
@ -15,6 +16,7 @@ bin/reversi
|
||||
bin/snakeduel
|
||||
bin/sos
|
||||
bin/sudoku
|
||||
@(,games,2555) bin/tugow
|
||||
@dir(,games) /var/games/nbsdgames
|
||||
@sample(,games,0664) /var/games/nbsdgames/darrt_scores.sample
|
||||
@sample(,games,0664) /var/games/nbsdgames/fisher_scores.sample
|
||||
@ -22,6 +24,9 @@ bin/sudoku
|
||||
@sample(,games,0664) /var/games/nbsdgames/muncher_scores.sample
|
||||
@sample(,games,0664) /var/games/nbsdgames/miketron_scores.sample
|
||||
@sample(,games,0664) /var/games/nbsdgames/pipes_scores.sample
|
||||
@sample(,games,0664) /var/games/nbsdgames/tugow_scores.sample
|
||||
share/applications/nbsdgames.desktop
|
||||
share/icons/hicolor/scalable/apps/nbsdgames.svg
|
||||
share/man/man6/battleship.6.gz
|
||||
share/man/man6/checkers.6.gz
|
||||
share/man/man6/darrt.6.gz
|
||||
|
Loading…
Reference in New Issue
Block a user