aboutsummaryrefslogtreecommitdiffstats
path: root/games/species/Makefile
blob: c65b50361f56ae565233d7a0c2c6f1165e1feb65 (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
38
39
40
41
42
43
44
# Created by: alepulver
# $FreeBSD$

PORTNAME=   species
PORTVERSION=    1.2d
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   LOCAL/alepulver
DISTNAME=   redcoder

MAINTAINER= ports@FreeBSD.org
COMMENT=    Corewars evolver - generates warriors using genetic algorithms

LICENSE=    GPLv1+ # though COPYING files mention LGPL21 and GPLv2 instead

USES=       gmake dos2unix tar:bzip2
WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE= VISITOOL
VISITOOL_DESC=  Build GUI tool for displaying evolution

OPTIONS_SUB=    yes

VISITOOL_USE=   WX=2.4
VISITOOL_ALL_TARGET=    all visitool

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MVISITOOL)
MAKE_ENV+=  WX_CONFIG="${TRUE}"
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC} && ${INSTALL_DATA} koen.* species.ini *.rc ${STAGEDIR}${DATADIR}
.for i in bench evolver_hill wilfiz
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR})
.endfor
.if ${PORT_OPTIONS:MVISITOOL}
    ${INSTALL_PROGRAM} ${WRKSRC}/visitool ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-visitool
.endif

.include <bsd.port.mk>