ports/172720: graphics/vcg: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Mon Oct 15 18:10:01 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list