Sat Dec 31 22:03:37 2022 UTC ()
knightcap-brain: Fix wrong version globs that failed to exclude -10.

Also, these should be BROKEN_ON rather than NOT_FOR.


(dholland)
diff -r1.20 -r1.21 pkgsrc/games/knightcap-brain/Makefile

cvs diff -r1.20 -r1.21 pkgsrc/games/knightcap-brain/Makefile (expand / switch to unified diff)

--- pkgsrc/games/knightcap-brain/Makefile 2021/04/21 15:37:12 1.20
+++ pkgsrc/games/knightcap-brain/Makefile 2022/12/31 22:03:37 1.21
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.20 2021/04/21 15:37:12 wiz Exp $ 1# $NetBSD: Makefile,v 1.21 2022/12/31 22:03:37 dholland Exp $
2 2
3DISTNAME= new_brain 3DISTNAME= new_brain
4PKGNAME= knightcap-brain-19980616 4PKGNAME= knightcap-brain-19980616
 5PKGREVISION= 1
5CATEGORIES= games 6CATEGORIES= games
6#MASTER_SITES= ftp://ftp.samba.org/pub/KnightCap/ 7#MASTER_SITES= ftp://ftp.samba.org/pub/KnightCap/
7EXTRACT_SUFX= .dat 8EXTRACT_SUFX= .dat
8 9
9MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://samba.org/KnightCap/ 11HOMEPAGE= http://samba.org/KnightCap/
11COMMENT= Book of losing moves for KnightCap 12COMMENT= Book of losing moves for KnightCap
12 13
13WRKSRC= ${WRKDIR} 14WRKSRC= ${WRKDIR}
14DIST_SUBDIR= ${PKGNAME_NOREV} 15DIST_SUBDIR= ${PKGNAME_NOREV}
15 16
16EXTRACT_ONLY= # empty 17EXTRACT_ONLY= # empty
17NO_CONFIGURE= yes 18NO_CONFIGURE= yes
@@ -22,31 +23,30 @@ NO_CONFIGURE= yes @@ -22,31 +23,30 @@ NO_CONFIGURE= yes
22# among platforms of the same endianness (even ILP32 vs. LP64 ones), 23# among platforms of the same endianness (even ILP32 vs. LP64 ones),
23# it unfortunately contains two fields of type time_t. We think the 24# it unfortunately contains two fields of type time_t. We think the
24# posted brain file is from 32-bit x86, probably Linux, so it will 25# posted brain file is from 32-bit x86, probably Linux, so it will
25# work on little-endian machines where time_t is still 32 bit. This 26# work on little-endian machines where time_t is still 32 bit. This
26# excludes at least NetBSD 6.0 and up, and at least some of the 64-bit 27# excludes at least NetBSD 6.0 and up, and at least some of the 64-bit
27# Linux ports, but I don't know for sure which ones. So begin by 28# Linux ports, but I don't know for sure which ones. So begin by
28# allowing little-endian platforms and then excluding ones known not 29# allowing little-endian platforms and then excluding ones known not
29# to work. Add more as needed; a brain file with mismatched time_t 30# to work. Add more as needed; a brain file with mismatched time_t
30# won't load. Note that while the existing brain file could easily be 31# won't load. Note that while the existing brain file could easily be
31# translated, if anyone feels like doing that they should probably 32# translated, if anyone feels like doing that they should probably
32# translate the posted one to a portable format (e.g. compressed JSON 33# translate the posted one to a portable format (e.g. compressed JSON
33# or something, or just plain text) and provide a loader for that 34# or something, or just plain text) and provide a loader for that
34# format upstream. 35# format upstream.
35 
36.include "../../mk/bsd.prefs.mk" 36.include "../../mk/bsd.prefs.mk"
37ONLY_FOR_PLATFORM= ${LITTLEENDIANPLATFORMS} 37BROKEN_EXCEPT_ON_PLATFORM= ${LITTLEENDIANPLATFORMS}
38NOT_FOR_PLATFORM= NetBSD-[6-9].*-* NetBSD-1[1-9].*-* 38BROKEN_ON_PLATFORM= NetBSD-[6-9].*-* NetBSD-[1-9][0-9].*-*
39NOT_FOR_PLATFORM+= Linux-*-alpha 39BROKEN_ON_PLATFORM+= Linux-*-alpha
40 40
41EGDIR= ${PREFIX}/share/examples/knightcap 41EGDIR= ${PREFIX}/share/examples/knightcap
42INSTALLATION_DIRS= bin 42INSTALLATION_DIRS= bin
43 43
44do-build: 44do-build:
45 ${SED} -e "s,@PREFIX@,${PREFIX},g" < ${FILESDIR}/newbrain.sh \ 45 ${SED} -e "s,@PREFIX@,${PREFIX},g" < ${FILESDIR}/newbrain.sh \
46 > ${WRKSRC}/newbrain.sh 46 > ${WRKSRC}/newbrain.sh
47 47
48do-install: 48do-install:
49 ${INSTALL_SCRIPT} ${WRKSRC}/newbrain.sh \ 49 ${INSTALL_SCRIPT} ${WRKSRC}/newbrain.sh \
50 ${DESTDIR}${PREFIX}/bin/newbrain 50 ${DESTDIR}${PREFIX}/bin/newbrain
51 ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} 51 ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
52 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/new_brain.dat \ 52 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/new_brain.dat \