1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

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
This commit is contained in:
Steve Price 1998-07-04 19:31:54 +00:00
parent 41abca5a8e
commit e10e78417f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11716
7 changed files with 99 additions and 0 deletions

27
games/xworm/Makefile Normal file
View File

@ -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>

1
games/xworm/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (xworm102.tar.gz) = 17c7a53c48d4b7489d507fab020e4134

View File

@ -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

View File

@ -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 */

1
games/xworm/pkg-comment Normal file
View File

@ -0,0 +1 @@
Classic game with apples and hungry worm.

5
games/xworm/pkg-descr Normal file
View File

@ -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.

5
games/xworm/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
bin/xworm
share/xworm/xworm.font
share/xworm/xworm.grid
share/xworm/xworm.raw
@dirrm share/xworm