summaryrefslogtreecommitdiff
path: root/graphics/agg
diff options
context:
space:
mode:
authorwiz <wiz>2012-03-28 20:40:38 +0000
committerwiz <wiz>2012-03-28 20:40:38 +0000
commitdac635980dd5b1f9e91e528fcbd50836e52eae1f (patch)
treefa4640b553098e92786d3899b801fe0783b5ef75 /graphics/agg
parentb9f9d0237f5d438871a8ffc9aa73f2e0e0947d36 (diff)
downloadpkgsrc-dac635980dd5b1f9e91e528fcbd50836e52eae1f.tar.gz
Fix build with clang.
Diffstat (limited to 'graphics/agg')
-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(); }