diff options
Diffstat (limited to 'libraries/png++/png++.SlackBuild')
-rw-r--r-- | libraries/png++/png++.SlackBuild | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/libraries/png++/png++.SlackBuild b/libraries/png++/png++.SlackBuild index b227d7dd80..6dd4c3385d 100644 --- a/libraries/png++/png++.SlackBuild +++ b/libraries/png++/png++.SlackBuild @@ -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 |