mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
graphics/optipng: Updated for version 0.7.4.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
bacb4b4024
commit
ba84b29665
2 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue