summaryrefslogtreecommitdiff
path: root/games/xtacy
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-12-30 00:43:35 +0000
committernia <nia@pkgsrc.org>2021-12-30 00:43:35 +0000
commitcd5dd564330bc08074764f6868399c821f947888 (patch)
tree16c1f9dc0df4fe232ddc77fc1daf72f14ccb11ac /games/xtacy
parent3d9d9fa55e931d5ed91eb400a285d132c827cdaa (diff)
downloadpkgsrc-cd5dd564330bc08074764f6868399c821f947888.tar.gz
games: add xtacy
Xtacy displays bouncing shapes, rotating palettes, a couple fractals, a kaleidascope, and lots of more stuff.
Diffstat (limited to 'games/xtacy')
-rw-r--r--games/xtacy/DESCR2
-rw-r--r--games/xtacy/Makefile23
-rw-r--r--games/xtacy/PLIST3
-rw-r--r--games/xtacy/distinfo11
-rw-r--r--games/xtacy/patches/patch-Imakefile15
-rw-r--r--games/xtacy/patches/patch-color.c14
-rw-r--r--games/xtacy/patches/patch-lunch.c14
-rw-r--r--games/xtacy/patches/patch-modes.c14
-rw-r--r--games/xtacy/patches/patch-password.c14
-rw-r--r--games/xtacy/patches/patch-rotate.c20
10 files changed, 130 insertions, 0 deletions
diff --git a/games/xtacy/DESCR b/games/xtacy/DESCR
new file mode 100644
index 00000000000..521f5df978a
--- /dev/null
+++ b/games/xtacy/DESCR
@@ -0,0 +1,2 @@
+Xtacy displays bouncing shapes, rotating palettes, a couple fractals, a
+kaleidascope, and lots of more stuff.
diff --git a/games/xtacy/Makefile b/games/xtacy/Makefile
new file mode 100644
index 00000000000..aa2914ace3c
--- /dev/null
+++ b/games/xtacy/Makefile
@@ -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
+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 --git a/games/xtacy/PLIST b/games/xtacy/PLIST
new file mode 100644
index 00000000000..c482f4d9686
--- /dev/null
+++ b/games/xtacy/PLIST
@@ -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 --git a/games/xtacy/distinfo b/games/xtacy/distinfo
new file mode 100644
index 00000000000..3d6eb2dd520
--- /dev/null
+++ b/games/xtacy/distinfo
@@ -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 --git a/games/xtacy/patches/patch-Imakefile b/games/xtacy/patches/patch-Imakefile
new file mode 100644
index 00000000000..a5af3a67a73
--- /dev/null
+++ b/games/xtacy/patches/patch-Imakefile
@@ -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 --git a/games/xtacy/patches/patch-color.c b/games/xtacy/patches/patch-color.c
new file mode 100644
index 00000000000..8803574bf2b
--- /dev/null
+++ b/games/xtacy/patches/patch-color.c
@@ -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 --git a/games/xtacy/patches/patch-lunch.c b/games/xtacy/patches/patch-lunch.c
new file mode 100644
index 00000000000..ff41102126f
--- /dev/null
+++ b/games/xtacy/patches/patch-lunch.c
@@ -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 --git a/games/xtacy/patches/patch-modes.c b/games/xtacy/patches/patch-modes.c
new file mode 100644
index 00000000000..93ed124774c
--- /dev/null
+++ b/games/xtacy/patches/patch-modes.c
@@ -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 --git a/games/xtacy/patches/patch-password.c b/games/xtacy/patches/patch-password.c
new file mode 100644
index 00000000000..d0d8d3bf4f5
--- /dev/null
+++ b/games/xtacy/patches/patch-password.c
@@ -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 --git a/games/xtacy/patches/patch-rotate.c b/games/xtacy/patches/patch-rotate.c
new file mode 100644
index 00000000000..00b80f5ae9d
--- /dev/null
+++ b/games/xtacy/patches/patch-rotate.c
@@ -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++)