summaryrefslogtreecommitdiff
path: root/graphics/optipng/optipng.SlackBuild
diff options
context:
space:
mode:
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 \