From tkato432@yahoo.com  Mon Oct 15 18:00:42 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 193101A0
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2012 18:00:39 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168])
	by mx1.freebsd.org (Postfix) with ESMTP id C1FC18FC14
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2012 18:00:38 +0000 (UTC)
Received: from localhost.localdomain (ZT028199.ppp.dion.ne.jp [59.128.28.199])
	by msa105lp.auone-net.jp (au one net msa) with ESMTP id A14C550036
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 16 Oct 2012 03:00:31 +0900 (JST)
Message-Id: <20121016025559.35f811082516041dfb171353@yahoo.com>
Date: Tue, 16 Oct 2012 02:55:59 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: graphics/agg: Fix build with clang

>Number:         172718
>Category:       ports
>Synopsis:       graphics/agg: 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 Oct 15 18:10:00 UTC 2012
>Closed-Date:    Mon Oct 29 17:05:41 UTC 2012
>Last-Modified:  Mon Oct 29 17:05:41 UTC 2012
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

New file:
agg/files/patch-include__agg_renderer_outline_aa.h

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/agg/Makefile graphics/agg/Makefile
--- /usr/ports/graphics/agg/Makefile	2012-10-10 07:12:13.000000000 +0900
+++ graphics/agg/Makefile	2012-10-13 05:22:03.000000000 +0900
@@ -1,9 +1,5 @@
-# Ports collection makefile for:	agg
-# Date created:			Aug 3, 2004
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD: ports/graphics/agg/Makefile,v 1.37 2012/10/09 22:12:13 linimon Exp $
-#
 
 PORTNAME=	agg
 PORTVERSION=	2.5
@@ -17,9 +13,8 @@
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
+LIB_DEPENDS=	freetype:${PORTSDIR}/print/freetype2
 
-USE_GCC=	any
 USE_XORG=	x11
 USE_GNOME=	gnomehack
 USE_SDL=	sdl
diff -urN /usr/ports/graphics/agg/files/patch-include__agg_renderer_outline_aa.h graphics/agg/files/patch-include__agg_renderer_outline_aa.h
--- /usr/ports/graphics/agg/files/patch-include__agg_renderer_outline_aa.h	1970-01-01 09:00:00.000000000 +0900
+++ graphics/agg/files/patch-include__agg_renderer_outline_aa.h	2012-10-13 05:26:20.000000000 +0900
@@ -0,0 +1,11 @@
+--- include/agg_renderer_outline_aa.h.orig	2006-10-09 13:07:08.000000000 +0900
++++ include/agg_renderer_outline_aa.h	2012-10-13 05:25:48.000000000 +0900
+@@ -1375,7 +1375,7 @@
+         //---------------------------------------------------------------------
+         void profile(const line_profile_aa& prof) { m_profile = &prof; }
+         const line_profile_aa& profile() const { return *m_profile; }
+-        line_profile_aa& profile() { return *m_profile; }
++        const line_profile_aa& profile() { return *m_profile; }
+ 
+         //---------------------------------------------------------------------
+         int subpixel_width() const { return m_profile->subpixel_width(); }
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Oct 15 18:10:22 UTC 2012 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172718 
Responsible-Changed-From-To: miwi->freebsd-ports-bugs 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Mon Oct 29 09:38:31 UTC 2012 
Responsible-Changed-Why:  
Reassign to the heap miwi being overloaded for now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172718 
State-Changed-From-To: open->closed 
State-Changed-By: pawel 
State-Changed-When: Mon Oct 29 17:05:40 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

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