aboutsummaryrefslogtreecommitdiffstats
path: root/games/cre/Makefile
blob: 2e28bb70cd50d80a0c2e160ad7360dbe910830e7 (plain) (blame)
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:    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>