summaryrefslogtreecommitdiff
path: root/graphics/optipng/optipng.SlackBuild
diff options
context:
space:
mode:
authorOleg O. Chukaev <oleg.chukaev@mail.ru>2010-06-13 04:20:36 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-13 14:52:38 -0500
commitc2c8598d6eef32205e3616e2ecee6d2a8b027f34 (patch)
tree686769d664e42030fb72ac95a79b6774dadfdc0d /graphics/optipng/optipng.SlackBuild
parent6c7905eabba6830e090147972b43bb0bec053087 (diff)
downloadslackbuilds-c2c8598d6eef32205e3616e2ecee6d2a8b027f34.tar.gz
graphics/optipng: Updated for version 0.6.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/optipng/optipng.SlackBuild')
-rw-r--r--graphics/optipng/optipng.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/optipng/optipng.SlackBuild b/graphics/optipng/optipng.SlackBuild
index ee5d256023..ff6c6ce292 100644
--- a/graphics/optipng/optipng.SlackBuild
+++ b/graphics/optipng/optipng.SlackBuild
@@ -4,7 +4,7 @@
# Written by Oleg O. Chukaev <oleg.chukaev@mail.ru>
PRGNAM=optipng
-VERSION=0.6.3
+VERSION=0.6.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -29,6 +29,8 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
fi
set -e
@@ -46,18 +48,16 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+./configure -with-system-zlib
cd src
-make -f scripts/gcc.mak CFLAGS="$SLKCFLAGS -W -Wall"
-make -f scripts/gcc.mak install DESTDIR=$PKG prefix=/usr
+ make -f scripts/gcc.mak CFLAGS="$SLKCFLAGS -W -Wall"
+ make -f scripts/gcc.mak install DESTDIR=$PKG prefix=/usr
cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \