From 7f020478b9da0abb624b1d887ed4be81ee28c014 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 24 Jul 2015 12:43:09 +0100 Subject: academic/QtiPlot: Patched for building with libpng-1.6. Thanks to slack_jack and ponce. Signed-off-by: David Spencer --- academic/QtiPlot/QtiPlot.SlackBuild | 3 +++ academic/QtiPlot/qwtplot3d-libpng15.patch | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 academic/QtiPlot/qwtplot3d-libpng15.patch (limited to 'academic/QtiPlot') diff --git a/academic/QtiPlot/QtiPlot.SlackBuild b/academic/QtiPlot/QtiPlot.SlackBuild index bd10844559..2b43518e93 100644 --- a/academic/QtiPlot/QtiPlot.SlackBuild +++ b/academic/QtiPlot/QtiPlot.SlackBuild @@ -90,6 +90,9 @@ cp -a $UNOFPLUGIN/qtiplot/src/plugins $SRCNAM-$VERSION/qtiplot/src cp -a $UNOFPLUGIN/qtiplot/importOPJ.pro $SRCNAM-$VERSION/qtiplot cd $SRCNAM-$VERSION +# Patch for recent libpng (thanks to slack_jack, ponce and Arch) +patch -p0 -d 3rdparty/qwtplot3d < $CWD/qwtplot3d-libpng15.patch + # Use the custom build.conf cp $CWD/build.conf.slack build.conf diff --git a/academic/QtiPlot/qwtplot3d-libpng15.patch b/academic/QtiPlot/qwtplot3d-libpng15.patch new file mode 100644 index 0000000000..828f0c6d84 --- /dev/null +++ b/academic/QtiPlot/qwtplot3d-libpng15.patch @@ -0,0 +1,10 @@ +--- 3rdparty/gl2ps/gl2ps.c.orig 2012-01-29 18:15:34.000000000 -0500 ++++ 3rdparty/gl2ps/gl2ps.c 2012-01-29 18:16:08.000000000 -0500 +@@ -47,6 +47,7 @@ + #endif + + #if defined(GL2PS_HAVE_LIBPNG) ++#include + #include + #endif + -- cgit v1.2.3-65-gdbad