pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games games: add xtacy



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b882b7e90dc
branches:  trunk
changeset: 771918:5b882b7e90dc
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Dec 30 00:43:35 2021 +0000

description:
games: add xtacy

Xtacy displays bouncing shapes, rotating palettes, a couple fractals, a
kaleidascope, and lots of more stuff.

diffstat:

 games/Makefile                       |   3 ++-
 games/xtacy/DESCR                    |   2 ++
 games/xtacy/Makefile                 |  23 +++++++++++++++++++++++
 games/xtacy/PLIST                    |   3 +++
 games/xtacy/distinfo                 |  11 +++++++++++
 games/xtacy/patches/patch-Imakefile  |  15 +++++++++++++++
 games/xtacy/patches/patch-color.c    |  14 ++++++++++++++
 games/xtacy/patches/patch-lunch.c    |  14 ++++++++++++++
 games/xtacy/patches/patch-modes.c    |  14 ++++++++++++++
 games/xtacy/patches/patch-password.c |  14 ++++++++++++++
 games/xtacy/patches/patch-rotate.c   |  20 ++++++++++++++++++++
 11 files changed, 132 insertions(+), 1 deletions(-)

diffs (187 lines):

diff -r 18e682d80a96 -r 5b882b7e90dc games/Makefile
--- a/games/Makefile    Thu Dec 30 00:26:33 2021 +0000
+++ b/games/Makefile    Thu Dec 30 00:43:35 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.510 2021/12/30 00:26:20 nia Exp $
+# $NetBSD: Makefile,v 1.511 2021/12/30 00:43:35 nia Exp $
 #
 
 COMMENT=       Games
@@ -470,6 +470,7 @@
 SUBDIR+=       xskat
 SUBDIR+=       xsokoban
 SUBDIR+=       xsoldier
+SUBDIR+=       xtacy
 SUBDIR+=       xtris
 SUBDIR+=       xtux
 SUBDIR+=       xu4
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/DESCR Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,2 @@
+Xtacy displays bouncing shapes, rotating palettes, a couple fractals, a
+kaleidascope, and lots of more stuff.
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/Makefile      Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+DISTNAME=      xtacy114
+PKGNAME=       xtacy-1.14
+CATEGORIES=    games
+MASTER_SITES=  https://web.archive.org/web/20000422141333/http://www.ultranet.com/~jjohnson/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://web.archive.org/web/20000422141333/http://www.gweep.net/~jer/xtacy.html
+COMMENT=       Graphics hack for X11
+LICENSE=       gnu-gpl-v2
+
+# XXX: HACK: the tar.gz is not actually a gzip file
+EXTRACT_ENV+=  GZCAT=cat
+
+WRKSRC=                ${WRKDIR}/Xtacy
+
+USE_IMAKE=     yes
+
+LDFLAGS.NetBSD+=       -lcrypt
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/PLIST Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/30 00:43:35 nia Exp $
+bin/xtacy
+man/man1/xtacy.1
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/distinfo      Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+BLAKE2s (xtacy114.tar.gz) = 1cd914aa0e9076938ca5f465bfa12ccfb33040f219f9eebf649b14020efe7c3d
+SHA512 (xtacy114.tar.gz) = 72bcdc51ded08ed876bdb005300e92621893410ea1d8bc30eec40e18a0d0b4c2e3dacb4dffd0f6620181d50016f52b00007250b2dfa93b4c1c7ea216acda356a
+Size (xtacy114.tar.gz) = 1064960 bytes
+SHA1 (patch-Imakefile) = 4dcd350ececcc37a29a60e853b2d7a6b056ddcd8
+SHA1 (patch-color.c) = 5884916d32486abb8a91b5145bfa80e64051215f
+SHA1 (patch-lunch.c) = f1250a8c240b026c206ac73e26c2a5710f0fd905
+SHA1 (patch-modes.c) = d5fb941456472898074a54c2928f0ae5e867c889
+SHA1 (patch-password.c) = cdbdfc2621a7968c551f6835d8f1ea686da7c8d2
+SHA1 (patch-rotate.c) = 7cd2fa3d4530981c4cec89737a98ab55d2db435c
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-Imakefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-Imakefile       Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Imakefile,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Honor CFLAGS.
+
+--- Imakefile.orig     1998-12-15 17:54:32.000000000 +0000
++++ Imakefile
+@@ -13,8 +13,5 @@ OBJS=bezier.o blob.o color.o cursor.o fi
+       starback.o swarm.o tag.o trippy.o waves.o xguts.o mirrors.o \
+       fractals.o modes.o
+ 
+-CDEBUGFLAGS = -O3 -Wall -g
+-CFLAGS = -O3 
+-
+ ComplexProgramTarget(xtacy)
+ 
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-color.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-color.c Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-color.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Need string.h for memcpy().
+
+--- color.c.orig       1998-09-04 05:40:45.000000000 +0000
++++ color.c
+@@ -7,6 +7,7 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "trippy.h"
+ 
+ #ifndef sgn
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-lunch.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-lunch.c Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-lunch.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Need string.h for strlen().
+
+--- lunch.c.orig       1997-04-28 01:34:27.000000000 +0000
++++ lunch.c
+@@ -7,6 +7,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <X11/X.h>
+ #include <X11/Xlib.h>
+ #include "trippy.h"
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-modes.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-modes.c Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-modes.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Need string.h for memcpy().
+
+--- modes.c.orig       1998-05-24 02:23:12.000000000 +0000
++++ modes.c
+@@ -11,6 +11,7 @@
+ #include <X11/Xutil.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <math.h>
+ #include "trippy.h"
+ #include "lmath.h"
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-password.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-password.c      Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-password.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Need string.h for strcpy().
+
+--- password.c.orig    1997-04-20 21:48:36.000000000 +0000
++++ password.c
+@@ -50,6 +50,7 @@ extern char    *password;
+ #define SECURE_PASSWD
+ #endif
+ #include <unistd.h>
++#include <string.h>
+ 
+ int
+ matchesPassword (char *guess, int allowroot)
diff -r 18e682d80a96 -r 5b882b7e90dc games/xtacy/patches/patch-rotate.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xtacy/patches/patch-rotate.c        Thu Dec 30 00:43:35 2021 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-rotate.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+
+Don't cast pointer to int, it no longer even works under Linux/GCC
+because this isn't 1995 and 64-bit platforms exist.
+
+--- rotate.c.orig      1998-11-29 21:09:40.000000000 +0000
++++ rotate.c
+@@ -510,9 +510,9 @@ morph(int winno, SHAPE* source, SHAPE* d
+     {
+ /* wheee.. fun with pointer math ... but will it work everywhere? */
+ /* eh... what the hell, it works under Linux/GCC */
+-      int base=(int)&(source->vertices[0]);
+-      int facenum =(int) (source->faces[i]);
+-      int sidenum= (facenum-base)/(sizeof(vertex_type));
++      intptr_t base=(int)&(source->vertices[0]);
++      intptr_t facenum =(int) (source->faces[i]);
++      intptr_t sidenum= (facenum-base)/(sizeof(vertex_type));
+       temp.faces[i]= &temp.vertices[sidenum];
+     }
+     for(i=0;i<dest->numVert;i++)



Home | Main Index | Thread Index | Old Index