summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--academic/engauge/engauge.SlackBuild2
-rw-r--r--academic/engauge/engauge.info2
-rw-r--r--academic/engauge/gcc47.patch11
3 files changed, 14 insertions, 1 deletions
diff --git a/academic/engauge/engauge.SlackBuild b/academic/engauge/engauge.SlackBuild
index dfb4bcae33..ff637ef4ef 100644
--- a/academic/engauge/engauge.SlackBuild
+++ b/academic/engauge/engauge.SlackBuild
@@ -48,6 +48,8 @@ cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p1 < $CWD/gcc47.patch
+
/opt/kde3/bin/qmake \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
diff --git a/academic/engauge/engauge.info b/academic/engauge/engauge.info
index dbb17b731b..d7ab3cb183 100644
--- a/academic/engauge/engauge.info
+++ b/academic/engauge/engauge.info
@@ -1,7 +1,7 @@
PRGNAM="engauge"
VERSION="4.1"
HOMEPAGE="http://digitizer.sourceforge.net/"
-DOWNLOAD="http://sourceforge.net/projects/digitizer/files/Engauge%20Digitizer/digitizer-4.1/digit-src-4_1.tar.gz/download"
+DOWNLOAD="http://downloads.sourceforge.net/digitizer/digit-src-4_1.tar.gz"
MD5SUM="b76b5d6c6b47ad57e789fd3ffbbb543f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/academic/engauge/gcc47.patch b/academic/engauge/gcc47.patch
new file mode 100644
index 0000000000..28b7fec8a6
--- /dev/null
+++ b/academic/engauge/gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur engauge.orig/src/pointmatch.cpp engauge/src/pointmatch.cpp
+--- engauge.orig/src/pointmatch.cpp 2007-04-11 08:16:12.000000000 +0200
++++ engauge/src/pointmatch.cpp 2012-09-13 11:40:19.094978840 +0200
+@@ -80,6 +80,7 @@
+ * *
+ ***************************************************************************/
+
++#include <unistd.h>
+ #include <qobject.h>
+ #include <qdialog.h>
+ #include <qlabel.h>