From e9f7e390c1eff9cdfde75ea23e17341510f57dfe Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Mon, 29 Oct 2012 17:04:39 +0000 Subject: Fix build with clang PR: ports/172718 Submitted by: KATO Tsuguru Feature safe: yes --- graphics/agg/Makefile | 9 ++------- graphics/agg/files/patch-include__agg_renderer_outline_aa.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 graphics/agg/files/patch-include__agg_renderer_outline_aa.h (limited to 'graphics/agg') diff --git a/graphics/agg/Makefile b/graphics/agg/Makefile index 9e39dfee5c14..c511013f8e51 100644 --- a/graphics/agg/Makefile +++ b/graphics/agg/Makefile @@ -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 diff --git a/graphics/agg/files/patch-include__agg_renderer_outline_aa.h b/graphics/agg/files/patch-include__agg_renderer_outline_aa.h new file mode 100644 index 000000000000..5ac3989eda58 --- /dev/null +++ b/graphics/agg/files/patch-include__agg_renderer_outline_aa.h @@ -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(); } \ No newline at end of file -- cgit v1.2.3