Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2005 19:45:55 -0300
From:      "Alejandro Pulver" <alejandro@varnet.biz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/83576: [NEW PORT] games/exmars - Memory Array Redcode Simulator, just like exhaust and pMARS
Message-ID:  <1121553955.0@phobos.mars.bsd>
Resent-Message-ID: <200507162250.j6GMoL8c011236@freefall.freebsd.org>

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

>Number:         83576
>Category:       ports
>Synopsis:       [NEW PORT] games/exmars - Memory Array Redcode Simulator, just like exhaust and pMARS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 16 22:50:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:





>Description:





>How-To-Repeat:





>Fix:


--- exmars.shar begins here ---
# 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:
#
#	exmars
#	exmars/pkg-descr
#	exmars/Makefile
#	exmars/distinfo
#	exmars/files
#	exmars/files/patch-Makefile
#	exmars/pkg-plist
#
echo c - exmars
mkdir -p exmars > /dev/null 2>&1
echo x - exmars/pkg-descr
sed 's/^X//' >exmars/pkg-descr << 'END-of-exmars/pkg-descr'
XexMARS combines the latest advance in corewar simulation technology, with
Xproactive performance optimizations.
X
XActually exMARS is a redcode simulator, just like exhaust and pMARS. In fact,
XI have shamelessly taken sourcecode from pMARS, exhaust, some ideas from
XqMars, a shot of optimizations, shook everything well, and garnished
Xeverything with a high level interface for Ruby.
X
XThe resulting program has the following main features:
X
X* Uses the parser from pMARS, so no previous parsing is neccessary. At first
X  this was my main motivation for exMARS.
X* Speed: 50% faster than pmars on a Pentium III, and often more than twice as
X  fast than pmars on a Pentium 4 (using gcc 3.3.1, and the same compiler
X  options).
X* Rewritten the code in a more object oriented way, which allows different
X  Mars at the same time in the same program, it should also be thread save.
X
XAuthor: Martin Ankerl
X
XWWW: http://martinus.geekisp.com/rublog.cgi/Projects/CoreWar/exMARS
X
X- Alejandro Pulver
Xalejandro@varnet.biz
END-of-exmars/pkg-descr
echo x - exmars/Makefile
sed 's/^X//' >exmars/Makefile << 'END-of-exmars/Makefile'
X# New ports collection makefile for:	exmars
X# Date created:				16 Jul 2005
X# Whom:					Alejandro Pulver <alejandro@varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	exmars
XPORTVERSION=	0.01
XCATEGORIES=	games
XMASTER_SITES=	http://martinus.geekisp.com/files/
X
XMAINTAINER=	alejandro@varnet.biz
XCOMMENT=	Memory Array Redcode Simulator, just like exhaust and pMARS
X
XUSE_REINPLACE=	yes
X
XALL_TARGET=	${PORTNAME}
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
Xdo-install:
X# Program
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
X# Data
X	@${MKDIR} ${DATADIR}
X	@${CP} -R ${WRKSRC}/warriors ${DATADIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/bench.sh ${DATADIR}
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X# Fix bench.sh
X	@${REINPLACE_CMD} -e 's|pmars|pmars-server| ; \
X			s|\./exmars|exmars|' \
X				${WRKSRC}/bench.sh
X
X# Enable/disable compilation optimizations
X	@${REINPLACE_CMD} -e 's|\($${OPT}\)|${CFLAGS} \1|' ${WRKSRC}/${MAKEFILE}
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${REINPLACE_CMD} -e 's|$${OPT}||' ${WRKSRC}/${MAKEFILE}
X.endif
X
X.include <bsd.port.post.mk>
END-of-exmars/Makefile
echo x - exmars/distinfo
sed 's/^X//' >exmars/distinfo << 'END-of-exmars/distinfo'
XMD5 (exmars-0.01.tar.gz) = eccab4367bea768763e4a15cddbbe23f
XSIZE (exmars-0.01.tar.gz) = 67047
END-of-exmars/distinfo
echo c - exmars/files
mkdir -p exmars/files > /dev/null 2>&1
echo x - exmars/files/patch-Makefile
sed 's/^X//' >exmars/files/patch-Makefile << 'END-of-exmars/files/patch-Makefile'
X--- Makefile.orig	Thu Oct 16 04:59:17 2003
X+++ Makefile	Thu Jul  7 15:32:24 2005
X@@ -1,9 +1,9 @@
X # default flags
X-CCFLAGS = -O3 -fomit-frame-pointer
X+CCFLAGS = ${OPT}
X 
X # my own highly tuned settings
X #CC      = gcc-3.3.1 
X-#CCFLAGS = -O3 -fomit-frame-pointer -fforce-addr -funroll-all-loops -fstrict-aliasing -malign-double -fprefetch-loop-arrays -maccumulate-outgoing-args -minline-all-stringops -finline-functions -finline-limit=800 -ffast-math -mno-align-stringops
X+OPT = -O3 -fomit-frame-pointer -fforce-addr -funroll-all-loops -fstrict-aliasing -malign-double -fprefetch-loop-arrays -maccumulate-outgoing-args -minline-all-stringops -finline-functions -finline-limit=800 -ffast-math -mno-align-stringops
X #CCFLAGS += -mfpmath=sse,387 -mmmx -msse -march=pentium3
X 
X # develomental flags
X@@ -21,4 +21,4 @@
X 	rm -f exmars Mars.so *.o *~ 
X 
X distclean: clean
X-	rm -f *.da
X\ No newline at end of file
X+	rm -f *.da
END-of-exmars/files/patch-Makefile
echo x - exmars/pkg-plist
sed 's/^X//' >exmars/pkg-plist << 'END-of-exmars/pkg-plist'
Xbin/exmars
X%%DATADIR%%/bench.sh
X%%DATADIR%%/warriors/94nop/Fixed.red
X%%DATADIR%%/warriors/94nop/Jaguar.red
X%%DATADIR%%/warriors/94nop/QuickSilver.red
X%%DATADIR%%/warriors/94nop/Stalker.red
X%%DATADIR%%/warriors/94nop/behemot.red
X%%DATADIR%%/warriors/94nop/blade.red
X%%DATADIR%%/warriors/94nop/candy.red
X%%DATADIR%%/warriors/94nop/candy2.red
X%%DATADIR%%/warriors/94nop/cheephalfoff.red
X%%DATADIR%%/warriors/94nop/firestorm.red
X%%DATADIR%%/warriors/94nop/harmonysnoot.red
X%%DATADIR%%/warriors/94nop/hazylazy.red
X%%DATADIR%%/warriors/94nop/herbalavenger.red
X%%DATADIR%%/warriors/94nop/jinx.red
X%%DATADIR%%/warriors/94nop/machine.red
X%%DATADIR%%/warriors/94nop/nPaperII.red
X%%DATADIR%%/warriors/94nop/numb.red
X%%DATADIR%%/warriors/94nop/olivia.red
X%%DATADIR%%/warriors/94nop/pixie.red
X%%DATADIR%%/warriors/94nop/procoptodon.red
X%%DATADIR%%/warriors/94nop/purifier.red
X%%DATADIR%%/warriors/94nop/recon2.red
X%%DATADIR%%/warriors/94nop/reepicheep.red
X%%DATADIR%%/warriors/94nop/rotpendragon.red
X%%DATADIR%%/warriors/94nop/rov.red
X%%DATADIR%%/warriors/94nop/silvertalon12.red
X%%DATADIR%%/warriors/94nop/sonofvain.red
X%%DATADIR%%/warriors/94nop/thunderstrike.red
X%%DATADIR%%/warriors/94nop/uninvited.red
X%%DATADIR%%/warriors/94nop/vanquisher2.red
X%%DATADIR%%/warriors/error/error.red
X%%DATADIR%%/warriors/pspace/dawn2.red
X%%DATADIR%%/warriors/pspace/devilish.red
X%%DATADIR%%/warriors/pspace/hammerhead.red
X%%DATADIR%%/warriors/pspace/preserver.red
X%%DATADIR%%/warriors/pspace/rotpendragon2.red
X%%DATADIR%%/warriors/pspace/sunset.red
X%%DATADIR%%/warriors/pspace/unheardof.red
X@dirrm %%DATADIR%%/warriors/pspace
X@dirrm %%DATADIR%%/warriors/error
X@dirrm %%DATADIR%%/warriors/94nop
X@dirrm %%DATADIR%%/warriors
X@dirrm %%DATADIR%%
END-of-exmars/pkg-plist
exit

--- exmars.shar ends here ---



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



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