svn commit: r333464 - in head/games/species: . files
Danilo Egea Gondolfo
danilo at FreeBSD.org
Mon Nov 11 01:14:21 UTC 2013
Author: danilo
Date: Mon Nov 11 01:14:20 2013
New Revision: 333464
URL: http://svnweb.freebsd.org/changeset/ports/333464
Log:
- Use USE_DOS2UNIX
- Convert USE_GMAKE to USES
- Use options helpers
- Add stage support
- Fix build with clang
Added:
head/games/species/files/patch-main.cpp (contents, props changed)
Modified:
head/games/species/Makefile (contents, props changed)
Modified: head/games/species/Makefile
==============================================================================
--- head/games/species/Makefile Mon Nov 11 00:56:27 2013 (r333463)
+++ head/games/species/Makefile Mon Nov 11 01:14:20 2013 (r333464)
@@ -11,32 +11,28 @@ DISTNAME= redcoder
MAINTAINER= ports at FreeBSD.org
COMMENT= Corewars evolver - generates warriors using genetic algorithms
+USE_DOS2UNIX= yes
USE_BZIP2= yes
-USE_GMAKE= yes
+USES= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= VISITOOL
VISITOOL_DESC= Buil GUI tool for displaying evolution
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_SUB= yes
-.if ${PORT_OPTIONS:MVISITOOL}
-USE_WX= 2.4
-ALL_TARGET= all visitool
-PLIST_SUB+= VISITOOL=""
-.else
-PLIST_SUB+= VISITOOL="@comment "
-.endif
+VISITOOL_USE= WX=2.4
+VISITOOL_ALL_TARGET= all visitool
+
+.include <bsd.port.options.mk>
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- cd ${WRKSRC} && ${INSTALL_DATA} koen.* species.ini *.rc ${DATADIR}
- cd ${WRKSRC} && ${CP} -r bench evolver_hill wilfiz ${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} koen.* species.ini *.rc ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC} && ${CP} -r bench evolver_hill wilfiz ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MVISITOOL}
- ${INSTALL_PROGRAM} ${WRKSRC}/visitool \
- ${PREFIX}/bin/${PORTNAME}-visitool
+ ${INSTALL_PROGRAM} ${WRKSRC}/visitool ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-visitool
.endif
.include <bsd.port.mk>
Added: head/games/species/files/patch-main.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/species/files/patch-main.cpp Mon Nov 11 01:14:20 2013 (r333464)
@@ -0,0 +1,11 @@
+--- ./main.cpp.orig 2013-11-10 23:14:27.000000000 -0200
++++ ./main.cpp 2013-11-10 23:14:37.000000000 -0200
+@@ -29,7 +29,7 @@
+
+ /***** main program entry point ********************/
+
+-int main(int /*argc*/,char /***args*/) {
++int main(int /*argc*/,char ** /*args*/) {
+ CKingdom kingdom;
+
+ #ifndef _WIN32
More information about the svn-ports-all
mailing list