Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 1999 18:19:04 +0100
From:      Gianmarco Giovannelli <gmarco@giovannelli.it>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        Stefan.Strack@Vanderbilt.edu
Subject:   ports/10104: New port: games/pmars-0.8
Message-ID:  <4.1.19990215181438.00989a00@194.184.65.4>

next in thread | raw e-mail | index | archive | help

>Number:         10104
>Category:       ports
>Synopsis:       New port:  games/pmars-0.8
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 15 09:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Gianmarco Giovannelli
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
< Private >
>Environment:

FreeBSD gmarco.eclipse.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sun Feb 14
11:00:
11 CET 1999     gmarco@gmarco.eclipse.org:/usr/src/sys/compile/GMARCO  i386

>Description:

Core War is a game in which two or more virus-like programs fight against
each other in a simulated memory space or core. Core War programs are
written in an assembly language called Redcode which is interpreted by a
Core War simulator or MARS (Memory Array Redcode Simulator). The object of
the game is to prevent the other program(s) from executing. For more
information about Core War check out the usenet newsgroup rec.games.corewar
and its FAQ list ftp://rtfm.mit.edu/pub/usenet/games/corewar-faq
or send E-mail to Stefan.Strack@Vanderbilt.edu.


>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pmars
#	pmars/files
#	pmars/files/md5
#	pmars/pkg
#	pmars/pkg/COMMENT
#	pmars/pkg/DESCR
#	pmars/pkg/PLIST
#	pmars/patches
#	pmars/patches/patch-aa
#	pmars/Makefile
#
echo c - pmars
mkdir -p pmars > /dev/null 2>&1
echo c - pmars/files
mkdir -p pmars/files > /dev/null 2>&1
echo x - pmars/files/md5
sed 's/^X//' >pmars/files/md5 << 'END-of-pmars/files/md5'
XMD5 (pmars08s.tar.Z) = ad1869ea0a388f5c5070c4cd33b09d25
END-of-pmars/files/md5
echo c - pmars/pkg
mkdir -p pmars/pkg > /dev/null 2>&1
echo x - pmars/pkg/COMMENT
sed 's/^X//' >pmars/pkg/COMMENT << 'END-of-pmars/pkg/COMMENT'
Xportable corewar system with ICWS'94 extensions
END-of-pmars/pkg/COMMENT
echo x - pmars/pkg/DESCR
sed 's/^X//' >pmars/pkg/DESCR << 'END-of-pmars/pkg/DESCR'
XpMARS (portable Memory Array Redcode Simulator) is a corewar 
Xinterpreter with multi-platform support.
XpMARS implements the  ICWS'94 draft  standard, but can also be
Xused in ICWS'88 mode.
XThe base system includes a graphical  core  display  for  UNIX (curses, 
XX11 and Linux svgalib), PC/DOS  and  the Mac.
XA line-oriented debugger is included to help in writing warriors.
X
XContributors:
X * Albert Ma               (ama@mit.edu)
X * Na'ndor Sieben          (sieben@imap1.asu.edu)
X * Stefan Strack           (stst@vuse.vanderbilt.edu)
X * Mintardjo Wangsawidjaja (wangsawm@kira.csos.orst.edu)
X
Xdistfile: pmars08s.tar.Z (about 220kb)
Xhome page: http://www.koth.org/pmars
X
X- ported to FreeBSD by Gianmarco (gmarco@giovannelli.it)
END-of-pmars/pkg/DESCR
echo x - pmars/pkg/PLIST
sed 's/^X//' >pmars/pkg/PLIST << 'END-of-pmars/pkg/PLIST'
Xbin/pmars
Xshare/games/corewars/aeka.red
Xshare/games/corewars/pspace.red
Xshare/games/corewars/validate.red
Xshare/games/corewars/rave.red
Xshare/games/corewars/flashpaper.red
Xshare/games/corewars/README
X@dirrm share/games/corewars
X@dirrm share/games
X
END-of-pmars/pkg/PLIST
echo c - pmars/patches
mkdir -p pmars/patches > /dev/null 2>&1
echo x - pmars/patches/patch-aa
sed 's/^X//' >pmars/patches/patch-aa << 'END-of-pmars/patches/patch-aa'
X--- makefile.orig	Mon Feb 15 17:07:29 1999
X+++ makefile	Mon Feb 15 17:07:39 1999
X@@ -15,11 +15,11 @@
X # (5)   -DSMALLMEM                          16-bit addresses, less memory
X # (6)   -DXWINGRAPHX    1                   X-Windows graphics (UNIX)
X 
X-CFLAGS = -O -DEXT94
X+CFLAGS = -O -I/usr/X11R6/include -DEXT94 -DGRAPHX -DXWINGRAPHX
X LFLAGS = -x
X LIB = -lcurses -ltermlib		# enable this one for curses display
X # LIB = -lvgagl -lvga			# enable this one for Linux/SVGA
X-# LIB = -lX11				# enable this one for X11
X+LIB = -L/usr/X11R6/lib -lX11		# enable this one for X11
X 
X .SUFFIXES: .o .c .c~ .man .doc .6
X MAINFILE = pmars
X@@ -30,7 +30,7 @@
X OBJ2 = clparse.o global.o token.o 
X OBJ3 = str_eng.o
X 
X-ALL: flags $(MAINFILE) man doc
X+all: flags $(MAINFILE) man doc
X 
X flags:
X 	@echo Making $(MAINFILE) with compiler flags $(CFLAGS)
END-of-pmars/patches/patch-aa
echo x - pmars/Makefile
sed 's/^X//' >pmars/Makefile << 'END-of-pmars/Makefile'
X# New ports collection makefile for:   games/pmars
X# Version required:    pmars v0.8
X# Date created:        15 Feb 1999
X# Whom:                gmarco@scotty.masternet.it
X#
X# $Id$
X#
X
XDISTNAME= pmars08s
XPKGNAME= pmars-0.8
XCATEGORIES= games
XMASTER_SITES= http://www.koth.org/pmars/ \
X	      http://www.giovannelli.it/~gmarco/files/
XEXTRACT_SUFX= .tar.Z
X
XMAINTAINER= freebsd@scotty.masternet.it
X
XUSE_XLIB= yes
XNO_WRKSUBDIR= yes
XMAKEFILE= makefile
XMAN6= pmars.6
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/games
X	@${MKDIR} ${PREFIX}/share/games/corewars
X	@${INSTALL_PROGRAM} ${WRKSRC}/pmars ${PREFIX}/bin
X	@${INSTALL_DATA} ${WRKSRC}/pmars.6 ${PREFIX}/man/man6
X	@${INSTALL_DATA} ${WRKSRC}/*.red ${PREFIX}/share/games/corewars
X	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/games/corewars
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "You can try something like :"
X	@${ECHO_MSG} "pmars -v 603 ${PREFIX}/share/games/corewars/rave.red
${PREFIX}/share/games/corewars/aeka.red"
X	@${ECHO_MSG} "to see how the simulator works (rave.red and aeka.red are
two sample warriors)"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "Some other warriors are installed in :
${PREFIX}/share/games/corewars"
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "Plase read also ${PREFIX}/share/games/corewars/README file
for more infos"
X	@${ECHO_MSG} "on corewars and on the current version of pmars"
X	@${ECHO_MSG} ""
X.include <bsd.port.mk>
END-of-pmars/Makefile
exit



Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://www.giovannelli.it/~gmarco  
http://www2.masternet.it 



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990215181438.00989a00>