summaryrefslogtreecommitdiff
path: root/graphics/pngquant/pngquant.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pngquant/pngquant.SlackBuild')
-rw-r--r--graphics/pngquant/pngquant.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/pngquant/pngquant.SlackBuild b/graphics/pngquant/pngquant.SlackBuild
index 77dd0529f9..18743cbe41 100644
--- a/graphics/pngquant/pngquant.SlackBuild
+++ b/graphics/pngquant/pngquant.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pngquant
-VERSION=${VERSION:-1.8.3}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,8 +67,13 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
+# Remove unnecessary '-' in Makefiles.
+sed -i 's/-\$(MAKEFLAGS)/\$(MAKEFLAGS)/g' Makefile lib/Makefile
+
make CFLAGSADD="$SLKCFLAGS"
install -D -m0755 -s pngquant $PKG/usr/bin/pngquant
+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 {} \;