Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2005 20:08:05 -0300
From:      "Alejandro Pulver" <alejandro@varnet.biz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/83115: New port: games/exhaust - Redcode simulator easy to embed into applications
Message-ID:  <1120777685.0@phobos.mars.bsd>
Resent-Message-ID: <200507072310.j67NA9hZ053808@freefall.freebsd.org>

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

>Number:         83115
>Category:       ports
>Synopsis:       New port: games/exhaust - Redcode simulator easy to embed into applications
>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:   Thu Jul 07 23:10:09 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:


System: FreeBSD 5.4-RELEASE #0: Sat May 21 12:14:47 ART 2005
    root@phobos.mars.bsd:/usr/src/sys/i386/compile/ATHLON-ALE



>Description:





>How-To-Repeat:





>Fix:


--- exhaust.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:
#
#	exhaust
#	exhaust/Makefile
#	exhaust/distinfo
#	exhaust/pkg-message
#	exhaust/pkg-descr
#	exhaust/files
#	exhaust/files/patch-Makefile
#
echo c - exhaust
mkdir -p exhaust > /dev/null 2>&1
echo x - exhaust/Makefile
sed 's/^X//' >exhaust/Makefile << 'END-of-exhaust/Makefile'
X# New ports collection makefile for:	games/exhaust
X# Date created:			7 Aug 2005
X# Whom:				Alejandro Pulver <alejandro@varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	exhaust
XPORTVERSION=	1.9.2
XCATEGORIES=	games
XMASTER_SITES=	http://www.cs.helsinki.fi/u/jpihlaja/exhaust/
X
XMAINTAINER=	alejandro@varnet.biz
XCOMMENT=	Redcode simulator easy to embed into applications
X
XUSE_REINPLACE=	yes
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
XPLIST_FILES=	bin/${PORTNAME}
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
Xpost-install:
X	@${ECHO_CMD}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_CMD}
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
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-exhaust/Makefile
echo x - exhaust/distinfo
sed 's/^X//' >exhaust/distinfo << 'END-of-exhaust/distinfo'
XMD5 (exhaust-1.9.2.tar.gz) = fea6fbc9183f8a2ad51309de2c1e9622
XSIZE (exhaust-1.9.2.tar.gz) = 37805
END-of-exhaust/distinfo
echo x - exhaust/pkg-message
sed 's/^X//' >exhaust/pkg-message << 'END-of-exhaust/pkg-message'
XThis MARS does not have a parser, so you have to do it separately.
X
XTo parse Redcode programs with pMARS do the following:
X
Xpmars-server -r 0 b-scanner.red | sed '1,2d' > b-scanner.rc
END-of-exhaust/pkg-message
echo x - exhaust/pkg-descr
sed 's/^X//' >exhaust/pkg-descr << 'END-of-exhaust/pkg-descr'
XThe `exhaust' project is a redcode simulator that is (hopefully) easy to embed
Xinto your applications, as an alternative to pMARS.
X
XAuthor: M Joonas Pihlaja
X
XWWW: http://www.cs.helsinki.fi/u/jpihlaja/exhaust/exhaust.html
X
X- Alejandro Pulver
Xalejandro@varnet.biz
END-of-exhaust/pkg-descr
echo c - exhaust/files
mkdir -p exhaust/files > /dev/null 2>&1
echo x - exhaust/files/patch-Makefile
sed 's/^X//' >exhaust/files/patch-Makefile << 'END-of-exhaust/files/patch-Makefile'
X--- Makefile.orig	Sat Dec 28 02:50:08 2002
X+++ Makefile	Thu Jul  7 15:29:54 2005
X@@ -1,12 +1,10 @@
X # $Id: Makefile,v 1.11 2002/10/01 22:32:58 rowan Exp $
X 
X-CC = cc
X-CFLAGS = ${OPT} ${DBG}
X-OPT = -O4
X+CFLAGS = ${OPT}
X #DBG = -g -DDEBUG=2
X 
X # Recommended extra options for gcc:
X-#OPT += -fomit-frame-pointer -fforce-addr -finline-functions -funroll-loops
X+OPT = -O3 -fomit-frame-pointer -fforce-addr -finline-functions -funroll-loops
X #OPT += -mcpu=i686 -march=i686
X #DBG += -W -Wall -pedantic -ansi
X 
END-of-exhaust/files/patch-Makefile
exit

--- exhaust.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?1120777685.0>