mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/png++: Updated for version 0.2.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7e37c9ef77
commit
f7390313b6
2 changed files with 8 additions and 28 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for png++
|
||||
|
||||
# Copyright 2015, 2018 Hunter Sezen California, USA
|
||||
# Copyright 2015, 2018-2019 Hunter Sezen California, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,37 +23,17 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=png++
|
||||
VERSION=${VERSION:-0.2.9}
|
||||
VERSION=${VERSION:-0.2.10}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
ARCH=noarch
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -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 -eu
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -71,12 +51,12 @@ find -L . \
|
|||
|
||||
sed -i 's|share/doc|doc|g' Makefile
|
||||
|
||||
make CFLAGS="$SLKCFLAGS"
|
||||
make
|
||||
[ "${DOC:-0}" != 0 ] && make docs
|
||||
make install PREFIX=$PKG/usr
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \
|
||||
cp -a AUTHORS BUGS COPYING ChangeLog NEWS README TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="png++"
|
||||
VERSION="0.2.9"
|
||||
VERSION="0.2.10"
|
||||
HOMEPAGE="https://www.nongnu.org/pngpp/"
|
||||
DOWNLOAD="https://download.savannah.gnu.org/releases/pngpp/png++-0.2.9.tar.gz"
|
||||
MD5SUM="92863df3bee625d707cebc0e749c10df"
|
||||
DOWNLOAD="https://download.savannah.gnu.org/releases/pngpp/png++-0.2.10.tar.gz"
|
||||
MD5SUM="bcca7438bb1b55edd0156687f0259c82"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue