freebsd-ports/games/nbsdgames/Makefile
Robert Clausecker 03c4407ac9 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)
2022-02-08 10:15:36 +01:00

50 lines
987 B
Makefile

PORTNAME= nbsdgames
DISTVERSIONPREFIX= v
DISTVERSION= 5
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
MAKE_ARGS+= GAMES_DIR=${PREFIX}/bin \
MAN_DIR=${PREFIX}/share/man/man6 \
SCORES_DIR=/var/games/nbsdgames
CFLAGS+= --std=c99 -I${NCURSESINC} -I${NCURSESBASE}/include
_GAMES= battleship \
checkers \
darrt \
fifteen \
fisher \
jewels \
memoblocks \
miketron \
mines \
muncher \
nbsdgames \
pipes \
rabbithole \
redsquare \
reversi \
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
.include <bsd.port.mk>