| @@ -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 | |
3 | DISTNAME= new_brain | | 3 | DISTNAME= new_brain |
4 | PKGNAME= knightcap-brain-19980616 | | 4 | PKGNAME= knightcap-brain-19980616 |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= games | | 6 | CATEGORIES= games |
6 | #MASTER_SITES= ftp://ftp.samba.org/pub/KnightCap/ | | 7 | #MASTER_SITES= ftp://ftp.samba.org/pub/KnightCap/ |
7 | EXTRACT_SUFX= .dat | | 8 | EXTRACT_SUFX= .dat |
8 | | | 9 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://samba.org/KnightCap/ | | 11 | HOMEPAGE= http://samba.org/KnightCap/ |
11 | COMMENT= Book of losing moves for KnightCap | | 12 | COMMENT= Book of losing moves for KnightCap |
12 | | | 13 | |
13 | WRKSRC= ${WRKDIR} | | 14 | WRKSRC= ${WRKDIR} |
14 | DIST_SUBDIR= ${PKGNAME_NOREV} | | 15 | DIST_SUBDIR= ${PKGNAME_NOREV} |
15 | | | 16 | |
16 | EXTRACT_ONLY= # empty | | 17 | EXTRACT_ONLY= # empty |
17 | NO_CONFIGURE= yes | | 18 | NO_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" |
37 | ONLY_FOR_PLATFORM= ${LITTLEENDIANPLATFORMS} | | 37 | BROKEN_EXCEPT_ON_PLATFORM= ${LITTLEENDIANPLATFORMS} |
38 | NOT_FOR_PLATFORM= NetBSD-[6-9].*-* NetBSD-1[1-9].*-* | | 38 | BROKEN_ON_PLATFORM= NetBSD-[6-9].*-* NetBSD-[1-9][0-9].*-* |
39 | NOT_FOR_PLATFORM+= Linux-*-alpha | | 39 | BROKEN_ON_PLATFORM+= Linux-*-alpha |
40 | | | 40 | |
41 | EGDIR= ${PREFIX}/share/examples/knightcap | | 41 | EGDIR= ${PREFIX}/share/examples/knightcap |
42 | INSTALLATION_DIRS= bin | | 42 | INSTALLATION_DIRS= bin |
43 | | | 43 | |
44 | do-build: | | 44 | do-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 | |
48 | do-install: | | 48 | do-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 \ |