diff --git a/games/greed/Makefile b/games/greed/Makefile index f4e7936ed631..c6102eb34cdb 100644 --- a/games/greed/Makefile +++ b/games/greed/Makefile @@ -1,31 +1,32 @@ PORTNAME= greed DISTVERSION= 4.4 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://catb.org/~esr/greed/ PKGNAMESUFFIX= -game MAINTAINER= eduardo@FreeBSD.org COMMENT= Text puzzle game with the aim of clearing the game field WWW= http://catb.org/~esr/greed/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING USES= ncurses SCOREFILE?= /var/games/greed.hs CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${DISTVERSION}\" LDFLAGS+= -lncurses PLIST_SUB+= SCOREFILE=${SCOREFILE} do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS}) ${REINPLACE_CMD} -e 's|/usr/lib/games/greed.hs|${SCOREFILE}|g' ${WRKSRC}/greed.adoc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/greed ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/greed.adoc ${STAGEDIR}${DOCSDIR}/README @${MKDIR} ${STAGEDIR}${SCOREFILE:H} ${TOUCH} ${STAGEDIR}${SCOREFILE}.sample .include diff --git a/games/greed/files/patch-greed.adoc b/games/greed/files/patch-greed.adoc new file mode 100644 index 000000000000..e3d686e3ad44 --- /dev/null +++ b/games/greed/files/patch-greed.adoc @@ -0,0 +1,52 @@ +--- greed.adoc.orig 2026-02-26 13:04:03 UTC ++++ greed.adoc +@@ -1,16 +1,9 @@ +-= greed(6) = +-:doctype: manpage +- +-// spellcheck: add hjklyubn Num GREEDOPTS usr greedscores ESR's +-// spellcheck: add cn Ctrl-L +- + == NAME == + greed - eat a game field until you run out of moves + + == SYNOPSIS == + greed [-s] [-w width] [-h height] [-f] [-p] [-r seed] + +-[[description]] + == DESCRIPTION == + + The object of Greed is to erase as much of the screen as +@@ -50,7 +43,6 @@ With the -s option, output the hight score file + + With the -s option, output the hight score file + +-[[environment]] + == ENVIRONMENT == + The environment variable GREEDOPTS can override the default + color set, which will be parsed as a string of the form: +@@ -80,22 +72,17 @@ defined. + defined. + + +-[[files]] + == FILES == +-/usr/lib/games/greed.hs:: ++/usr/lib/games/greed.hs + Default location of Greed high scores. +-~/.greedscores:: ++~/.greedscores + Where they're put if the default location cannot be written to.. + +-[[authors]] + == AUTHORS == Originally written + Written by Matt Day. Maintained by . See ESR's home + page at http://www.catb.org/~esr/ for + updates and other resources. + +-[[bugs]] + == BUGS == + This really ought to be an X game, but that would have been too much + like work. +- +-// end