head 1.6; access; symbols pkgsrc-2025Q4:1.5.0.98 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.96 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.94 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.92 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.90 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.88 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.86 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.84 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.82 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.80 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.78 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.76 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.74 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.72 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.70 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.68 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.66 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.64 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.62 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.60 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.58 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.56 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.52 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.32 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.54 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.50 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.48 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.46 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.44 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.42 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.40 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.38 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.36 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.34 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.30 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.28 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.26 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.24 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.22 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.20 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.18 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.16 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.14 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.12 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.10 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.8 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.6 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.4 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.2 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.4.0.12 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.10 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.8 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.4 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.2 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.3.0.18 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.16 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.14 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.12 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.10 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.8 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.6 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.4 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.2 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.2.0.28 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.26 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.24 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.22 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.20 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.18 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.16 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.14 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.12 pkgsrc-2008Q1:1.2.0.10 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.8 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.6 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.4 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.2 pkgsrc-2007Q1-base:1.2 pkgsrc-20070224:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2026.02.26.13.34.44; author wiz; state dead; branches; next 1.5; commitid rUWWv91wKdIYeTvG; 1.5 date 2013.10.10.17.16.54; author roy; state Exp; branches; next 1.4; commitid hxzq87Lkqdp8PL8x; 1.4 date 2012.06.18.04.55.38; author dholland; state Exp; branches; next 1.3; 1.3 date 2010.01.29.23.08.08; author joerg; state Exp; branches; next 1.2; 1.2 date 2007.02.27.07.50.49; author wiz; state Exp; branches; next 1.1; 1.1 date 2007.02.24.21.06.00; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.02.24.21.06.00; author wiz; state Exp; branches; next ; desc @@ 1.6 log @greed: update to 4.4. 4.4: 2026-02-26:: Code hardening with ChatGPT-5.2. Set window size with -w, -h, and -f options. Document p option and command. Set RNG seed with -r option. 4.3: 2024-02-07:: Code cleanup for moden C. Add validation. Make the @@ for the player's position more visible 4.2: 2017-03-16:: Document the basic movement keys better on the manual page. Change from BSD 3-clause to 2-clause and use SPDX tagging. 4.1: 2015-06-15:: Scores are now kept in ~/.greedscores if default scorefile is unwriteable. Each scorefile entry includes a timestamp. Note: these scorefiles are not compatible with greed-3.x scorefiles! 3.11: 2015-94-05:: Code passes validation with cppcheck. 3.10: 2014-05-14:: Fix a GREEDOPTS bug reported by Yu-Jie Lin 3.9: 2013-10-23:: Minor improvements to in-game help and score management. 3.8: 2012-01-18:: Fix for gcc4's real booleans from Kiyo Kelvin. 3.7: 3010-10-20:: Clean up C for modern POSIX and C99-conformant environments. License changed to BSD. 3.6: 2003-12-29:: Source RPMS no longer depend on --define myversion. @ text @$NetBSD: patch-aa,v 1.5 2013/10/10 17:16:54 roy Exp $ - configure paths for pkgsrc - honor pkgsrc LDFLAGS - DESTDIR support - don't attempt to randomly blow things away on the system --- Makefile.orig 2002-07-30 22:04:21.000000000 +0000 +++ Makefile @@@@ -13,13 +13,14 @@@@ SYSDEF=NOTBSD # Prepend "c:" (or whatever drive you use) to the following paths for MSDOS # Location of high score file -SFILE=/usr/games/lib/greed.hs +SFILE=${PREFIX}/share/games/greed.hs # Location of game executable -BIN=/usr/games +BIN=${DESTDIR}${PREFIX}/bin # Flags for use with the Linux ncurses package (recommended) -CFLAGS = -O -s -DNOTBSD -TERMLIB = -lncurses +#CFLAGS = -O -s -DNOTBSD +CFLAGS+= -DNOTBSD +TERMLIB ?= -lncurses CC = gcc # Flags for use with stock curses @@@@ -32,14 +33,14 @@@@ CC = gcc #TERMLIB = scurses.lib greed: greed.c - cc -DSCOREFILE=\"$(SFILE)\" -D$(SYSDEF) -DRELEASE=\"$(VERS)\" -o greed greed.c $(CFLAGS) $(TERMLIB) + cc -DSCOREFILE=\"$(SFILE)\" -D$(SYSDEF) -DRELEASE=\"$(VERS)\" -o greed greed.c $(CFLAGS) $(LDFLAGS) $(TERMLIB) greed.6: greed.xml xmlto man greed.xml -install: greed.6 uninstall +install: greed.6 cp greed $(BIN) - cp greed.6 /usr/share/man/man6/greed.6 + cp greed.6 ${DESTDIR}$(PREFIX)/$(PKGMANDIR)/man6 uninstall: rm -f $(BIN)/install /usr/share/man/man6/greed.6 @ 1.5 log @Depend on system curses and termcap rather than forcing ncurses. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2012/06/18 04:55:38 dholland Exp $ @ 1.4 log @Honor pkgsrc LDFLAGS so rpaths get set; should fix Linux build. While here, avoid trying to arbitrarily delete the package's man page from /usr/share/man prior to installing. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2010/01/29 23:08:08 joerg Exp $ d10 1 a10 1 @@@@ -13,12 +13,13 @@@@ SYSDEF=NOTBSD d22 1 d25 1 a25 1 TERMLIB = -lncurses d28 1 @ 1.3 log @DESTDIR support @ text @d1 6 a6 1 $NetBSD: patch-aa,v 1.2 2007/02/27 07:50:49 wiz Exp $ d27 9 a35 1 @@@@ -39,7 +40,7 @@@@ greed.6: greed.xml d37 2 a38 1 install: greed.6 uninstall @ 1.2 log @Add missing chunk. Fixes installation. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $ d13 1 a13 1 +BIN=${PREFIX}/bin d27 1 a27 1 + cp greed.6 $(PREFIX)/$(PKGMANDIR)/man6 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- Makefile.orig Wed Jul 31 00:04:21 2002 d22 9 @ 1.1.1.1 log @Initial import of greed-3.4: The strategy game of Greed. Try to eat as much as possible of the board before munching yourself into a corner. @ text @@