Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 13:50:05 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340297 - in head/games/species: . files
Message-ID:  <201401191350.s0JDo5Ma029296@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sun Jan 19 13:50:05 2014
New Revision: 340297
URL: http://svnweb.freebsd.org/changeset/ports/340297
QAT: https://qat.redports.org/buildarchive/r340297/

Log:
  - FIx build with clang
  - Support CXXFLAGS properly
  - Support COPYTREE_SHARE
  - Add LICENSE
  
  PR:		185332
  Submitted by:	ports fury

Modified:
  head/games/species/Makefile
  head/games/species/files/patch-Makefile   (contents, props changed)
  head/games/species/files/patch-main.cpp

Modified: head/games/species/Makefile
==============================================================================
--- head/games/species/Makefile	Sun Jan 19 13:49:20 2014	(r340296)
+++ head/games/species/Makefile	Sun Jan 19 13:50:05 2014	(r340297)
@@ -3,14 +3,16 @@
 
 PORTNAME=	species
 PORTVERSION=	1.2d
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR=	alepulver
+MASTER_SITES=	LOCAL/alepulver
 DISTNAME=	redcoder
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Corewars evolver - generates warriors using genetic algorithms
 
+LICENSE=	GPLv1 # (or later)
+
 USE_BZIP2=	yes
 USES=		gmake dos2unix
 WRKSRC=		${WRKDIR}/${PORTNAME}
@@ -25,11 +27,17 @@ 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}
-	cd ${WRKSRC} && ${CP} -r bench evolver_hill wilfiz ${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

Modified: head/games/species/files/patch-Makefile
==============================================================================
--- head/games/species/files/patch-Makefile	Sun Jan 19 13:49:20 2014	(r340296)
+++ head/games/species/files/patch-Makefile	Sun Jan 19 13:50:05 2014	(r340297)
@@ -1,6 +1,6 @@
 --- ./Makefile.orig	Sun Feb 22 03:54:24 2004
 +++ ./Makefile	Wed Jan 16 18:29:09 2008
-@@ -1,8 +1,8 @@
+@@ -1,22 +1,22 @@
  # makefile for species
  
 -CC = gcc
@@ -10,9 +10,11 @@
 +CPP = $(CXX)
 +LD = $(CXX)
  
- OPT = -O4
+-OPT = -O4
++#OPT = -O4
  DBG =
-@@ -11,12 +11,12 @@
+ # Recommended extra options for gcc:
+ #OPT += -fomit-frame-pointer -fforce-addr -finline-functions -funroll-loops
  #OPT += -mcpu=i686 -march=i686
  #DBG += -W -Wall -pedantic -ansi
  

Modified: head/games/species/files/patch-main.cpp
==============================================================================
--- head/games/species/files/patch-main.cpp	Sun Jan 19 13:49:20 2014	(r340296)
+++ head/games/species/files/patch-main.cpp	Sun Jan 19 13:50:05 2014	(r340297)
@@ -1,11 +1,11 @@
---- ./main.cpp.orig	2013-11-10 23:14:27.000000000 -0200
-+++ ./main.cpp	2013-11-10 23:14:37.000000000 -0200
+--- main.cpp.orig
++++ main.cpp
 @@ -29,7 +29,7 @@
  
  /***** main program entry point ********************/
  
 -int main(int /*argc*/,char /***args*/) {
-+int main(int /*argc*/,char ** /*args*/) {
++int main(int /*argc*/,char **/*args*/) {
  	CKingdom kingdom;
  	
  	#ifndef _WIN32



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401191350.s0JDo5Ma029296>