summaryrefslogtreecommitdiffstats
path: root/games/yace/Makefile
blob: 7f12559e6ff170207ac830610d8b1050fc2f8ca8 (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
# New ports collection makefile for:	yace
# Date created:				2008-01-15
# Whom:					alepulver
#
# $FreeBSD$
#

PORTNAME=	yace
PORTVERSION=	1.2
CATEGORIES=	games
MASTER_SITES=	http://corewar.co.uk/ankerl/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Yet Another Corewars Evolver

USE_BZIP2=	yes
USE_GMAKE=	yes
NO_WRKSUBDIR=	yes
BUILD_WRKSRC=	${WRKDIR}/src
MAKEFILE=	makefile
ALL_TARGET=	#

post-patch:
	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|CCFLAGS =|& ${CFLAGS}|' \
		${BUILD_WRKSRC}/${MAKEFILE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${DATADIR}
	cd ${WRKSRC}/bin && ${CP} -r bench testset yace.cfg ${DATADIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud