From tkato432@yahoo.com  Mon Dec 30 21:02:30 2013
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 770D7A3B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 30 Dec 2013 21:01:43 +0000 (UTC)
Received: from omta01.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17])
	by mx1.freebsd.org (Postfix) with ESMTP id 4BA141F7F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 30 Dec 2013 21:01:43 +0000 (UTC)
Received: from coppermine.my.domain (ZT028061.ppp.dion.ne.jp [59.128.28.61])
	by omta01.auone-net.jp (au one net mail) with ESMTP id 822B49800C9
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 31 Dec 2013 06:01:41 +0900 (JST)
Message-Id: <20131231054724.bb57f8c18af9fb03387a6961@yahoo.com>
Date: Tue, 31 Dec 2013 05:47:24 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: games/species: Fix build with clang

>Number:         185332
>Category:       ports
>Synopsis:       games/species: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 21:10:07 UTC 2013
>Closed-Date:    Sun Jan 19 13:50:13 UTC 2014
>Last-Modified:  Sat Jan 25 13:20:04 UTC 2014
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Support CXXFLAGS properly
- Support COPYTREE_SHARE
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/species/Makefile games/species/Makefile
--- /usr/ports/games/species/Makefile	2013-11-20 21:29:50.000000000 +0900
+++ games/species/Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -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 @@
 
 .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
diff -urN /usr/ports/games/species/files/patch-Makefile games/species/files/patch-Makefile
--- /usr/ports/games/species/files/patch-Makefile	2013-11-06 22:00:44.000000000 +0900
+++ games/species/files/patch-Makefile	2013-12-31 00:00:00.000000000 +0900
@@ -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
  
diff -urN /usr/ports/games/species/files/patch-main.cpp games/species/files/patch-main.cpp
--- /usr/ports/games/species/files/patch-main.cpp	2013-11-11 13:55:17.000000000 +0900
+++ games/species/files/patch-main.cpp	2013-12-31 00:00:00.000000000 +0900
@@ -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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Jan 19 13:50:12 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185332 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185332: commit references a PR
Date: Sun, 19 Jan 2014 13:50:14 +0000 (UTC)

 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
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/185332: commit references a PR
Date: Sat, 25 Jan 2014 13:12:15 +0000 (UTC)

 Author: miwi
 Date: Sat Jan 25 13:12:05 2014
 New Revision: 341030
 URL: http://svnweb.freebsd.org/changeset/ports/341030
 QAT: https://qat.redports.org/buildarchive/r341030/
 
 Log:
   MFH: r340297
   
   - FIx build with clang
   - Support CXXFLAGS properly
   - Support COPYTREE_SHARE
   - Add LICENSE
   
   PR:		185332
   Submitted by:	ports fury
 
 Modified:
   branches/2014Q1/games/species/Makefile
   branches/2014Q1/games/species/files/patch-Makefile   (contents, props changed)
   branches/2014Q1/games/species/files/patch-main.cpp
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Modified: branches/2014Q1/games/species/Makefile
 ==============================================================================
 --- branches/2014Q1/games/species/Makefile	Sat Jan 25 13:10:29 2014	(r341029)
 +++ branches/2014Q1/games/species/Makefile	Sat Jan 25 13:12:05 2014	(r341030)
 @@ -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: branches/2014Q1/games/species/files/patch-Makefile
 ==============================================================================
 --- branches/2014Q1/games/species/files/patch-Makefile	Sat Jan 25 13:10:29 2014	(r341029)
 +++ branches/2014Q1/games/species/files/patch-Makefile	Sat Jan 25 13:12:05 2014	(r341030)
 @@ -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: branches/2014Q1/games/species/files/patch-main.cpp
 ==============================================================================
 --- branches/2014Q1/games/species/files/patch-main.cpp	Sat Jan 25 13:10:29 2014	(r341029)
 +++ branches/2014Q1/games/species/files/patch-main.cpp	Sat Jan 25 13:12:05 2014	(r341030)
 @@ -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
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
