aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-10-30 01:04:39 +0800
committerpawel <pawel@FreeBSD.org>2012-10-30 01:04:39 +0800
commite1834dfc17553253f9406967d89411cdd6bbe505 (patch)
tree3809e68e26c6e94a5caa9a920eefae51fc665418
parent4458aa769ecdd6d2b96514160d24e5c637030074 (diff)
downloadfreebsd-ports-gnome-e1834dfc17553253f9406967d89411cdd6bbe505.tar.gz
freebsd-ports-gnome-e1834dfc17553253f9406967d89411cdd6bbe505.tar.zst
freebsd-ports-gnome-e1834dfc17553253f9406967d89411cdd6bbe505.zip
Fix build with clang
PR: ports/172718 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
-rw-r--r--graphics/agg/Makefile9
-rw-r--r--graphics/agg/files/patch-include__agg_renderer_outline_aa.h11
2 files changed, 13 insertions, 7 deletions
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