diff options
Diffstat (limited to 'graphics/pngquant/pngquant.SlackBuild')
-rw-r--r-- | graphics/pngquant/pngquant.SlackBuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/graphics/pngquant/pngquant.SlackBuild b/graphics/pngquant/pngquant.SlackBuild index e49e158a0c0ec..776d7bf170321 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 {} + |