aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2026-04-10 22:38:48 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2026-04-10 22:40:55 +0000
commitb63a7f46f119a54e8ce8bedff90ced9527b956e4 (patch)
tree14239238c33edffd02960bed8a9f2398c946231c
parente5fe730121cc4d9a3f519e4f7596a92da54cc32d (diff)
games/xonix: Resurrect
This game has been deleted about a decade ago since the distfile disappeared. Haolin Xue convinced me to resurrect it, and give it a home at Github. They submitted a bunch of modernization and security patches, so this is a new version now as well.
-rw-r--r--games/Makefile1
-rw-r--r--games/xonix/Makefile17
-rw-r--r--games/xonix/distinfo3
-rw-r--r--games/xonix/pkg-descr20
-rw-r--r--games/xonix/pkg-plist8
5 files changed, 49 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 9f1f29d7774c..5855c139832c 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -1119,6 +1119,7 @@
SUBDIR += xnethack
SUBDIR += xoids
SUBDIR += xoj
+ SUBDIR += xonix
SUBDIR += xonotic
SUBDIR += xorgramana
SUBDIR += xosmulti
diff --git a/games/xonix/Makefile b/games/xonix/Makefile
new file mode 100644
index 000000000000..00eff9d6f47d
--- /dev/null
+++ b/games/xonix/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= xonix
+PORTVERSION= 1.5
+CATEGORIES= games
+MASTER_SITES= https://github.com/dl8dtl/xonix/archive/refs/tags/
+DISTNAME= v${PORTVERSION}
+DIST_SUBDIR= xonix
+
+MAINTAINER= joerg@FreeBSD.org
+COMMENT= Try to win land without colliding with "flyers" and "eaters"
+WWW= https://github.com/dl8dtl/xonix
+
+LICENSE= BSD2CLAUSE
+
+USES= imake
+USE_XORG= xaw
+
+.include <bsd.port.mk>
diff --git a/games/xonix/distinfo b/games/xonix/distinfo
new file mode 100644
index 000000000000..3ba1b4dadc69
--- /dev/null
+++ b/games/xonix/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775860432
+SHA256 (xonix/v1.5.tar.gz) = 206621925b58ade832f9defd7b61e38dec3d5de23ca8ba826ea78eaf53968ba7
+SIZE (xonix/v1.5.tar.gz) = 46279
diff --git a/games/xonix/pkg-descr b/games/xonix/pkg-descr
new file mode 100644
index 000000000000..5a48bd48256d
--- /dev/null
+++ b/games/xonix/pkg-descr
@@ -0,0 +1,20 @@
+Xonix is an old action game.
+
+The purpose of the game is to move the player across the empty region
+(whereby it leaves his way in a brown color to show where it came
+along), and finally cut off a piece of unfilled region by moving him
+back to some filled region. If the player itself or the (unfilled
+yet) way will be hit by a flyer, a life will be lost again. Once the
+player's way reached another part of filled region, the way and all
+adjacent unfilled regions where there is no flyer in will be filled in
+turn. One level has com- pleted as soon as 75 % of the originally
+unfilled area have been filled this way.
+
+Every level, there will be one flyer more. Every second level, an
+additional player will be granted. Every fifth level, an additional
+eater will be fired off.
+
+The original xonix game has been seen somewhere on an old PC/XT clone.
+This is a reimplementation from scratch, done by Torsten Schoenitz
+starting the project on a Macintosh. The X11 support has been written
+by Joerg Wunsch with the pleasant help by Alfredo Herrera Hernandez.
diff --git a/games/xonix/pkg-plist b/games/xonix/pkg-plist
new file mode 100644
index 000000000000..9d4bc4863016
--- /dev/null
+++ b/games/xonix/pkg-plist
@@ -0,0 +1,8 @@
+@group games
+@(,games,2755) bin/xonix
+lib/X11/app-defaults/Xonix
+share/man/man1/xonix.1.gz
+@dir(,games,775) /var/games/xonix
+@postexec touch /var/games/xonix/xonix.scores
+@postexec chmod 0660 /var/games/xonix/xonix.scores
+@postunexec rm -f /var/games/xonix/xonix.scores