aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-24 22:05:14 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-09-25 00:13:33 -0400
commitc88a288b8daac5c4d322d9469db96302b0ada181 (patch)
treeacc8640290e5f87e92ddb1ce479182332d5e32eb /graphics
parentc45d87c5eb8661e601c8a4b5e17256311bae0510 (diff)
graphics/exact-image: Patched to include unistd.h
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/exact-image/exact-image.SlackBuild5
-rw-r--r--graphics/exact-image/includes.patch12
2 files changed, 16 insertions, 1 deletions
diff --git a/graphics/exact-image/exact-image.SlackBuild b/graphics/exact-image/exact-image.SlackBuild
index c3c920c02ddd1..746c809d0779f 100644
--- a/graphics/exact-image/exact-image.SlackBuild
+++ b/graphics/exact-image/exact-image.SlackBuild
@@ -4,7 +4,7 @@
PRGNAM=exact-image
VERSION=${VERSION:-0.8.7}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -49,6 +49,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix includes
+patch -p1 -i $CWD/includes.patch
+
# Patch to fix libpng linkage
patch -p1 --verbose < $CWD/png.cc-libpng14.diff
diff --git a/graphics/exact-image/includes.patch b/graphics/exact-image/includes.patch
new file mode 100644
index 0000000000000..c1bdbec993b5b
--- /dev/null
+++ b/graphics/exact-image/includes.patch
@@ -0,0 +1,12 @@
+Index: exact-image-0.8.7/edisplay/edisplay.cc
+===================================================================
+--- exact-image-0.8.7.orig/edisplay/edisplay.cc
++++ exact-image-0.8.7/edisplay/edisplay.cc
+@@ -27,6 +27,7 @@
+ #include "Evas_Engine_GL_X11.h"
+ #endif
+
++#include <unistd.h>
+ #include <endian.h>
+ #include <algorithm>
+ #include <iostream>