summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2000-06-06 00:56:18 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2000-06-06 00:56:18 +0000
commit31fca295ef2a43ba1ae5ee175142b85147133fe3 (patch)
tree48808ceea04aa38083f15b929e6a52a620165b59 /games
parentUpdate to 1.2.1 (bugfixes) (diff)
qix - the classic arcade game.
Notes
Notes: svn path=/head/; revision=29239
Diffstat (limited to 'games')
-rw-r--r--games/qix/Makefile26
-rw-r--r--games/qix/distinfo1
-rw-r--r--games/qix/pkg-comment1
-rw-r--r--games/qix/pkg-deinstall18
-rw-r--r--games/qix/pkg-descr5
-rw-r--r--games/qix/pkg-install21
-rw-r--r--games/qix/pkg-plist6
-rw-r--r--games/qix/pkg-req15
8 files changed, 93 insertions, 0 deletions
diff --git a/games/qix/Makefile b/games/qix/Makefile
new file mode 100644
index 000000000000..1a177192c502
--- /dev/null
+++ b/games/qix/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: qix
+# Date created: 6 June 2000
+# Whom: jmz
+#
+# $FreeBSD$
+#
+
+PORTNAME= qix
+PORTVERSION= 1.1
+CATEGORIES= games
+MASTER_SITES= http://people.freebsd.org/~jmz/
+
+MAINTAINER= jmz@FreeBSD.org
+
+USE_X_PREFIX= yes
+MAN1= qix.1
+
+FONTSDIR= lib/X11/fonts/local
+PLIST_SUB= FONTSDIR=${FONTSDIR}
+
+do-configure:
+ @${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile~
+ @${SED} -e s:/usr/local:${PREFIX}: -e s:/usr/X11R6:${PREFIX}: \
+ < ${WRKSRC}/Makefile~ > ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/games/qix/distinfo b/games/qix/distinfo
new file mode 100644
index 000000000000..57345640ed97
--- /dev/null
+++ b/games/qix/distinfo
@@ -0,0 +1 @@
+MD5 (qix-1.1.tar.gz) = 524190d08a48cd6227f7a355fab13cdb
diff --git a/games/qix/pkg-comment b/games/qix/pkg-comment
new file mode 100644
index 000000000000..39f560b4e7b7
--- /dev/null
+++ b/games/qix/pkg-comment
@@ -0,0 +1 @@
+qix - the classic arcade game.
diff --git a/games/qix/pkg-deinstall b/games/qix/pkg-deinstall
new file mode 100644
index 000000000000..aa9faf7ceff0
--- /dev/null
+++ b/games/qix/pkg-deinstall
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+X11BASE=/usr/X11R6
+FONTDIR=$X11BASE/lib/X11/fonts/local
+ALIAS=$FONTDIR/fonts.alias
+
+sed -e /qix/d $ALIAS > $ALIAS.tmp
+mv $ALIAS.tmp $ALIAS
+if [ ! -s $ALIAS ]; then rm -f $ALIAS; fi
+
+$X11BASE/bin/mkfontdir $FONTDIR
+if [ `ls -l $FONTDIR/fonts.dir|awk '{print $5}'` = 2 ]; then
+ rm $FONTDIR/fonts.dir
+fi
+exit 0 \ No newline at end of file
diff --git a/games/qix/pkg-descr b/games/qix/pkg-descr
new file mode 100644
index 000000000000..996d0a55408d
--- /dev/null
+++ b/games/qix/pkg-descr
@@ -0,0 +1,5 @@
+The purpose of the game is to avoid being killed by enemies. Enemies are
+the two fuses runing on the boundary, and the qix moving inside the
+territory. You can leave the boundary and draw a line inside the territory;
+then you return on the boundary, filling a rectangle. Once you have filled an
+area greater than 75% of the whole surface you reach the next level.
diff --git a/games/qix/pkg-install b/games/qix/pkg-install
new file mode 100644
index 000000000000..1ec18fccfae8
--- /dev/null
+++ b/games/qix/pkg-install
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+if [ "$2" != POST-INSTALL ] ; then
+ exit 0
+fi
+
+X11BASE=/usr/X11R6
+FONTDIR=$X11BASE/lib/X11/fonts/local
+
+mkdir -p $X11BASE/share/qix
+chown bin.games $X11BASE/share/qix
+chmod g+w $X11BASE/share/qix
+
+cat >> $FONTDIR/fonts.alias <<EOF
+qix18 -qix-terminal-medium-r-normal--18-180-75-75-c-110-iso8859-1
+qix14 -qix-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-1
+EOF
+
+$X11BASE/bin/mkfontdir $FONTDIR
+
+exit 0
diff --git a/games/qix/pkg-plist b/games/qix/pkg-plist
new file mode 100644
index 000000000000..7545eb2b6be9
--- /dev/null
+++ b/games/qix/pkg-plist
@@ -0,0 +1,6 @@
+bin/qix
+bin/qix.bin
+bin/qix.xbin
+%%FONTSDIR%%/qix14.pcf.gz
+%%FONTSDIR%%/qix18.pcf.gz
+@dirrm share/qix
diff --git a/games/qix/pkg-req b/games/qix/pkg-req
new file mode 100644
index 000000000000..643e781d6406
--- /dev/null
+++ b/games/qix/pkg-req
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ "x$1" = "x" ]; then
+ exit 1;
+fi
+if [ "x$2" != "xINSTALL" -a "x$2" != "xDEINSTALL" ]; then
+ exit 1;
+fi
+
+echo "**********************************************************"
+echo "You should restart X server or do 'xset fp rehash' command"
+echo "to enable this update."
+echo "**********************************************************"
+
+exit 0;