Fix build with clang

PR:		ports/172718
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
Feature safe:	yes
This commit is contained in:
Pawel Pekala 2012-10-29 17:04:39 +00:00
parent a3f0261fac
commit e9f7e390c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306623
2 changed files with 13 additions and 7 deletions

View file

@ -1,9 +1,5 @@
# Ports collection makefile for: agg
# Date created: Aug 3, 2004
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= agg
PORTVERSION= 2.5
@ -17,9 +13,8 @@ COMMENT= A High Quality Rendering Engine for C++
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

View file

@ -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(); }