pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/hengband Update to hengband-2.2.1r
details: https://anonhg.NetBSD.org/pkgsrc/rev/0172de325179
branches: trunk
changeset: 412710:0172de325179
user: pho <pho%pkgsrc.org@localhost>
date: Wed Mar 11 15:01:53 2020 +0000
description:
Update to hengband-2.2.1r
The game is supposed to be able to automatically convert old save
files, although the converter may not be fully tested. The list of
changes from 1.6.2 is too long to paste here:
* 1.7.2: https://hengband.osdn.jp/history/history1.7.2.html
* 2.0.0: https://hengband.osdn.jp/history/history2.0.0.html
* 2.1.0: https://hengband.osdn.jp/history/history2.1.0.html
* 2.1.1: https://hengband.osdn.jp/history/history2.1.1.html
* 2.1.2: https://hengband.osdn.jp/history/history2.1.2.html
* 2.1.3: https://hengband.osdn.jp/history/history2.1.3.html
* 2.1.4: https://hengband.osdn.jp/history/history2.1.4.html
* 2.1.5: https://hengband.osdn.jp/history/history2.1.5.html
* 2.2.0: https://hengband.osdn.jp/history/history2.2.0.html
* 2.2.1: https://hengband.osdn.jp/history/history2.2.1.html
diffstat:
games/hengband/Makefile | 11 +++--
games/hengband/PLIST | 4 +-
games/hengband/distinfo | 16 ++++-----
games/hengband/patches/patch-src_Makefile.am | 12 +++---
games/hengband/patches/patch-src_cmd3.c | 41 ++++-------------------
games/hengband/patches/patch-src_h-type.h | 47 ----------------------------
games/hengband/patches/patch-src_main-gcu.c | 25 --------------
7 files changed, 30 insertions(+), 126 deletions(-)
diffs (228 lines):
diff -r 159da0dc4dde -r 0172de325179 games/hengband/Makefile
--- a/games/hengband/Makefile Wed Mar 11 14:38:00 2020 +0000
+++ b/games/hengband/Makefile Wed Mar 11 15:01:53 2020 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.2 2020/01/30 13:56:12 pho Exp $
+# $NetBSD: Makefile,v 1.3 2020/03/11 15:01:53 pho Exp $
-DISTNAME= hengband-1.6.2
-PKGREVISION= 1
+DISTNAME= hengband-2.2.1r
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_OSDN:=hengband/10331/}
-EXTRACT_SUFX= .tar.bz2
+MASTER_SITES= ${MASTER_SITE_OSDN:=hengband/72520/}
+EXTRACT_SUFX= .tar.gz
+
+EXTRACT_DIR= ${WRKSRC}
MAINTAINER= pho%cielonegro.org@localhost
HOMEPAGE= http://hengband.sourceforge.jp/en/index.html
diff -r 159da0dc4dde -r 0172de325179 games/hengband/PLIST
--- a/games/hengband/PLIST Wed Mar 11 14:38:00 2020 +0000
+++ b/games/hengband/PLIST Wed Mar 11 15:01:53 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/01/24 13:33:32 pho Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/03/11 15:01:53 pho Exp $
bin/hengband
libdata/hengband/edit/a_info.txt
libdata/hengband/edit/d_info.txt
@@ -117,6 +117,7 @@
libdata/hengband/help/defend.txt
libdata/hengband/help/dungeon.hlp
libdata/hengband/help/dungeon.txt
+libdata/hengband/help/editor.txt
libdata/hengband/help/gambling.txt
libdata/hengband/help/general.hlp
libdata/hengband/help/general.txt
@@ -139,6 +140,7 @@
libdata/hengband/help/jdefend.txt
libdata/hengband/help/jdungeon.hlp
libdata/hengband/help/jdungeon.txt
+libdata/hengband/help/jeditor.txt
libdata/hengband/help/jgambling.txt
libdata/hengband/help/jgeneral.hlp
libdata/hengband/help/jgeneral.txt
diff -r 159da0dc4dde -r 0172de325179 games/hengband/distinfo
--- a/games/hengband/distinfo Wed Mar 11 14:38:00 2020 +0000
+++ b/games/hengband/distinfo Wed Mar 11 15:01:53 2020 +0000
@@ -1,17 +1,15 @@
-$NetBSD: distinfo,v 1.2 2020/01/30 13:56:12 pho Exp $
+$NetBSD: distinfo,v 1.3 2020/03/11 15:01:53 pho Exp $
SHA1 (heng-graf-16x16.tar.gz) = 27166a215209f3ec0f2c4a61761fce5d802cddc1
RMD160 (heng-graf-16x16.tar.gz) = eb2e8034d43709b9b7e06b69eac4b6a84d026cc1
SHA512 (heng-graf-16x16.tar.gz) = 4641e12122b13015d03f8a7f3dcba72797495451f15c04eab2d6ea1fd57d082e11eea3115056c2a2203032db973bea01476ecb2389a7a730e98e972c41756dfa
Size (heng-graf-16x16.tar.gz) = 381027 bytes
-SHA1 (hengband-1.6.2.tar.bz2) = 32156fe9363309ba75273d6c8ebb8f2043c97129
-RMD160 (hengband-1.6.2.tar.bz2) = 59f41666dd1724f03739d5fa078e537467dbf36e
-SHA512 (hengband-1.6.2.tar.bz2) = 24c67f00556d7899b4f18f3071c4bd50bc754566c4c4736c18248ced243b1332e6c84381250c1a59358e7a914e5d62db05c47ab0921bcf40fbd6cfe4b6717520
-Size (hengband-1.6.2.tar.bz2) = 2029169 bytes
+SHA1 (hengband-2.2.1r.tar.gz) = 9267909474496e180adf799c59cada62eeea0753
+RMD160 (hengband-2.2.1r.tar.gz) = 5d8d13da739bbe8bbc0da6d654331e6fb986aac8
+SHA512 (hengband-2.2.1r.tar.gz) = ac92922ed193498fd2020bb5c543b118b1f670e03a5af7718328ab86a667cf8273ddd693966026cba328ec767efdc1ac81ec66ac392328cc16dec469828af9f9
+Size (hengband-2.2.1r.tar.gz) = 2976734 bytes
SHA1 (patch-lib_Makefile.am) = 35a066930834f9ea23c6ce9fb2a088c7ec86c28a
SHA1 (patch-lib_xtra_graf_Makefile.am) = 71d8e17bfc39a689ab30f3a02b5f052687bcf1db
-SHA1 (patch-src_Makefile.am) = 57f08de8ecbd8083917fe36436286b7b1aef307c
-SHA1 (patch-src_cmd3.c) = a573a317663133bbbd0b6119736d7c27ae67c1a3
-SHA1 (patch-src_h-type.h) = b9327f3110d831a2b5ce711450fe73e0d093e5ad
+SHA1 (patch-src_Makefile.am) = b71e0e4cc828c98d5bd4d89e3b263a406c0c8620
+SHA1 (patch-src_cmd3.c) = d2e4e61524b125069a5709462add001a7e7388ff
SHA1 (patch-src_init2.c) = fe7064f23bce494ced5a524f2a60117ac0ef56ff
-SHA1 (patch-src_main-gcu.c) = 8bffb440de8beb18a45b9257a95e33e033260036
diff -r 159da0dc4dde -r 0172de325179 games/hengband/patches/patch-src_Makefile.am
--- a/games/hengband/patches/patch-src_Makefile.am Wed Mar 11 14:38:00 2020 +0000
+++ b/games/hengband/patches/patch-src_Makefile.am Wed Mar 11 15:01:53 2020 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-src_Makefile.am,v 1.1 2020/01/24 13:33:33 pho Exp $
+$NetBSD: patch-src_Makefile.am,v 1.2 2020/03/11 15:01:54 pho Exp $
Support user-destdir build
---- src/Makefile.am.orig 2003-11-03 02:56:44.000000000 +0000
+--- src/Makefile.am.orig 2020-03-11 14:25:21.422460504 +0000
+++ src/Makefile.am
-@@ -29,9 +29,3 @@ EXTRA_hengband_SOURCES = \
- main-dos.c main-ibm.c \
- makefile.bcc makefile.std makefile.dos makefile.ibm \
- readdib.c wall.bmp
+@@ -33,9 +33,3 @@ EXTRA_hengband_SOURCES = \
+
+ COMPILE = ./gcc-wrap $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-
-install-exec-hook:
-if SET_GID
diff -r 159da0dc4dde -r 0172de325179 games/hengband/patches/patch-src_cmd3.c
--- a/games/hengband/patches/patch-src_cmd3.c Wed Mar 11 14:38:00 2020 +0000
+++ b/games/hengband/patches/patch-src_cmd3.c Wed Mar 11 15:01:53 2020 +0000
@@ -1,40 +1,15 @@
-$NetBSD: patch-src_cmd3.c,v 1.1 2020/01/30 13:56:12 pho Exp $
-
-Use the correct format specifier.
+$NetBSD: patch-src_cmd3.c,v 1.2 2020/03/11 15:01:54 pho Exp $
-Local Variables:
-coding: euc-jp
-End:
+Fix an error on 64-bits platforms.
---- src/cmd3.c.orig 2004-03-28 05:05:36.000000000 +0000
+--- src/cmd3.c.orig 2020-03-11 14:36:27.328921818 +0000
+++ src/cmd3.c
-@@ -45,12 +45,12 @@ void do_cmd_inven(void)
- item_tester_full = FALSE;
-
- #ifdef JP
-- sprintf(out_val, "»ý¤Áʪ¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
-+ sprintf(out_val, "»ý¤Áʪ¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%d%%) ¥³¥Þ¥ó¥É: ",
- lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
- (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100))
- / 2));
+@@ -53,7 +53,7 @@ void do_cmd_inven(void)
#else
-- sprintf(out_val, "Inventory: carrying %d.%d pounds (%ld%% of capacity). Command: ",
-+ sprintf(out_val, "Inventory: carrying %d.%d pounds (%d%% of capacity). Command: ",
+ sprintf(out_val, "Inventory: carrying %d.%d pounds (%ld%% of capacity). Command: ",
(int)(p_ptr->total_weight / 10), (int)(p_ptr->total_weight % 10),
- (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) / 2));
+- (p_ptr->total_weight * 100) / weight_limit());
++ (long int)((p_ptr->total_weight * 100) / weight_limit()));
#endif
-@@ -120,12 +120,12 @@ void do_cmd_equip(void)
- /* Build a prompt */
- #ifdef JP
-- sprintf(out_val, "ÁõÈ÷¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%ld%%) ¥³¥Þ¥ó¥É: ",
-+ sprintf(out_val, "ÁõÈ÷¡§ ¹ç·× %3d.%1d kg (¸Â³¦¤Î%d%%) ¥³¥Þ¥ó¥É: ",
- lbtokg1(p_ptr->total_weight) , lbtokg2(p_ptr->total_weight) ,
- (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100))
- / 2));
- #else
-- sprintf(out_val, "Equipment: carrying %d.%d pounds (%ld%% of capacity). Command: ",
-+ sprintf(out_val, "Equipment: carrying %d.%d pounds (%d%% of capacity). Command: ",
- (int)(p_ptr->total_weight / 10), (int)(p_ptr->total_weight % 10),
- (p_ptr->total_weight * 100) / ((adj_str_wgt[p_ptr->stat_ind[A_STR]] * (p_ptr->pclass == CLASS_BERSERKER ? 150 : 100)) / 2));
- #endif
+
diff -r 159da0dc4dde -r 0172de325179 games/hengband/patches/patch-src_h-type.h
--- a/games/hengband/patches/patch-src_h-type.h Wed Mar 11 14:38:00 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-$NetBSD: patch-src_h-type.h,v 1.1 2020/01/24 13:33:33 pho Exp $
-
-Use the correct int types. The original code doesn't work on 64-bits
-machines.
-
---- src/h-type.h.orig 2017-04-30 13:03:32.000000000 +0000
-+++ src/h-type.h
-@@ -3,6 +3,8 @@
- #ifndef INCLUDED_H_TYPE_H
- #define INCLUDED_H_TYPE_H
-
-+#include <stdint.h>
-+
- /*
- * Basic "types".
- *
-@@ -91,7 +93,7 @@ typedef int errr;
-
- /* Note that unsigned values can cause math problems */
- /* An unsigned byte of memory */
--typedef unsigned char byte;
-+typedef uint8_t byte;
-
- /* Note that a bool is smaller than a full "int" */
- /* Simple True/False type */
-@@ -113,17 +115,12 @@ typedef unsigned long huge;
-
-
- /* Signed/Unsigned 16 bit value */
--typedef signed short s16b;
--typedef unsigned short u16b;
-+typedef int16_t s16b;
-+typedef uint16_t u16b;
-
- /* Signed/Unsigned 32 bit value */
--#ifdef L64 /* 64 bit longs */
--typedef signed int s32b;
--typedef unsigned int u32b;
--#else
--typedef signed long s32b;
--typedef unsigned long u32b;
--#endif
-+typedef int32_t s32b;
-+typedef uint32_t u32b;
-
-
-
diff -r 159da0dc4dde -r 0172de325179 games/hengband/patches/patch-src_main-gcu.c
--- a/games/hengband/patches/patch-src_main-gcu.c Wed Mar 11 14:38:00 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_main-gcu.c,v 1.1 2020/01/24 13:33:33 pho Exp $
-
-A WINDOW object in ncurses is an opaque pointer and thus we cannot
-access its members directly.
-
---- src/main-gcu.c.orig 2017-04-27 09:55:49.000000000 +0000
-+++ src/main-gcu.c
-@@ -600,7 +600,7 @@ static errr Term_xtra_gcu_alive(int v)
- mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
- #else
- /* this moves curses to bottom right corner */
-- mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
-+ mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
- #endif
-
- /* Exit curses */
-@@ -736,7 +736,7 @@ static void Term_nuke_gcu(term *t)
- mvcur(curscr->cury, curscr->curx, LINES - 1, 0);
- #else
- /* This moves curses to bottom right corner */
-- mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
-+ mvcur(getcury(curscr), getcurx(curscr), LINES - 1, 0);
- #endif
-
- /* Flush the curses buffer */
Home |
Main Index |
Thread Index |
Old Index