FreeBSD Bugzilla – Attachment 224377 Details for
Bug 255346
[NEW PORT] games/nbsdgames: 17 text-based modern games
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
games/nbsdgames: 17 text-based modern games
0001-New-port-games-nbsdgames-17-text-based-modern-games.patch (text/plain), 7.02 KB, created by
Robert Clausecker
on 2021-04-23 15:02:13 UTC
(
hide
)
Description:
games/nbsdgames: 17 text-based modern games
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2021-04-23 15:02:13 UTC
Size:
7.02 KB
patch
obsolete
>From 586b91fe8f605697ea0d75cc3857cacacbf2fe04 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@fuz.su> >Date: Fri, 23 Apr 2021 16:18:46 +0200 >Subject: [PATCH] New port: games/nbsdgames: 17 text-based modern games > >A collection of terminal games including, Jewels, Sudoku, Mines, >Reversi, Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, >Memoblocks, Fisher, Muncher, Miketron, Redsquare, Darrt, and Snakeduel. > >The difficulty and/or dimensions are adjustable through simple command >line options, you can play a minesweeper game that take hours to >complete, or exprience hexadecimal sudoku and 8x8 fifteen-like puzzles! > >Play on xterm for best experience. > >WWW: https://github.com/abakh/nbsdgames >--- > games/Makefile | 1 + > games/nbsdgames/Makefile | 26 ++++++++++++++++++ > games/nbsdgames/distinfo | 3 +++ > games/nbsdgames/files/patch-Makefile | 40 ++++++++++++++++++++++++++++ > games/nbsdgames/files/patch-config.h | 22 +++++++++++++++ > games/nbsdgames/pkg-descr | 11 ++++++++ > games/nbsdgames/pkg-plist | 24 +++++++++++++++++ > 7 files changed, 127 insertions(+) > create mode 100644 games/nbsdgames/Makefile > create mode 100644 games/nbsdgames/distinfo > create mode 100644 games/nbsdgames/files/patch-Makefile > create mode 100644 games/nbsdgames/files/patch-config.h > create mode 100644 games/nbsdgames/pkg-descr > create mode 100644 games/nbsdgames/pkg-plist > >diff --git a/games/Makefile b/games/Makefile >index a85c3c543..938a6b1a8 100644 >--- a/games/Makefile >+++ b/games/Makefile >@@ -628,6 +628,7 @@ > SUBDIR += naev-data > SUBDIR += narcissu2 > SUBDIR += nazghul >+ SUBDIR += nbsdgames > SUBDIR += nehquake > SUBDIR += neo-cowsay > SUBDIR += nethack32 >diff --git a/games/nbsdgames/Makefile b/games/nbsdgames/Makefile >new file mode 100644 >index 000000000..e24130da5 >--- /dev/null >+++ b/games/nbsdgames/Makefile >@@ -0,0 +1,26 @@ >+PORTNAME= nbsdgames >+DISTVERSIONPREFIX= v >+DISTVERSION= 4.0 >+CATEGORIES= games >+ >+MAINTAINER= fuz@fuz.su >+COMMENT= 17 text-based modern games >+ >+LICENSE= CC0-1.0 >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+USES= ncurses >+ >+USE_GITHUB= yes >+GH_ACCOUNT= abakh >+ >+CFLAGS+= -I${NCURSESINC} -lncurses >+MAKE_ARGS+= GAMES_DIR=${STAGEDIR}${PREFIX}/bin \ >+ SCORES_DIR=${STAGEDIR}/var/games/nbsdgames >+ >+post-install: >+.for game in jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel >+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${game} >+.endfor >+ >+.include <bsd.port.mk> >diff --git a/games/nbsdgames/distinfo b/games/nbsdgames/distinfo >new file mode 100644 >index 000000000..52db28fa6 >--- /dev/null >+++ b/games/nbsdgames/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1619184885 >+SHA256 (abakh-nbsdgames-v4.0_GH0.tar.gz) = 8c389da0d3ecdf6269a54533241e4bb30d4eb4d4ff36a5456a5efeac3ca5cfb0 >+SIZE (abakh-nbsdgames-v4.0_GH0.tar.gz) = 276246 >diff --git a/games/nbsdgames/files/patch-Makefile b/games/nbsdgames/files/patch-Makefile >new file mode 100644 >index 000000000..df234a714 >--- /dev/null >+++ b/games/nbsdgames/files/patch-Makefile >@@ -0,0 +1,40 @@ >+--- Makefile.orig 2021-04-19 07:30:54 UTC >++++ Makefile >+@@ -1,29 +1,14 @@ >+ # -*- Makefile -*- >+-ifndef $(CFLAGS) >+- CFLAGS= -O3 -lncurses -Wno-unused-result >+- #-O3 --std=c99 -lcurses -DNO_MOUSE for NetBSD curses >+- #adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct. >+-endif >+-ifndef $(GAMES_DIR) >+- GAMES_DIR=/usr/games >+-endif >+-ifndef $(SCORES_DIR) >+- SCORES_DIR=/usr/games >+-endif >++CFLAGS += $(LDFLAGS) $(LDLIBS) >+ all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel >+ scorefiles: >+- touch $(SCORES_DIR)/pp_scores >+- touch $(SCORES_DIR)/jw_scores >+- touch $(SCORES_DIR)/mt_scores >+- touch $(SCORES_DIR)/mnch_scores >+- touch $(SCORES_DIR)/fsh_scores >+- touch $(SCORES_DIR)/drt_scores >+- chmod 666 $(SCORES_DIR)/pp_scores >+- chmod 666 $(SCORES_DIR)/jw_scores >+- chmod 666 $(SCORES_DIR)/mt_scores >+- chmod 666 $(SCORES_DIR)/mnch_scores >+- chmod 666 $(SCORES_DIR)/fsh_scores >+- chmod 666 $(SCORES_DIR)/drt_scores >++ mkdir -p $(SCORES_DIR) >++ touch $(SCORES_DIR)/pp_scores.sample >++ touch $(SCORES_DIR)/jw_scores.sample >++ touch $(SCORES_DIR)/mt_scores.sample >++ touch $(SCORES_DIR)/mnch_scores.sample >++ touch $(SCORES_DIR)/fsh_scores.sample >++ touch $(SCORES_DIR)/drt_scores.sample >+ >+ jewels: jewels.c config.h >+ $(CC) jewels.c $(CFLAGS) -o ./jewels >diff --git a/games/nbsdgames/files/patch-config.h b/games/nbsdgames/files/patch-config.h >new file mode 100644 >index 000000000..a57921ff3 >--- /dev/null >+++ b/games/nbsdgames/files/patch-config.h >@@ -0,0 +1,22 @@ >+--- config.h.orig 2021-04-23 14:07:19 UTC >++++ config.h >+@@ -9,12 +9,13 @@ >+ #define MT_SCORES "/sys/lib/games/mt_scores" >+ #define DRT_SCORES "/sys/lib/games/drt_scores" >+ #else >+- #define PP_SCORES "/usr/games/pp_scores" >+- #define JW_SCORES "/usr/games/jw_scores" >+- #define FSH_SCORES "/usr/games/fsh_scores" >+- #define MNCH_SCORES "/usr/games/mnch_scores" >+- #define MT_SCORES "/usr/games/mt_scores" >+- #define DRT_SCORES "/usr/games/drt_scores" >++ #define SCORES_DIR "/var/games/nbsdgames/" >++ #define PP_SCORES SCORES_DIR "pp_scores" >++ #define JW_SCORES SCORES_DIR "jw_scores" >++ #define FSH_SCORES SCORES_DIR "fsh_scores" >++ #define MNCH_SCORES SCORES_DIR "mnch_scores" >++ #define MT_SCORES SCORES_DIR "mt_scores" >++ #define DRT_SCORES SCORES_DIR "drt_scores" >+ #endif >+ >+ #ifdef Plan9 >diff --git a/games/nbsdgames/pkg-descr b/games/nbsdgames/pkg-descr >new file mode 100644 >index 000000000..42d2a56e1 >--- /dev/null >+++ b/games/nbsdgames/pkg-descr >@@ -0,0 +1,11 @@ >+A collection of terminal games including, Jewels, Sudoku, Mines, >+Reversi, Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, >+Memoblocks, Fisher, Muncher, Miketron, Redsquare, Darrt, and Snakeduel. >+ >+The difficulty and/or dimensions are adjustable through simple command >+line options, you can play a minesweeper game that take hours to >+complete, or exprience hexadecimal sudoku and 8x8 fifteen-like puzzles! >+ >+Play on xterm for best experience. >+ >+WWW: https://github.com/abakh/nbsdgames >diff --git a/games/nbsdgames/pkg-plist b/games/nbsdgames/pkg-plist >new file mode 100644 >index 000000000..caeb6c21b >--- /dev/null >+++ b/games/nbsdgames/pkg-plist >@@ -0,0 +1,24 @@ >+bin/battleship >+bin/checkers >+@(,games,2555) bin/darrt >+bin/fifteen >+@(,games,2555) bin/fisher >+@(,games,2555) bin/jewels >+bin/memoblocks >+@(,games,2555) bin/miketron >+bin/mines >+@(,games,2555) bin/muncher >+@(,games,2555) bin/pipes >+bin/rabbithole >+bin/redsquare >+bin/reversi >+bin/snakeduel >+bin/sos >+bin/sudoku >+@dir(,games) /var/games/nbsdgames >+@sample(,games,0664) /var/games/nbsdgames/drt_scores.sample >+@sample(,games,0664) /var/games/nbsdgames/fsh_scores.sample >+@sample(,games,0664) /var/games/nbsdgames/jw_scores.sample >+@sample(,games,0664) /var/games/nbsdgames/mnch_scores.sample >+@sample(,games,0664) /var/games/nbsdgames/mt_scores.sample >+@sample(,games,0664) /var/games/nbsdgames/pp_scores.sample >-- >2.28.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255346
:
224377
|
224449
|
224450
|
224738
|
225025