2011-04-12 17:42:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libagg < Formula
|
|
|
|
homepage 'http://www.antigrain.com'
|
|
|
|
url 'http://www.antigrain.com/agg-2.5.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '08f23da64da40b90184a0414369f450115cdb328'
|
2011-04-12 17:42:25 +00:00
|
|
|
|
2014-03-20 19:43:53 +00:00
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'libtool' => :build
|
2011-04-12 17:42:25 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'sdl'
|
2014-05-23 15:50:31 +00:00
|
|
|
depends_on 'freetype' => :optional
|
2011-04-12 17:42:25 +00:00
|
|
|
|
2013-11-19 17:03:01 +00:00
|
|
|
# Fix build with clang; last release was in 2006
|
2014-03-19 17:07:54 +00:00
|
|
|
patch :DATA
|
2012-05-23 21:26:25 +00:00
|
|
|
|
2011-04-12 17:42:25 +00:00
|
|
|
def install
|
2012-05-23 21:26:25 +00:00
|
|
|
# AM_C_PROTOTYPES was removed in automake 1.12, as it's only needed for
|
|
|
|
# pre-ANSI compilers
|
|
|
|
inreplace 'configure.in', 'AM_C_PROTOTYPES', ''
|
2013-11-10 04:39:44 +00:00
|
|
|
inreplace 'autogen.sh', 'libtoolize', 'glibtoolize'
|
2012-05-23 21:26:25 +00:00
|
|
|
|
2013-11-10 04:39:44 +00:00
|
|
|
system "sh", "autogen.sh",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-platform", # Causes undefined symbols
|
|
|
|
"--disable-ctrl", # No need to run these during configuration
|
|
|
|
"--disable-examples",
|
|
|
|
"--disable-sdltest"
|
2011-04-12 17:42:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-11-19 17:03:01 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/include/agg_renderer_outline_aa.h b/include/agg_renderer_outline_aa.h
|
|
|
|
index ce25a2e..9a12d35 100644
|
|
|
|
--- a/include/agg_renderer_outline_aa.h
|
|
|
|
+++ b/include/agg_renderer_outline_aa.h
|
|
|
|
@@ -1375,7 +1375,7 @@ 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; }
|
|
|
|
+ const line_profile_aa& profile() { return *m_profile; }
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
int subpixel_width() const { return m_profile->subpixel_width(); }
|