diff options
author | DhabyX <slack.dhabyx@gmail.com> | 2017-03-14 01:36:38 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:58:31 +0700 |
commit | 959b408d398750e032013fe8927c88a98d8bc4bb (patch) | |
tree | 01c96f069aba346e5e4983114c63dddebc93b8e3 /graphics | |
parent | dcca120cd486566ac85b1ef77503c8952ac9a0d0 (diff) | |
download | slackbuilds-959b408d398750e032013fe8927c88a98d8bc4bb.tar.gz |
graphics/pngquant: Updated for version 2.9.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pngquant/README | 3 | ||||
-rw-r--r-- | graphics/pngquant/pngquant.SlackBuild | 18 | ||||
-rw-r--r-- | graphics/pngquant/pngquant.info | 10 |
3 files changed, 21 insertions, 10 deletions
diff --git a/graphics/pngquant/README b/graphics/pngquant/README index 34721f2b04..780f4ae139 100644 --- a/graphics/pngquant/README +++ b/graphics/pngquant/README @@ -3,3 +3,6 @@ images to paletted (8-bit) PNGs. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency. Generated images are compatible with all modern web browsers, and have better fallback in IE6 than 24-bit PNGs. + +Optional features: +OPENMP=yes|no (default: no) Enables parallelized batch jobs. diff --git a/graphics/pngquant/pngquant.SlackBuild b/graphics/pngquant/pngquant.SlackBuild index e49e158a0c..776d7bf170 100644 --- a/graphics/pngquant/pngquant.SlackBuild +++ b/graphics/pngquant/pngquant.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for pngquant # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# 2017 - Dhaby Xiloj - <slack.dhabyx@gmail.com> # Copyright 2013-2015 Kyle Guinn <elyk03@gmail.com>, USA # All rights reserved. @@ -25,7 +26,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pngquant -VERSION=${VERSION:-2.8.2} +VERSION=${VERSION:-2.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,22 +65,29 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go-w,a+rX-st . +if [ "${OPENMP:-no}" != "no" ]; then + openmp="--with-openmp" +fi + ./configure \ --prefix=/usr \ + $openmp \ CFLAGS="$SLKCFLAGS" -make -C lib shared +sed -i -e 's#share/man#man#' Makefile + make -install -D -m0755 -s pngquant $PKG/usr/bin/pngquant +make -C lib shared +make PREFIX=$PKG/usr install +# manual installation of libraries: install -D -m0755 lib/libimagequant.so.0 $PKG/usr/lib${LIBDIRSUFFIX}/libimagequant.so.0 install -D -m0644 lib/libimagequant.a $PKG/usr/lib${LIBDIRSUFFIX}/libimagequant.a install -D -m0644 lib/libimagequant.h $PKG/usr/include/libimagequant.h -install -D -m0644 pngquant.1 $PKG/usr/man/man1/pngquant.1 find $PKG/usr/man -type f -exec gzip -9 {} + diff --git a/graphics/pngquant/pngquant.info b/graphics/pngquant/pngquant.info index 7dfe5dd7dd..6d27ead2db 100644 --- a/graphics/pngquant/pngquant.info +++ b/graphics/pngquant/pngquant.info @@ -1,10 +1,10 @@ PRGNAM="pngquant" -VERSION="2.8.2" +VERSION="2.9.0" HOMEPAGE="https://pngquant.org/" -DOWNLOAD="https://pngquant.org/pngquant-2.8.2-src.tar.gz" -MD5SUM="82234761ee2ce9895da983d604c9621a" +DOWNLOAD="https://pngquant.org/pngquant-2.9.0-src.tar.gz" +MD5SUM="7071fb2e03cb58d371ac7b0f74ad72a9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Ryan P.C. McQuen" -EMAIL="ryanpcmcquen@member.fsf.org" +MAINTAINER="DhabyX" +EMAIL="slack.dhabyx@gmail.com" |