Tweak games/dunelegacy version 0.96.3_2
[dports.git] / games / species / Makefile
1 # Created by: alepulver
2 # $FreeBSD$
3
4 PORTNAME=       species
5 PORTVERSION=    1.2d
6 PORTREVISION=   1
7 CATEGORIES=     games
8 MASTER_SITES=   LOCAL/alepulver
9 DISTNAME=       redcoder
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Corewars evolver - generates warriors using genetic algorithms
13
14 LICENSE=        GPLv1+ # though COPYING files mention LGPL21 and GPLv2 instead
15
16 USES=           gmake dos2unix tar:bzip2
17 WRKSRC=         ${WRKDIR}/${PORTNAME}
18
19 OPTIONS_DEFINE= VISITOOL
20 VISITOOL_DESC=  Build GUI tool for displaying evolution
21
22 OPTIONS_SUB=    yes
23
24 VISITOOL_USE=   WX=2.4
25 VISITOOL_ALL_TARGET=    all visitool
26
27 .include <bsd.port.options.mk>
28
29 .if empty(PORT_OPTIONS:MVISITOOL)
30 MAKE_ENV+=      WX_CONFIG="${TRUE}"
31 .endif
32
33 do-install:
34         ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
35         @${MKDIR} ${STAGEDIR}${DATADIR}
36         cd ${WRKSRC} && ${INSTALL_DATA} koen.* species.ini *.rc ${STAGEDIR}${DATADIR}
37 .for i in bench evolver_hill wilfiz
38         @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${DATADIR})
39 .endfor
40 .if ${PORT_OPTIONS:MVISITOOL}
41         ${INSTALL_PROGRAM} ${WRKSRC}/visitool ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-visitool
42 .endif
43
44 .include <bsd.port.mk>