summaryrefslogtreecommitdiff
path: root/graphics/pngcrush/pngcrush.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-03 00:12:57 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-06 07:56:56 +0700
commit4a00872f76feb5abf678da389ec974e04a3344e0 (patch)
treeadc18f43547fc0fbb480a205341fb879f592fdff /graphics/pngcrush/pngcrush.SlackBuild
parentb621782554fcdb0b7700ca66a3954e5f1fdc26de (diff)
downloadslackbuilds-4a00872f76feb5abf678da389ec974e04a3344e0.tar.gz
graphics/pngcrush: Fix x86 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'graphics/pngcrush/pngcrush.SlackBuild')
-rw-r--r--graphics/pngcrush/pngcrush.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/pngcrush/pngcrush.SlackBuild b/graphics/pngcrush/pngcrush.SlackBuild
index 7ce8b7c0b1..623155d421 100644
--- a/graphics/pngcrush/pngcrush.SlackBuild
+++ b/graphics/pngcrush/pngcrush.SlackBuild
@@ -23,6 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by Eugene M., <damagedone at gmx dot com>
+# Modified by B. Watson <yalhcru@gmail.com>, fix x86 build error
PRGNAM=pngcrush
VERSION=${VERSION:-1.8.11}
@@ -57,6 +58,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# 20170603 bkw: this appears to be the right way to fix bug #75:
+# https://sourceforge.net/p/pmt/bugs/75/
+sed -i '/typedef long ptrdiff_t;/s,long,__PTRDIFF_TYPE__,' zutil.h
+
make
install -D -m 0755 pngcrush $PKG/usr/bin/pngcrush