pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games add games/nbsdgames
details: https://anonhg.NetBSD.org/pkgsrc/rev/1cac937db3b1
branches: trunk
changeset: 450845:1cac937db3b1
user: nia <nia%pkgsrc.org@localhost>
date: Thu Apr 22 18:53:55 2021 +0000
description:
add games/nbsdgames
A package of 17 text-based modern games: Jewels, Sudoku, Mines, Reversi,
Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, Memoblocks, Fisher,
Muncher, Miketron, Redsquare, Darrt, and Snakeduel.
diffstat:
games/Makefile | 3 +-
games/nbsdgames/DESCR | 3 ++
games/nbsdgames/Makefile | 51 ++++++++++++++++++++++++++++++++++
games/nbsdgames/PLIST | 18 ++++++++++++
games/nbsdgames/distinfo | 7 ++++
games/nbsdgames/patches/patch-Makefile | 30 ++++++++++++++++++++
6 files changed, 111 insertions(+), 1 deletions(-)
diffs (146 lines):
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/Makefile
--- a/games/Makefile Thu Apr 22 18:15:00 2021 +0000
+++ b/games/Makefile Thu Apr 22 18:53:55 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.503 2021/04/08 19:53:08 markd Exp $
+# $NetBSD: Makefile,v 1.504 2021/04/22 18:53:55 nia Exp $
#
COMMENT= Games
@@ -291,6 +291,7 @@
SUBDIR+= mrrescue
SUBDIR+= naev
SUBDIR+= nagi
+SUBDIR+= nbsdgames
SUBDIR+= nethack
SUBDIR+= nethack-lib
SUBDIR+= nethack-tty
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/nbsdgames/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nbsdgames/DESCR Thu Apr 22 18:53:55 2021 +0000
@@ -0,0 +1,3 @@
+A package of 17 text-based modern games: Jewels, Sudoku, Mines, Reversi,
+Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, Memoblocks, Fisher,
+Muncher, Miketron, Redsquare, Darrt, and Snakeduel.
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/nbsdgames/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nbsdgames/Makefile Thu Apr 22 18:53:55 2021 +0000
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2021/04/22 18:53:55 nia Exp $
+
+DISTNAME= nbsdgames-v4.0
+PKGNAME= ${DISTNAME:S/-v/-/1}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITHUB:=abakh/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/abakh/nbsdgames
+COMMENT= New BSD Games - a package of 17 text-based modern games
+LICENSE= public-domain
+
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c99
+
+BUILD_DEFS+= VARBASE
+
+.include "../../mk/curses.buildlink3.mk"
+
+CFLAGS+= ${BUILDLINK_LDADD.curses}
+
+.if !empty(CURSES_TYPE:M*ncurses*)
+CFLAGS+= -DNO_MOUSE=1
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_FLAGS+= GAMES_DIR=${DESTDIR}${PREFIX}/bin
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths+= config.h
+SUBST_SED.paths+= -e "s,/usr/games,${VARBASE}/games,g"
+
+INSTALLATION_DIRS+= bin
+
+.if empty(UNPRIVILEGED:M[yY][eE][sS])
+. for game in pewels jewels fisher muncher miketron darrt
+SPECIAL_PERMS+= bin/${game} ${SETGID_GAMES_PERMS}
+. endfor
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/pp_scores ${GAMEDATA_PERMS}
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/jw_scores ${GAMEDATA_PERMS}
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/fsh_scores ${GAMEDATA_PERMS}
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/mnch_scores ${GAMEDATA_PERMS}
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/mt_scores ${GAMEDATA_PERMS}
+REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/drt_scores ${GAMEDATA_PERMS}
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/nbsdgames/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nbsdgames/PLIST Thu Apr 22 18:53:55 2021 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/22 18:53:55 nia Exp $
+bin/battleship
+bin/checkers
+bin/darrt
+bin/fifteen
+bin/fisher
+bin/jewels
+bin/memoblocks
+bin/miketron
+bin/mines
+bin/muncher
+bin/pipes
+bin/rabbithole
+bin/redsquare
+bin/reversi
+bin/snakeduel
+bin/sos
+bin/sudoku
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/nbsdgames/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nbsdgames/distinfo Thu Apr 22 18:53:55 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/04/22 18:53:55 nia Exp $
+
+SHA1 (nbsdgames-v4.0.tar.gz) = 5d85b84b76a6cd60d7582313d2a7f909af6a395e
+RMD160 (nbsdgames-v4.0.tar.gz) = b3254f172b2abc57ac26e97262a7aa7d135cef23
+SHA512 (nbsdgames-v4.0.tar.gz) = d04f0c75c07198c16c2b58a23fbf3600af26c77c5ae9694cc58127416d17212e9e2ab4b6ccd096e7e5b6ea44dea8c1854ffbcc857019e2592669388f81de16cc
+Size (nbsdgames-v4.0.tar.gz) = 276246 bytes
+SHA1 (patch-Makefile) = 9e6709a04c131bd59e15c9e81bdd58b2c3dd7e1a
diff -r 9b01c6ba0638 -r 1cac937db3b1 games/nbsdgames/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/nbsdgames/patches/patch-Makefile Thu Apr 22 18:53:55 2021 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-Makefile,v 1.1 2021/04/22 18:53:55 nia Exp $
+
+Honor CFLAGS. Don't attempt to create scores files, let pkgsrc do that.
+
+--- Makefile.orig 2021-04-19 07:30:54.000000000 +0000
++++ Makefile
+@@ -1,15 +1,4 @@
+ # -*- 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
+ all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel
+ scorefiles:
+ touch $(SCORES_DIR)/pp_scores
+@@ -64,6 +53,6 @@ clean:
+ rm ./jewels ./sudoku ./checkers ./mines ./reversi ./battleship ./rabbithole ./sos ./pipes ./fifteen ./memoblocks ./fisher ./muncher ./miketron ./redsquare ./darrt ./snakeduel
+ uninstall:
+ rm $(GAMES_DIR)/jewels $(GAMES_DIR)/sudoku $(GAMES_DIR)/checkers $(GAMES_DIR)/mines $(GAMES_DIR)/reversi $(GAMES_DIR)/battleship $(GAMES_DIR)/rabbithole $(GAMES_DIR)/sos $(GAMES_DIR)/pipes
$(GAMES_DIR)/fifteen $(GAMES_DIR)/memoblocks $(GAMES_DIR)/fisher $(GAMES_DIR)/muncher $(GAMES_DIR)/miketron $(GAMES_DIR)/redsquare $(GAMES_DIR)/darrt $(GAMES_DIR)/snakeduel
+-install: scorefiles jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel
++install: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel
+ cp jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel $(GAMES_DIR)
+
Home |
Main Index |
Thread Index |
Old Index