diff options
author | alepulver <alepulver@FreeBSD.org> | 2008-01-30 03:28:45 +0000 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2008-01-30 03:28:45 +0000 |
commit | 8ae5befa434a94c84e2069de582c27cb9f09d461 (patch) | |
tree | 9b1cb952b8bee667c56717dec985f18b5eac4123 /games/qmars/Makefile | |
parent | a03d93a297eb0876a8763ea0e975b555aa740f80 (diff) | |
download | FreeBSD-ports-8ae5befa434a94c84e2069de582c27cb9f09d461.zip FreeBSD-ports-8ae5befa434a94c84e2069de582c27cb9f09d461.tar.gz |
QMars stands for Quicker Mars. It is a completely new implementation of a mars
simulator, which is an interpreter of the Assembler-like language RedCode,
which is used in CoreWars. QMars is heavily optimized to be as fast as
possible.
WWW: http://corewar.co.uk/ankerl/qmars.htm
Diffstat (limited to 'games/qmars/Makefile')
-rw-r--r-- | games/qmars/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games/qmars/Makefile b/games/qmars/Makefile new file mode 100644 index 0000000..0dee8a5 --- /dev/null +++ b/games/qmars/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: qmars +# Date created: 2008-01-15 +# Whom: alepulver +# +# $FreeBSD$ +# + +PORTNAME= qmars +PORTVERSION= 1.1 +CATEGORIES= games +MASTER_SITES= http://corewar.co.uk/ankerl/ +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= alepulver@FreeBSD.org +COMMENT= Quicker Mars is heavily optimized to be as fast as possible + +BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend + +USE_BZIP2= yes +REINPLACE_ARGS= -i "" +WRKSRC= ${WRKDIR}/${PORTNAME} + +post-patch: + @${REINPLACE_CMD} -e 's|g++|${CXX}|; s|CCFLAGS =|& ${CXXFLAGS}|' \ + ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e 's|\./||' ${WRKSRC}/bench.* + @${REINPLACE_CMD} -e 's|pmars|&-server|' ${WRKSRC}/bench.pmars + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bench.* ${DATADIR} + ${CP} -r ${WRKSRC}/warriors ${DATADIR} + +.include <bsd.port.mk> |