summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-03-28 20:40:38 +0000
committerwiz <wiz@pkgsrc.org>2012-03-28 20:40:38 +0000
commitb5269dd1e512e1371deece3073683583c51ff648 (patch)
treefa4640b553098e92786d3899b801fe0783b5ef75 /graphics
parent9b51510d9a999c772629f0a0f248000ff70208f9 (diff)
downloadpkgsrc-b5269dd1e512e1371deece3073683583c51ff648.tar.gz
Fix build with clang.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/agg/distinfo3
-rw-r--r--graphics/agg/patches/patch-include_agg__renderer__outline__aa.h14
2 files changed, 16 insertions, 1 deletions
diff --git a/graphics/agg/distinfo b/graphics/agg/distinfo
index 3ebd9330344..89a654303ef 100644
--- a/graphics/agg/distinfo
+++ b/graphics/agg/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/04/27 06:41:08 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/03/28 20:46:57 wiz Exp $
SHA1 (agg-2.5.tar.gz) = 08f23da64da40b90184a0414369f450115cdb328
RMD160 (agg-2.5.tar.gz) = fac24d8ea56ee0a87307189f73c432b07b6d3c50
Size (agg-2.5.tar.gz) = 564313 bytes
+SHA1 (patch-include_agg__renderer__outline__aa.h) = 157cd8287d171bf67039b80ecce1a5ac8360cea8
diff --git a/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h b/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h
new file mode 100644
index 00000000000..d5578a8b106
--- /dev/null
+++ b/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-include_agg__renderer__outline__aa.h,v 1.1 2012/03/28 20:46:57 wiz Exp $
+
+Fix build with clang-3.1 (avoiding unconst by removing unused function).
+
+--- include/agg_renderer_outline_aa.h.orig 2006-10-09 04:07:08.000000000 +0000
++++ include/agg_renderer_outline_aa.h
+@@ -1375,7 +1375,6 @@ namespace agg
+ //---------------------------------------------------------------------
+ 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; }
+
+ //---------------------------------------------------------------------
+ int subpixel_width() const { return m_profile->subpixel_width(); }