diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2018-10-21 09:20:10 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:07:42 -0500 |
commit | daf94139713551c05064949e8d313332fcdeb570 (patch) | |
tree | ef9602099c38309e2ce8e34190521c197ba0675c /libraries/agg | |
parent | 7483c966992570532fb16fa05de2da8baa907212 (diff) |
libraries/agg: Patch for the newer compiler.
Thanks to USUARIONUEVO
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/agg')
-rw-r--r-- | libraries/agg/agg.SlackBuild | 1 | ||||
-rw-r--r-- | libraries/agg/patches/0016-bad-const.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libraries/agg/agg.SlackBuild b/libraries/agg/agg.SlackBuild index 02a9477479b5c..619b80b00fdf5 100644 --- a/libraries/agg/agg.SlackBuild +++ b/libraries/agg/agg.SlackBuild @@ -71,6 +71,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ + --disable-examples \ --disable-static \ --build=$ARCH-slackware-linux diff --git a/libraries/agg/patches/0016-bad-const.patch b/libraries/agg/patches/0016-bad-const.patch new file mode 100644 index 0000000000000..045e77ba13990 --- /dev/null +++ b/libraries/agg/patches/0016-bad-const.patch @@ -0,0 +1,12 @@ +diff -u -r agg-2.5/include/agg_renderer_outline_aa.h agg-2.5-const/include/agg_renderer_outline_aa.h +--- agg-2.5/include/agg_renderer_outline_aa.h 2006-10-09 06:07:08.000000000 +0200 ++++ agg-2.5-const/include/agg_renderer_outline_aa.h 2018-06-16 23:09:16.500057814 +0200 +@@ -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; } ++ line_profile_aa& profile() { return *const_cast<line_profile_aa*>(m_profile); } + + //--------------------------------------------------------------------- + int subpixel_width() const { return m_profile->subpixel_width(); } |