pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xkanon xkanon: Import xkanon-gtk2-090830 as game...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3447bf1232ab
branches:  trunk
changeset: 346628:3447bf1232ab
user:      tsutsui <tsutsui%pkgsrc.org@localhost>
date:      Thu Jan 02 09:56:49 2020 +0000

description:
xkanon: Import xkanon-gtk2-090830 as games/xkanon

Xkanon, developed by Jagarl, is an interpreter for AVG games.

diffstat:

 games/xkanon/DESCR                                |    1 +
 games/xkanon/Makefile                             |   36 ++++
 games/xkanon/PLIST                                |   13 +
 games/xkanon/distinfo                             |   28 +++
 games/xkanon/patches/patch-Makefile.in            |   26 +++
 games/xkanon/patches/patch-ayusys__gtk2.ja.po     |   18 ++
 games/xkanon/patches/patch-configure              |   15 ++
 games/xkanon/patches/patch-configure.in           |   15 ++
 games/xkanon/patches/patch-file.cc                |   36 ++++
 games/xkanon/patches/patch-file.h                 |   76 ++++++++++
 games/xkanon/patches/patch-image__di.h            |   15 ++
 games/xkanon/patches/patch-image__di__Xbpp.cc     |   53 +++++++
 games/xkanon/patches/patch-image__di__impl.h      |   19 ++
 games/xkanon/patches/patch-image__di__seldraw.cc  |   15 ++
 games/xkanon/patches/patch-image__di__selimpl1.cc |   55 +++++++
 games/xkanon/patches/patch-image__di__selimpl2.cc |  162 ++++++++++++++++++++++
 games/xkanon/patches/patch-image__di__selimpl3.cc |   79 ++++++++++
 games/xkanon/patches/patch-image__pdt.cc          |   24 +++
 games/xkanon/patches/patch-senario.cc             |   24 +++
 games/xkanon/patches/patch-senario__flags.cc      |   43 +++++
 games/xkanon/patches/patch-system__config.cc      |   23 +++
 games/xkanon/patches/patch-window__text.cc        |   25 +++
 22 files changed, 801 insertions(+), 0 deletions(-)

diffs (truncated from 889 to 300 lines):

diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/DESCR        Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,1 @@
+Xkanon, developed by Jagarl, is an interpreter for AVG games.
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/Makefile     Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+#
+
+DISTNAME=      xkanon-gtk2-090830
+PKGNAME=       xkanon-090830
+CATEGORIES=    games
+#MASTER_SITES= http://www.creator.club.ne.jp/~jagarl/
+MASTER_SITES=  http://ryo-on.users.sourceforge.net/distrib/
+DISTFILES=     ${DEFAULT_DISTFILES} xkanon-071209.tar.gz
+
+MAINTAINER=    tsutsui%NetBSD.org@localhost
+HOMEPAGE=      https://web.archive.org/web/20100409004347/http://www.creator.club.ne.jp/~jagarl/xkanon.html
+COMMENT=       Interpreter to execute AVG32 games for Microsoft Windows
+LICENSE=       gnu-gpl-v2
+
+WRKSRC=                ${WRKDIR}/xkanon-gtk
+GNU_CONFIGURE=  yes
+USE_LANGUAGES= c c++03
+
+USE_TOOLS+=    msgfmt pkg-config
+
+post-extract:
+       cp ${WRKDIR}/xkanon/ayusys.ja.po ${WRKDIR}/xkanon-gtk/ayusys_gtk2.ja.po
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+=       --with-audiodev=/dev/audio
+.endif
+
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.gtk2+=    gtk2+>=2.6.0
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/PLIST        Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+bin/xair
+bin/xair-install
+bin/xayusys_gtk2
+bin/xkanon
+bin/xkanon-all
+bin/xkanon-all-install
+bin/xkanon-install
+bin/xsense-off
+bin/xsense-off-install
+bin/xsense-off-trial
+bin/xsense-off-trial-install
+share/locale/ja/LC_MESSAGES/ayusys_gtk2.mo
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/distinfo     Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,28 @@
+$NetBSD: distinfo,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+SHA1 (xkanon-071209.tar.gz) = 4fcb7e4136f9b2265ea79ab96fb257cda7854aef
+RMD160 (xkanon-071209.tar.gz) = 779005a2a5aad4d0922cce3a34b618f47e0f6370
+SHA512 (xkanon-071209.tar.gz) = ac5ffabecbe2c34ece074ece1ebe69f426d26f69611aedd1d0660f096908d201550561eee5b2a87c7c8d22bb531a0048f3258c3b60428b3dbdee8293d7dcac0c
+Size (xkanon-071209.tar.gz) = 494758 bytes
+SHA1 (xkanon-gtk2-090830.tar.gz) = f306024a2dbdd8188488b5f63f3725ab4ca9cc74
+RMD160 (xkanon-gtk2-090830.tar.gz) = 8b2c1d6491b1f82df2ccde42a954bfa38bab801a
+SHA512 (xkanon-gtk2-090830.tar.gz) = 162a3048eaac71ffe8a4423206cb0c7023f07868da559c80b2fc8cadf503af7e2f6596b5834bddf661ec830d04974f36a03f54d2bc5c9d7b5e0e4302244cdfe9
+Size (xkanon-gtk2-090830.tar.gz) = 667208 bytes
+SHA1 (patch-Makefile.in) = d54f8bdba33786b08f6716cacceaba4b31980740
+SHA1 (patch-ayusys__gtk2.ja.po) = 5bfde3e112fee80be85ef2af891b8e28176c52b0
+SHA1 (patch-configure) = 8a93ce6b413ef8850d8c6b6a7cdb45a5cfa812ed
+SHA1 (patch-configure.in) = 9a58bae196eb993c1bce268d035fcf1df8b88c05
+SHA1 (patch-file.cc) = 7b9de34010f7d2cbf2d21ba9ff94d1a453cfa63a
+SHA1 (patch-file.h) = 0b2467837036b6bcf66ab5263413b55c326dbd9a
+SHA1 (patch-image__di.h) = 93d67c8b14a85c58eaedf5fb61d3c58c819c0fa2
+SHA1 (patch-image__di__Xbpp.cc) = 20a467155e40d8839493b4f33a4d0e03348e9f5a
+SHA1 (patch-image__di__impl.h) = e4a1b82193a5e526a8a41e8d978d7aac90d818d4
+SHA1 (patch-image__di__seldraw.cc) = c066e3415a2621470d0854cc5cc1b5736cd8ed1f
+SHA1 (patch-image__di__selimpl1.cc) = f91a76dbbe95c1bb9122857429f3727d2085bf74
+SHA1 (patch-image__di__selimpl2.cc) = 4bccc4c055afa319f2c3409ffef8bc0b067d97af
+SHA1 (patch-image__di__selimpl3.cc) = d5b589515cd80923660c67a957e80452f5a5a93a
+SHA1 (patch-image__pdt.cc) = 54808d102d63d8bb43d3740f7c95ea32baf4d74b
+SHA1 (patch-senario.cc) = fd120ae9cf045575faeec38a708f0e20562d169e
+SHA1 (patch-senario__flags.cc) = 7f3004b13980453f3e34d61f78d88cf95d5a6d83
+SHA1 (patch-system__config.cc) = 75a7c4f026b072a140cded971ddd7fffc0a2212c
+SHA1 (patch-window__text.cc) = c50719ec7e1dad0d7c133f7b699d33e92d5f54c8
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-Makefile.in    Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-Makefile.in,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Handle DESTDIR and build .mo file on make all.
+
+--- Makefile.in.orig   2008-01-06 06:20:00.000000000 +0000
++++ Makefile.in
+@@ -31,14 +31,14 @@ MUSIC_OBJ=system_music.o contrib/contrib
+ 
+ OBJ=main.o file.o initial.o $(IMAGE_OBJ) option.o game_opt.o check_cgm.o system.o system_config.o system_graphics.o anm.o ard.o $(SENARIO_OBJ) window.o window_text.o window_name.o window_menu.o 
window_all.o $(MUSIC_OBJ) $(TTFONT_OBJ)
+ 
+-all: $(BIN)
++all: $(BIN) ayusys_gtk2.ja.mo
+ install: all install-mo
+-      mkdir -p $(BINDIR)
+-      cp -f $(BIN) $(BINDIR)
++      mkdir -p ${DESTDIR}$(BINDIR)
++      cp -f $(BIN) ${DESTDIR}$(BINDIR)
+ 
+ install-mo: ayusys_gtk2.ja.mo
+-      -mkdir -p $(LOCALEDIR)/ja/LC_MESSAGES
+-      -cp -f ayusys_gtk2.ja.mo $(LOCALEDIR)/ja/LC_MESSAGES/ayusys_gtk2.mo
++      -mkdir -p ${DESTDIR}$(LOCALEDIR)/ja/LC_MESSAGES
++      -cp -f ayusys_gtk2.ja.mo ${DESTDIR}$(LOCALEDIR)/ja/LC_MESSAGES/ayusys_gtk2.mo
+ 
+ ayusys_gtk2.ja.mo: ayusys_gtk2.ja.po
+       -msgfmt -o ayusys_gtk2.ja.mo ayusys_gtk2.ja.po
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-ayusys__gtk2.ja.po
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-ayusys__gtk2.ja.po     Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ayusys__gtk2.ja.po,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Add proper headers to print Japanese encoding messages.
+
+--- ayusys_gtk2.ja.po.orig     2012-01-20 16:45:37.000000000 +0000
++++ ayusys_gtk2.ja.po
+@@ -1,6 +1,8 @@
+-# SOME DESCRIPTIVE TITLE.
+-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+-#
++msgid ""
++msgstr ""
++"MIME-Version: 1.0\n"
++"Content-Type: text/plain; charset=EUC-JP\n"
++"Content-Transfer-Encoding: 8bit\n"
+ 
+ msgid "No Wait"
+ msgstr "¥Î¡¼¥¦¥§¥¤¥È"
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-configure      Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Fix for "ERROR: [check-portability.awk] => Found test ... == ...:" warning.
+
+--- configure.orig     2008-01-06 06:20:00.000000000 +0000
++++ configure
+@@ -13804,7 +13804,7 @@ if test "${enable_alsa+set}" = set; then
+   enableval="$enable_alsa"
+ 
+ fi;
+-if test "$enable_alsa" == "yes" ; then
++if test "$enable_alsa" = "yes" ; then
+   alsa_save_CFLAGS="$CFLAGS"
+ alsa_save_LDFLAGS="$LDFLAGS"
+ alsa_save_LIBS="$LIBS"
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-configure.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-configure.in   Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.in,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Fix for "ERROR: [check-portability.awk] => Found test ... == ...:" warning.
+
+--- configure.in.orig  2008-01-06 06:20:00.000000000 +0000
++++ configure.in
+@@ -140,7 +140,7 @@ dnl Checks for libraries.
+ have_alsa=no
+ AC_ARG_ENABLE(alsa,
+   [  --enable-alsa             Try to use ALSA])
+-if test "$enable_alsa" == "yes" ; then
++if test "$enable_alsa" = "yes" ; then
+   AM_PATH_ALSA(0.9.0)
+   if test "$have_alsa" = "error" ; then
+     have_alsa=no
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-file.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-file.cc        Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-file.cc,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Don't use unaligned word copy that won't work on RISC CPUs.
+
+--- file.cc.orig       2008-01-06 06:20:00.000000000 +0000
++++ file.cc
+@@ -1719,13 +1719,7 @@ public:
+               lsrc += 2;
+       }
+       static void Copy1Pixel(const char*& lsrc, char*& ldest) {
+-#ifdef WORDS_BIGENDIAN
+-              ldest[0] = lsrc[0];
+-              ldest[1] = lsrc[1];
+-              ldest[2] = lsrc[2];
+-#else /* LITTLE ENDIAN / intel architecture */
+-              *(int*)ldest = *(int*)lsrc; ldest[3]=0;
+-#endif
++              memcpy(ldest, lsrc, 3);
+               lsrc += 3; ldest += 4;
+       }
+       static int ProcessBlockSize(void) {
+@@ -1862,13 +1856,7 @@ public:
+               lsrc += 2;
+       }
+       static void Copy1Pixel(const char*& lsrc, char*& ldest) {
+-#ifdef WORDS_BIGENDIAN
+-              ldest[0] = lsrc[0];
+-              ldest[1] = lsrc[1];
+-              ldest[2] = lsrc[2];
+-#else /* LITTLE ENDIAN / intel architecture */
+-              *(int*)ldest = *(int*)lsrc; ldest[3]=0;
+-#endif
++              memcpy(ldest, lsrc, 3);
+               lsrc += 3; ldest += 4;
+       }
+       static int ProcessBlockSize(void) {
diff -r eed33520c5dd -r 3447bf1232ab games/xkanon/patches/patch-file.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xkanon/patches/patch-file.h Thu Jan 02 09:56:49 2020 +0000
@@ -0,0 +1,76 @@
+$NetBSD: patch-file.h,v 1.1 2020/01/02 09:56:49 tsutsui Exp $
+
+Avoid unalignd word accesses even on little endian (for arm and mips).
+
+--- file.h.orig        2008-01-06 06:20:00.000000000 +0000
++++ file.h
+@@ -38,27 +38,19 @@
+ #include<stdlib.h>
+ #include<string.h>
+ 
+-#if defined(__sparc) || defined(sparc)
+-#  if !defined(WORDS_BIGENDIAN)
+-#    define WORDS_BIGENDIAN 1
+-#  endif
+-#endif
++#define INT_SIZE sizeof(int)
+ 
+-#ifdef WORDS_BIGENDIAN
+-
+-#define INT_SIZE 4
+-
+-static int read_little_endian_int(const char* buf) {
++static inline int read_little_endian_int(const char* buf) {
+       const unsigned char *p = (const unsigned char *) buf;
+       return (p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0];
+ }
+ 
+-static int read_little_endian_short(const char* buf) {
++static inline int read_little_endian_short(const char* buf) {
+       const unsigned char *p = (const unsigned char *) buf;
+       return (p[1] << 8) | p[0];
+ }
+ 
+-static int write_little_endian_int(char* buf, int number) {
++static inline int write_little_endian_int(char* buf, int number) {
+       int c = read_little_endian_int(buf);
+       unsigned char *p = (unsigned char *) buf;
+       unsigned int unum = (unsigned int) number;
+@@ -72,7 +64,7 @@ static int write_little_endian_int(char*
+       return c;
+ }
+ 
+-static int write_little_endian_short(char* buf, int number) {
++static inline int write_little_endian_short(char* buf, int number) {
+       int c = read_little_endian_short(buf);
+       unsigned char *p = (unsigned char *) buf;
+       unsigned int unum = (unsigned int) number;
+@@ -82,28 +74,6 @@ static int write_little_endian_short(cha
+       return c;
+ }
+ 
+-#else // defined(WORDS_BIGENDIAN)
+-
+-// assume little endian...
+-#define INT_SIZE 4
+-
+-inline int read_little_endian_int(const char* buf) {
+-      return *(int*)buf;
+-}
+-
+-inline int read_little_endian_short(const char* buf) {
+-      return *(short*)buf;
+-}
+-
+-inline int write_little_endian_int(char* buf, int number) {
+-      int c = *(int*)buf; *(int*)buf = number; return c;
+-}
+-
+-inline int write_little_endian_short(char* buf, int number) {
+-      int c = *(short*)buf; *(short*)buf = number; return c;
+-}
+-#endif // WORDS_BIGENDIAN



Home | Main Index | Thread Index | Old Index