View | Details | Raw Unified | Return to bug 187042
Collapse All | Expand All

(-)games/fmars/Makefile (-34 / +16 lines)
Lines 5-66 Link Here
5
PORTVERSION=	0.0.207
5
PORTVERSION=	0.0.207
6
PORTREVISION=	2
6
PORTREVISION=	2
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	http://users.v-lo.krakow.pl/~michal/
8
MASTER_SITES=	http://corewar.co.uk/janeczek/
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Fast Memory Array Redcode Simulator
11
COMMENT=	Fast Memory Array Redcode Simulator
12
12
13
DEPRECATED=	No more public distfiles
14
EXPIRATION_DATE=	2014-03-07
15
16
LICENSE=	GPLv2
13
LICENSE=	GPLv2
17
14
18
BUILD_DEPENDS=	guile:${PORTSDIR}/lang/guile
15
BUILD_DEPENDS=	guile:${PORTSDIR}/lang/guile
19
16
20
USE_BZIP2=	yes
17
USE_BZIP2=	yes
21
USE_GMAKE=	yes
18
USES=		gmake
22
23
ALL_TARGET=	x${PORTNAME}
19
ALL_TARGET=	x${PORTNAME}
24
20
25
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS DOCS
21
OPTIONS_DEFINE=		DOCS OPTIMIZED_CFLAGS
26
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS
22
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS
27
23
28
NO_STAGE=	yes
24
OPTIMIZED_CFLAGS_CFLAGS=-fomit-frame-pointer
29
.include <bsd.port.pre.mk>
30
25
31
post-patch:
26
post-patch:
32
# Fix Makefile.
27
	@${REINPLACE_CMD} -e \
33
	@${REINPLACE_CMD} -e 's|\($$(OPT)\)|${CFLAGS} \1| ; \
28
		's|^\(CC\) |#\1 | ; \
34
		s|gcc|${CC}|g' \
29
		 s|^\(CFLAGS\) |#\1 | ; \
35
		${WRKSRC}/${MAKEFILE}
30
		 s|^\(OPTS\) |#\1 | ; \
36
31
		 s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile
37
# Enable/disable compilation optimizations.
38
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
39
	@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
40
.endif
41
32
42
do-install:
33
do-install:
43
# Program.
34
# Program.
44
	${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} ${PREFIX}/bin/${PORTNAME}
35
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \
36
		${STAGEDIR}${PREFIX}/bin/${PORTNAME})
45
37
46
# Data.
38
# Data.
47
	${MKDIR} ${DATADIR}
39
	@${MKDIR} ${STAGEDIR}${DATADIR}
48
.for d in rc rc-test
40
.for d in rc rc-test
49
	${CP} -R ${WRKSRC}/${d} ${DATADIR}
41
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
50
.endfor
42
.endfor
51
43
52
# Documentation (optional).
44
# Documentation (optional).
53
.if ${PORT_OPTIONS:MDOCS}
45
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
54
	${MKDIR} ${DOCSDIR}
46
	(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
55
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
56
.endif
57
58
post-install:
59
# Fix permissions.
60
	@${CHOWN} -R ${BINOWN}:${BINGRP} ${DATADIR}
61
	@${FIND} ${DATADIR} -type f -print0 | \
62
		${XARGS} -0 ${CHMOD} 644
63
	@${FIND} ${DATADIR} -type d -print0 | \
64
		${XARGS} -0 ${CHMOD} 755
65
47
66
.include <bsd.port.post.mk>
48
.include <bsd.port.mk>
(-)games/fmars/files/patch-Makefile (-18 lines)
Lines 1-18 Link Here
1
--- Makefile.orig	Sun May 15 12:54:02 2005
2
+++ Makefile	Thu Jul  7 19:26:25 2005
3
@@ -5,13 +5,12 @@
4
 #INDENT = indent
5
 
6
 
7
-CC = gcc
8
-CFLAGS = -O2 -fomit-frame-pointer -fpic -fno-strict-aliasing #-march=athlon-xp
9
+CFLAGS = $(OPT)
10
+OPT = -O2 -fomit-frame-pointer
11
 #DEBUG = -g -fno-omit-frame-pointer -O0
12
 
13
 #options for fm_sim.c only:
14
 #no-crossjumping - gcc 3.3 breaks computed gotos, this seems to help a little
15
-OPTS = -fno-cse-follow-jumps -fno-crossjumping
16
 #OPTS += -fno-strict-aliasing
17
 
18
 #CFLAGS = $(CFLAGS_OPT) -fverbose-asm -W -Wimplicit -Wparentheses -Wpointer-arith \
(-)games/fmars/pkg-descr (-9 / +10 lines)
Lines 1-14 Link Here
1
fmars is Fast Memory Array Redcode Simulator
1
fmars is Fast Memory Array Redcode Simulator
2
2
3
A specialized simulator for the game of Corewars. It's designed to be of
3
A specialized simulator for the game of Corewars. It's designed to be
4
particular use in automated redcode optimizers and evolvers. fmars borrows the
4
of particular use in automated redcode optimizers and evolvers. fmars
5
idea from Martin Ankerl's qmars and pushes it to the extreme.
5
borrows the idea from Martin Ankerl's qmars and pushes it to the
6
extreme.
6
7
7
It generates source code with special case for every possible opcode/addressing
8
It generates source code with special case for every possible
8
mode combination. This allows some optimizations that aren't possible in other
9
opcode/addressing mode combination. This allows some optimizations
9
simulators.
10
that aren't possible in other simulators.
10
11
11
fmars is compatible with pMARS with an exception for p-space, which is not yet
12
fmars is compatible with pMARS with an exception for p-space, which
12
implemented.
13
is not yet implemented.
13
14
14
WWW: http://www.v-lo.krakow.pl/~michal/fmars.html
15
WWW: http://corewar.co.uk/janeczek/

Return to bug 187042