From 613a0ed457d65970826ad0402b18a79cdd360883 Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Thu, 16 Aug 2012 01:27:49 +0700 Subject: academic/extrema: Included patch to build against gcc-4.7.x Signed-off-by: Binh Nguyen Signed-off-by: Robby Workman --- academic/extrema/extrema-4.4.5-gcc47.patch | 12 ++++++++++++ academic/extrema/extrema.SlackBuild | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 academic/extrema/extrema-4.4.5-gcc47.patch (limited to 'academic/extrema') diff --git a/academic/extrema/extrema-4.4.5-gcc47.patch b/academic/extrema/extrema-4.4.5-gcc47.patch new file mode 100644 index 0000000000..9059cae2ba --- /dev/null +++ b/academic/extrema/extrema-4.4.5-gcc47.patch @@ -0,0 +1,12 @@ +diff --git a/src/Graphics/GRA_thiessenTriangulation.h b/src/Graphics/GRA_thiessenTriangulation.h +index cbcc050..571943e 100644 +--- a/src/Graphics/GRA_thiessenTriangulation.h ++++ b/src/Graphics/GRA_thiessenTriangulation.h +@@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + #define GRA_THIESSENTRIANGULATION + + #include ++#include + + class GRA_thiessenTriangulation + { diff --git a/academic/extrema/extrema.SlackBuild b/academic/extrema/extrema.SlackBuild index 01470a69cc..2a574934ad 100644 --- a/academic/extrema/extrema.SlackBuild +++ b/academic/extrema/extrema.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for extrema -# Copyright 2010-2011 Binh Nguyen +# Copyright 2010-2012 Binh Nguyen # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=extrema VERSION=${VERSION:-4.4.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,6 +69,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix building with gcc-4.7 +patch -p1 < $CWD/extrema-4.4.5-gcc47.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3