summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/optipng/optipng.SlackBuild18
-rw-r--r--graphics/optipng/optipng.info6
2 files changed, 13 insertions, 11 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
diff --git a/graphics/optipng/optipng.info b/graphics/optipng/optipng.info
index 65147b682f..2fee565ca1 100644
--- a/graphics/optipng/optipng.info
+++ b/graphics/optipng/optipng.info
@@ -1,8 +1,8 @@
PRGNAM="optipng"
-VERSION="0.6.4"
+VERSION="0.7.4"
HOMEPAGE="http://optipng.sourceforge.net/"
-DOWNLOAD="http://prdownloads.sourceforge.net/optipng/optipng-0.6.4.tar.gz"
-MD5SUM="d6c10dd8d8f1d5b579221bc9cfbfbcb6"
+DOWNLOAD="http://prdownloads.sourceforge.net/optipng/optipng-0.7.4.tar.gz"
+MD5SUM="8853d89aaf859065e95dcdf98b6bed73"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""