summaryrefslogtreecommitdiff
path: root/graphics/pngquant
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pngquant')
-rw-r--r--graphics/pngquant/README3
-rw-r--r--graphics/pngquant/pngquant.SlackBuild18
-rw-r--r--graphics/pngquant/pngquant.info10
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"