diff options
author | steve <steve@FreeBSD.org> | 1998-07-05 03:31:54 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-07-05 03:31:54 +0800 |
commit | 784e36217daa2e2a10f82a4bb64bbd64c2cd3da9 (patch) | |
tree | 7adc9a7d011b30a6bfbd6123b3bf39344432f4b1 | |
parent | be6cd37c45b80675c626bbde988f31837c9ced2f (diff) | |
download | freebsd-ports-gnome-784e36217daa2e2a10f82a4bb64bbd64c2cd3da9.tar.gz freebsd-ports-gnome-784e36217daa2e2a10f82a4bb64bbd64c2cd3da9.tar.zst freebsd-ports-gnome-784e36217daa2e2a10f82a4bb64bbd64c2cd3da9.zip |
Initial import of xworm version 1.02.
xworm - a classic game with apples and a hungry worm.
PR: 6700
Submitted by: andy@icc.surw.chel.su
-rw-r--r-- | games/xworm/Makefile | 27 | ||||
-rw-r--r-- | games/xworm/distinfo | 1 | ||||
-rw-r--r-- | games/xworm/files/patch-aa | 34 | ||||
-rw-r--r-- | games/xworm/files/patch-ab | 26 | ||||
-rw-r--r-- | games/xworm/pkg-comment | 1 | ||||
-rw-r--r-- | games/xworm/pkg-descr | 5 | ||||
-rw-r--r-- | games/xworm/pkg-plist | 5 |
7 files changed, 99 insertions, 0 deletions
diff --git a/games/xworm/Makefile b/games/xworm/Makefile new file mode 100644 index 000000000000..4e08f0cebfe2 --- /dev/null +++ b/games/xworm/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: xworm +# Version required: 1.02 +# Date created: 18 March 1998 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= xworm102 +PKGNAME= xworm-1.02 +CATEGORIES= games x11 +MASTER_SITES= http://www.ekran.no/archive/x/ + +MAINTAINER= andy@icc.surw.chel.su + +ALL_TARGET= freebsd +USE_X11= yes +WRKSRC= ${WRKDIR}/XWorm + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/xworm ${PREFIX}/bin + @ ${MKDIR} ${PREFIX}/share/xworm +.for file in font grid raw + @ ${INSTALL_DATA} ${WRKSRC}/xworm.${file} ${PREFIX}/share/xworm +.endfor + +.include <bsd.port.mk> diff --git a/games/xworm/distinfo b/games/xworm/distinfo new file mode 100644 index 000000000000..dd9679b3764d --- /dev/null +++ b/games/xworm/distinfo @@ -0,0 +1 @@ +MD5 (xworm102.tar.gz) = 17c7a53c48d4b7489d507fab020e4134 diff --git a/games/xworm/files/patch-aa b/games/xworm/files/patch-aa new file mode 100644 index 000000000000..af2295abb34b --- /dev/null +++ b/games/xworm/files/patch-aa @@ -0,0 +1,34 @@ +--- Makefile Wed May 7 16:28:12 1997 ++++ /home/andy/tmp/wrk/Makefile Wed Mar 18 23:40:31 1998 +@@ -6,6 +6,7 @@ + HPFLAGS = -O -D_HPUX_SOURCE + SUNFLAGS = -O + LINUXFLAGS = -O ++FREEBSDFLAGS= -O -DPREFIX=\"/usr/X11R6/share/xworm\" + + INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include + +@@ -18,9 +19,10 @@ + @echo " " + @echo "type:" + @echo " " +- @echo " make hp [HP/UX and similar systems]" +- @echo " make sun [Sun-Os/SUN systems]" +- @echo " make linux [linux systems]" ++ @echo " make hp [HP/UX and similar systems]" ++ @echo " make sun [Sun-Os/SUN systems]" ++ @echo " make linux [linux systems]" ++ @echo " make freebsd [FreeBSD systems]" + @echo " " + @echo "xworm.font, xworm.grid and xworm.raw has to be in the same directory as xworm" + @echo "please check the Makefile if you have problems compiling the program" +@@ -33,6 +35,9 @@ + + linux: xworm.c + $(CC) $(LINUXFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK) ++ ++freebsd: xworm.c ++ $(CC) $(FREEBSDFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK) + + clean: + rm -f core xworm diff --git a/games/xworm/files/patch-ab b/games/xworm/files/patch-ab new file mode 100644 index 000000000000..73bc78c790f1 --- /dev/null +++ b/games/xworm/files/patch-ab @@ -0,0 +1,26 @@ +--- xworm.c Wed May 7 16:25:57 1997 ++++ /home/andy/tmp/wrk/xworm.c Wed Mar 18 23:40:39 1998 +@@ -3,13 +3,20 @@ + + #include <X11/Xlib.h> + #include <X11/Xutil.h> ++#ifdef __FreeBSD__ ++#include <sys/time.h> ++#endif + #include <time.h> + #include <string.h> + #include <stdio.h> + +-#define gridfile "xworm.grid" +-#define fontfile "xworm.font" +-#define logofile "xworm.raw" ++#ifndef PREFIX ++#define PREFIX "." ++#endif ++ ++#define gridfile PREFIX "/xworm.grid" ++#define fontfile PREFIX "/xworm.font" ++#define logofile PREFIX "/xworm.raw" + + #define maxQ 5000 /* max queue */ + #define NCOLORS 15 /* number of colours */ diff --git a/games/xworm/pkg-comment b/games/xworm/pkg-comment new file mode 100644 index 000000000000..ecbe8128ba27 --- /dev/null +++ b/games/xworm/pkg-comment @@ -0,0 +1 @@ +Classic game with apples and hungry worm. diff --git a/games/xworm/pkg-descr b/games/xworm/pkg-descr new file mode 100644 index 000000000000..93446c0e3cbf --- /dev/null +++ b/games/xworm/pkg-descr @@ -0,0 +1,5 @@ + In this game you must help wormie - the hungry maggot, to steal +apples from bazar the evil. Bazar has put an electric fence around +the garden, and he has also been spreading poisionous mushrooms +into it. You must guide wormie around this objects, and you must +keep him from eating himself. diff --git a/games/xworm/pkg-plist b/games/xworm/pkg-plist new file mode 100644 index 000000000000..f65e0b8107f4 --- /dev/null +++ b/games/xworm/pkg-plist @@ -0,0 +1,5 @@ +bin/xworm +share/xworm/xworm.font +share/xworm/xworm.grid +share/xworm/xworm.raw +@dirrm share/xworm |