summaryrefslogtreecommitdiff
path: root/games/fmars/Makefile
blob: a1b694c03bab6fef6505e441dff99a3e2cced0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=	fmars
PORTVERSION=	0.0.207
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://corewar.co.uk/janeczek/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fast Memory Array Redcode Simulator

LICENSE=	GPLv2

BUILD_DEPENDS=	guile:lang/guile

USES=		gmake tar:bzip2
ALL_TARGET=	x${PORTNAME}

OPTIONS_DEFINE=		DOCS OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS

OPTIMIZED_CFLAGS_CFLAGS=-fomit-frame-pointer

post-patch:
	@${REINPLACE_CMD} -e \
		's|^\(CC\) |#\1 | ; \
		 s|^\(CFLAGS\) |#\1 | ; \
		 s|^\(OPTS\) |#\1 | ; \
		 s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile

do-install:
# Program.
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME})

# Data.
	@${MKDIR} ${STAGEDIR}${DATADIR}
.for d in rc rc-test
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor

# Documentation (optional).
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>