summaryrefslogtreecommitdiffstats
path: root/graphics/optipng/optipng.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/optipng/optipng.SlackBuild')
-rw-r--r--graphics/optipng/optipng.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/optipng/optipng.SlackBuild b/graphics/optipng/optipng.SlackBuild
index ff6c6ce292..386194d746 100644
--- a/graphics/optipng/optipng.SlackBuild
+++ b/graphics/optipng/optipng.SlackBuild
@@ -4,16 +4,14 @@
# Written by Oleg O. Chukaev <oleg.chukaev@mail.ru>
PRGNAM=optipng
-VERSION=0.6.4
+VERSION=0.7.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -25,12 +23,16 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -50,8 +52,8 @@ find . \
./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 CFLAGS="$SLKCFLAGS -W -Wall"
+ make install DESTDIR=$PKG prefix=/usr
cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -61,9 +63,9 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- LICENSE.txt README.txt doc/caveat.txt doc/history.txt doc/manual.html \
- doc/manual.pdf doc/manual.txt doc/png_optimization_guide.html \
- doc/thanks.html doc/todo.txt \
+ AUTHORS.txt LICENSE.txt README.txt doc/history.txt doc/optipng.man.html \
+ doc/optipng.man.pdf doc/optipng.man.txt doc/png_optimization.html \
+ doc/todo.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild