From 31fca295ef2a43ba1ae5ee175142b85147133fe3 Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Tue, 6 Jun 2000 00:56:18 +0000 Subject: qix - the classic arcade game. --- games/qix/Makefile | 26 ++++++++++++++++++++++++++ games/qix/distinfo | 1 + games/qix/pkg-comment | 1 + games/qix/pkg-deinstall | 18 ++++++++++++++++++ games/qix/pkg-descr | 5 +++++ games/qix/pkg-install | 21 +++++++++++++++++++++ games/qix/pkg-plist | 6 ++++++ games/qix/pkg-req | 15 +++++++++++++++ 8 files changed, 93 insertions(+) create mode 100644 games/qix/Makefile create mode 100644 games/qix/distinfo create mode 100644 games/qix/pkg-comment create mode 100644 games/qix/pkg-deinstall create mode 100644 games/qix/pkg-descr create mode 100644 games/qix/pkg-install create mode 100644 games/qix/pkg-plist create mode 100644 games/qix/pkg-req (limited to 'games/qix') 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 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 <