1 # Created by: alepulver
8 MASTER_SITES= LOCAL/alepulver
11 MAINTAINER= ports@FreeBSD.org
12 COMMENT= Corewars evolver - generates warriors using genetic algorithms
14 LICENSE= GPLv1+ # though COPYING files mention LGPL21 and GPLv2 instead
16 USES= gmake dos2unix tar:bzip2
17 WRKSRC= ${WRKDIR}/${PORTNAME}
19 OPTIONS_DEFINE= VISITOOL
20 VISITOOL_DESC= Build GUI tool for displaying evolution
25 VISITOOL_ALL_TARGET= all visitool
27 .include <bsd.port.options.mk>
29 .if empty(PORT_OPTIONS:MVISITOOL)
30 MAKE_ENV+= WX_CONFIG="${TRUE}"
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})
40 .if ${PORT_OPTIONS:MVISITOOL}
41 ${INSTALL_PROGRAM} ${WRKSRC}/visitool ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-visitool
44 .include <bsd.port.mk>