From tkato432@yahoo.com  Mon Oct 15 18:00:58 2012
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 632A61A1
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2012 18:00:58 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa106lp.auone-net.jp (msa106lp.auone-net.jp [222.3.140.169])
	by mx1.freebsd.org (Postfix) with ESMTP id 31C5E8FC16
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2012 18:00:58 +0000 (UTC)
Received: from localhost.localdomain (ZT028199.ppp.dion.ne.jp [59.128.28.199])
	by msa106lp.auone-net.jp (au one net msa) with ESMTP id 2FA9E23C031
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 16 Oct 2012 03:00:55 +0900 (JST)
Message-Id: <20121016025608.917368c9bb52efe14d641b26@yahoo.com>
Date: Tue, 16 Oct 2012 02:56:08 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: graphics/vcg: Fix build with clang

>Number:         172720
>Category:       ports
>Synopsis:       graphics/vcg: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    araujo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 18:10:01 UTC 2012
>Closed-Date:    Mon Jan 21 03:45:43 UTC 2013
>Last-Modified:  Mon Jan 21 03:45:43 UTC 2013
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/vcg/Makefile graphics/vcg/Makefile
--- /usr/ports/graphics/vcg/Makefile	2012-10-10 07:12:13.000000000 +0900
+++ graphics/vcg/Makefile	2012-10-13 07:40:47.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	vcg
-# Date created:		19 February 1995
-# Whom:			hsu
-#
+# Created by: hsu
 # $FreeBSD: ports/graphics/vcg/Makefile,v 1.23 2012/10/09 22:12:13 linimon Exp $
-#
 
 PORTNAME=	vcg
 PORTVERSION=	1.30
@@ -16,15 +12,16 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A Visualization Tool for compiler graphs
 
+LICENSE=	GPLv2 # (or later)
+
 BUILD_DEPENDS=	imake:${PORTSDIR}/devel/imake
 
-USE_GCC=	any
-USE_XORG=	x11 xext
-MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
+WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
 
+USE_XORG=	x11 xext
 MAKE_JOBS_UNSAFE=	yes
 
-WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
+MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
 
 pre-patch:
 	@${MKDIR} ${WRKSRC}/preconf/X11ccFreeBSD
@@ -39,4 +36,9 @@
 		< ${FILESDIR}/${file} > ${WRKSRC}/preconf/X11ccFreeBSD/${file}
 .endfor
 
+post-patch:
+.for i in animation1.c animation2.c animation3.c vcgcount.c
+	@${REINPLACE_CMD} -e '/ main/s|^void|int|' ${WRKSRC}/demo/${i}
+.endfor
+
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/vcg/pkg-descr graphics/vcg/pkg-descr
--- /usr/ports/graphics/vcg/pkg-descr	2003-03-31 00:08:46.000000000 +0900
+++ graphics/vcg/pkg-descr	2012-10-13 07:46:27.000000000 +0900
@@ -1,12 +1,11 @@
-The VCG tool reads a textual and readable specification of a 
-graph and visualizes  the graph.   If  not  all positions of 
-nodes are fixed,  the tool  layouts the graph using  several 
-heuristics as reducing  the number of crossings,  minimizing 
-the  size of  edges,  centering of nodes.  The specification 
-language of  the  VCG  tool is nearly compatible to GRL, the 
-language of the edge tool, but contains many extensions. The 
-VCG tool  allows folding of dynamically or statically speci-
-fied  regions  of the  graph.  It uses  colors and  runs  on 
-X11. (An older version runs on Sunview).
+The VCG tool reads a textual and readable specification of a graph and
+visualizes the graph. If not all positions of nodes are fixed, the tool
+layouts the graph using several heuristics as reducing the number of
+crossings, minimizing the size of edges, centering of nodes. The
+specification language of the VCG tool is nearly compatible to GRL, the
+language of the edge tool, but contains many extensions. The VCG tool
+allows folding of dynamically or statically specified regions of the
+graph. It uses colors and runs on X11. (An older version runs on
+Sunview).
 
 WWW: http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 15 18:10:34 UTC 2012 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

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

From: KATO Tsuguru <tkato432@yahoo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/172720: graphics/vcg: Fix build with clang
Date: Sat, 27 Oct 2012 02:47:29 +0900

 This is a multi-part message in MIME format.
 
 --Multipart=_Sat__27_Oct_2012_02_47_29_+0900_ggNn_hqgc_V4.tWo
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Remake of the patch against current tree.
 
 --Multipart=_Sat__27_Oct_2012_02_47_29_+0900_ggNn_hqgc_V4.tWo
 Content-Type: text/x-diff;
  name="graphics_vcg.diff"
 Content-Disposition: attachment;
  filename="graphics_vcg.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/graphics/vcg/Makefile graphics/vcg/Makefile
 --- /usr/ports/graphics/vcg/Makefile	2012-10-26 23:57:50.000000000 +0900
 +++ graphics/vcg/Makefile	2012-10-27 02:30:51.000000000 +0900
 @@ -5,25 +5,26 @@
  PORTVERSION=	1.30
  PORTREVISION=	2
  CATEGORIES=	graphics
 -MASTER_SITES=	ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
 +MASTER_SITES=	http://download.polytechnic.edu.na/pub2/openpkg1/sources/DST/vcg/ \
 +		http://ftp.gwdg.de/linux/openpkg/openpkg-ftp/sources/DST/vcg/ \
 +		http://ftp.sjtu.edu.cn/sites/ftp.openpkg.org/sources/DST/vcg/ \
 +		ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
  DISTNAME=	${PORTNAME}.20050204
  EXTRACT_SUFX=	.tgz
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	A Visualization Tool for compiler graphs
  
 -DEPRECATED=	No more public distfiles
 -EXPIRATION_DATE=	2012-11-26
 +LICENSE=	GPLv2 # (or later)
  
  BUILD_DEPENDS=	imake:${PORTSDIR}/devel/imake
  
 -USE_GCC=	any
 -USE_XORG=	x11 xext
 -MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
 +WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
  
 +USE_XORG=	x11 xext
  MAKE_JOBS_UNSAFE=	yes
  
 -WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
 +MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
  
  pre-patch:
  	@${MKDIR} ${WRKSRC}/preconf/X11ccFreeBSD
 @@ -38,4 +39,9 @@
  		< ${FILESDIR}/${file} > ${WRKSRC}/preconf/X11ccFreeBSD/${file}
  .endfor
  
 +post-patch:
 +.for i in animation1.c animation2.c animation3.c vcgcount.c
 +	@${REINPLACE_CMD} -e '/ main/s|^void|int|' ${WRKSRC}/demo/${i}
 +.endfor
 +
  .include <bsd.port.mk>
 diff -urN /usr/ports/graphics/vcg/pkg-descr graphics/vcg/pkg-descr
 --- /usr/ports/graphics/vcg/pkg-descr	2003-03-31 00:08:46.000000000 +0900
 +++ graphics/vcg/pkg-descr	2012-10-13 07:46:27.000000000 +0900
 @@ -1,12 +1,11 @@
 -The VCG tool reads a textual and readable specification of a 
 -graph and visualizes  the graph.   If  not  all positions of 
 -nodes are fixed,  the tool  layouts the graph using  several 
 -heuristics as reducing  the number of crossings,  minimizing 
 -the  size of  edges,  centering of nodes.  The specification 
 -language of  the  VCG  tool is nearly compatible to GRL, the 
 -language of the edge tool, but contains many extensions. The 
 -VCG tool  allows folding of dynamically or statically speci-
 -fied  regions  of the  graph.  It uses  colors and  runs  on 
 -X11. (An older version runs on Sunview).
 +The VCG tool reads a textual and readable specification of a graph and
 +visualizes the graph. If not all positions of nodes are fixed, the tool
 +layouts the graph using several heuristics as reducing the number of
 +crossings, minimizing the size of edges, centering of nodes. The
 +specification language of the VCG tool is nearly compatible to GRL, the
 +language of the edge tool, but contains many extensions. The VCG tool
 +allows folding of dynamically or statically specified regions of the
 +graph. It uses colors and runs on X11. (An older version runs on
 +Sunview).
  
  WWW: http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html
 
 --Multipart=_Sat__27_Oct_2012_02_47_29_+0900_ggNn_hqgc_V4.tWo--
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Mon Oct 29 09:38:27 UTC 2012 
Responsible-Changed-Why:  
Reassign to the heap miwi being overloaded for now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172720 
Responsible-Changed-From-To: freebsd-ports-bugs->araujo 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Tue Dec 11 13:04:25 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/172720: commit references a PR
Date: Mon, 21 Jan 2013 03:33:27 +0000 (UTC)

 Author: araujo
 Date: Mon Jan 21 03:33:20 2013
 New Revision: 310739
 URL: http://svnweb.freebsd.org/changeset/ports/310739
 
 Log:
   - Update MASTER_SITES.
   - Fix build with clang.
   - Add LICENSE.
   
   PR:		ports/172720
   Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
 
 Modified:
   head/graphics/vcg/Makefile   (contents, props changed)
   head/graphics/vcg/pkg-descr   (contents, props changed)
 
 Modified: head/graphics/vcg/Makefile
 ==============================================================================
 --- head/graphics/vcg/Makefile	Mon Jan 21 03:31:56 2013	(r310738)
 +++ head/graphics/vcg/Makefile	Mon Jan 21 03:33:20 2013	(r310739)
 @@ -5,25 +5,26 @@ PORTNAME=	vcg
  PORTVERSION=	1.30
  PORTREVISION=	2
  CATEGORIES=	graphics
 -MASTER_SITES=	ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
 +MASTER_SITES=	http://download.polytechnic.edu.na/pub2/openpkg1/sources/DST/vcg/ \
 +		http://ftp.gwdg.de/linux/openpkg/openpkg-ftp/sources/DST/vcg/ \
 +		http://ftp.sjtu.edu.cn/sites/ftp.openpkg.org/sources/DST/vcg/ \
 +		ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/
  DISTNAME=	${PORTNAME}.20050204
  EXTRACT_SUFX=	.tgz
  
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	A Visualization Tool for compiler graphs
  
 -DEPRECATED=	No more public distfiles
 -EXPIRATION_DATE=	2012-11-26
 +LICENSE=	GPLv2 # (or later)
  
  BUILD_DEPENDS=	imake:${PORTSDIR}/devel/imake
  
 -USE_GCC=	any
 -USE_XORG=	x11 xext
 -MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
 +WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
  
 +USE_XORG=	x11 xext
  MAKE_JOBS_UNSAFE=	yes
  
 -WRKSRC=		${WRKDIR}/${PORTNAME}.${PORTVERSION}
 +MANL=		pbmrot90.l pbmshift.l pbm2hp.l vcgdemomaker.l vcg.l xvcg.l
  
  pre-patch:
  	@${MKDIR} ${WRKSRC}/preconf/X11ccFreeBSD
 @@ -38,4 +39,9 @@ pre-patch:
  		< ${FILESDIR}/${file} > ${WRKSRC}/preconf/X11ccFreeBSD/${file}
  .endfor
  
 +post-patch:
 +.for i in animation1.c animation2.c animation3.c vcgcount.c
 +	@${REINPLACE_CMD} -e '/ main/s|^void|int|' ${WRKSRC}/demo/${i}
 +.endfor
 +
  .include <bsd.port.mk>
 
 Modified: head/graphics/vcg/pkg-descr
 ==============================================================================
 --- head/graphics/vcg/pkg-descr	Mon Jan 21 03:31:56 2013	(r310738)
 +++ head/graphics/vcg/pkg-descr	Mon Jan 21 03:33:20 2013	(r310739)
 @@ -1,12 +1,11 @@
 -The VCG tool reads a textual and readable specification of a 
 -graph and visualizes  the graph.   If  not  all positions of 
 -nodes are fixed,  the tool  layouts the graph using  several 
 -heuristics as reducing  the number of crossings,  minimizing 
 -the  size of  edges,  centering of nodes.  The specification 
 -language of  the  VCG  tool is nearly compatible to GRL, the 
 -language of the edge tool, but contains many extensions. The 
 -VCG tool  allows folding of dynamically or statically speci-
 -fied  regions  of the  graph.  It uses  colors and  runs  on 
 -X11. (An older version runs on Sunview).
 +The VCG tool reads a textual and readable specification of a graph and
 +visualizes the graph. If not all positions of nodes are fixed, the tool
 +layouts the graph using several heuristics as reducing the number of
 +crossings, minimizing the size of edges, centering of nodes. The
 +specification language of the VCG tool is nearly compatible to GRL, the
 +language of the edge tool, but contains many extensions. The VCG tool
 +allows folding of dynamically or statically specified regions of the
 +graph. It uses colors and runs on X11. (An older version runs on
 +Sunview).
  
  WWW: http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: araujo 
State-Changed-When: Mon Jan 21 03:45:42 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172720 
>Unformatted:
