diff options
author | Oleg O. Chukaev <oleg.chukaev@mail.ru> | 2012-12-16 17:42:44 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-12-23 09:16:20 -0500 |
commit | ba84b2966541c16c6f7afdcc5e240648e15b4af0 (patch) | |
tree | ab17f82024c95c9c8a29184013f7e0ff2ef6c7ce | |
parent | bacb4b4024a43478bc1fc93003ab77984402e1b8 (diff) |
graphics/optipng: Updated for version 0.7.4.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | graphics/optipng/optipng.SlackBuild | 18 | ||||
-rw-r--r-- | graphics/optipng/optipng.info | 6 |
2 files changed, 13 insertions, 11 deletions
diff --git a/graphics/optipng/optipng.SlackBuild b/graphics/optipng/optipng.SlackBuild index ff6c6ce2923b4..386194d7468f5 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 65147b682fc63..2fee565ca1209 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="" |