Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 02:56:08 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172720: graphics/vcg: Fix build with clang
Message-ID:  <20121016025608.917368c9bb52efe14d641b26@yahoo.com>
Resent-Message-ID: <201210151810.q9FIA1P1043583@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172720
>Category:       ports
>Synopsis:       graphics/vcg: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 18:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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