diff --git a/games/xmris/Makefile b/games/xmris/Makefile new file mode 100644 index 000000000000..188a2b2f4d3b --- /dev/null +++ b/games/xmris/Makefile @@ -0,0 +1,8 @@ +DISTNAME= xmris.4.02 +USE_IMAKE= yes +MASTER_SITES= ftp://ftp.x.org/R5contrib/ + +pre-install: + @(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man) + +.include diff --git a/games/xmris/pkg-comment b/games/xmris/pkg-comment new file mode 100644 index 000000000000..ea7921ffe7f6 --- /dev/null +++ b/games/xmris/pkg-comment @@ -0,0 +1 @@ +Xmris: a version of a popular video arcade game for the X Window System. diff --git a/games/xmris/pkg-descr b/games/xmris/pkg-descr new file mode 100644 index 000000000000..176777bfec56 --- /dev/null +++ b/games/xmris/pkg-descr @@ -0,0 +1,5 @@ +You control a gnome, who can walk around a garden, along paths already +marked, or create new paths wherever you wish. You also have a ball, +which can be thrown in the direction you're facing, towards the gnome's +feet. Points are scored for collecting cherries, killing monsters and +collecting the prize left when all the monsters have come out of their den. diff --git a/games/xmris/pkg-plist b/games/xmris/pkg-plist new file mode 100644 index 000000000000..a0cb6c691bab --- /dev/null +++ b/games/xmris/pkg-plist @@ -0,0 +1,22 @@ +@cd /usr/local +@owner bin +@group bin +@mode 444 +man/man6/xmris.6 +man/man6/xmsit.6 +man/man6/xmred.6 +@chmod a+x %D/man +@chmod a+x %D/man/man6 +@owner games +@mode 4755 +bin/xmris +bin/xmsit +@mode 755 +bin/xmred +@cd /usr/X386 +@mode 444 +lib/X11/app-defaults/Xmris +lib/X11/app-defaults/xmris/alphabet.gdn +lib/X11/app-defaults/xmris/digits.gdn +lib/X11/app-defaults/xmris/puzzle.gdn +lib/X11/app-defaults/xmris/xmred.gdn diff --git a/games/xmris/scripts/pre-configure b/games/xmris/scripts/pre-configure new file mode 100644 index 000000000000..6c01b92f1e8c --- /dev/null +++ b/games/xmris/scripts/pre-configure @@ -0,0 +1,20 @@ +#!/bin/sh + +# X must be running when the scram program creates the bitmaps +xwd -root >/dev/null +if [ $? != 0 ]; then + echo "X needs to be started to build xmris" + exit 1 +fi + +mv $3/Imakefile $3/Imakefile.orig + +echo "LOCAL=/usr/local" >$3/Imakefile || exit 1; + +# remove extra space after \ in continuation lines +sed -e 's/\\ $/\\/' <$3/Imakefile.orig >>$3/Imakefile || exit 1 + +echo "CDEBUGFLAGS=-O2" >>$3/Imakefile || exit 1 +echo "MANSUFFIX=6" >>$3/Imakefile || exit 1 + +exit 0