diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2008-01-30 04:03:27 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2008-01-30 04:03:27 +0000 |
commit | 60df7f192397be3104d79569b1fc46d4562ffa8c (patch) | |
tree | 5738fc2f418df837a28bcfe1206339489beb36fa /games/cre/Makefile | |
parent | b5c2829921c6b28721b5d6050dddb963a1af1162 (diff) |
CRE, which stands for Corewars Redcode Evolver, is an open-source program that
automatically generates programs for the game Corewars by using Charles
Darwin's theories on natural selection. When you start CRE, here's what
happens:
1. A population of warriors is created by randomly selecting instructions.
2. Each warrior's fitness is tested by battling with other warriors in the
population.
3. The fittest warriors reproduce and replace less fit warriors.
4. The previous two steps are repeated indefinitely.
WWW: http://cre.sourceforge.net/
Notes
Notes:
svn path=/head/; revision=206426
Diffstat (limited to 'games/cre/Makefile')
-rw-r--r-- | games/cre/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/games/cre/Makefile b/games/cre/Makefile new file mode 100644 index 000000000000..2e28bb70cd50 --- /dev/null +++ b/games/cre/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: cre +# Date created: 2008-01-15 +# Whom: alepulver +# +# $FreeBSD$ +# + +PORTNAME= cre +DISTVERSION= 1.2beta_r2 +CATEGORIES= games +MASTER_SITES= SF +DISTNAME= ${PORTNAME}_${DISTVERSION}_src + +MAINTAINER= alepulver@FreeBSD.org +COMMENT= Corewars Redcode Evolver + +USE_DOS2UNIX= ../*.txt +WRKSRC= ${WRKDIR}/src + +post-extract: + @${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC} + +post-patch: + @cd ${WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \ + asm.c pspace.c sim.c + @cd ${WRKSRC} && ${REINPLACE_CMD} -e \ + 's|random[[:blank:]]*(|myrandom(|' \ + battler.c generator.c globals.h Main.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR} +.endif + +.include <bsd.port.mk> |