pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/pngquant graphics/pngquant: Import pngquant 2...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64c8848ba7fc
branches:  trunk
changeset: 309842:64c8848ba7fc
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Sun Jun 24 12:00:22 2018 +0000

description:
graphics/pngquant: Import pngquant 2.12.0.

pngquant is a command-line utility for lossy compression of PNG images.

diffstat:

 graphics/pngquant/DESCR                   |   1 +
 graphics/pngquant/Makefile                |  26 ++++++++++++++++++++++
 graphics/pngquant/PLIST                   |   3 ++
 graphics/pngquant/distinfo                |   7 ++++++
 graphics/pngquant/patches/patch-configure |  36 +++++++++++++++++++++++++++++++
 5 files changed, 73 insertions(+), 0 deletions(-)

diffs (93 lines):

diff -r 9d73f7a0b644 -r 64c8848ba7fc graphics/pngquant/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pngquant/DESCR   Sun Jun 24 12:00:22 2018 +0000
@@ -0,0 +1,1 @@
+pngquant is a command-line utility for lossy compression of PNG images.
diff -r 9d73f7a0b644 -r 64c8848ba7fc graphics/pngquant/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pngquant/Makefile        Sun Jun 24 12:00:22 2018 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2018/06/24 12:00:22 fhajny Exp $
+
+DISTNAME=      pngquant-2.12.0-src
+PKGNAME=       ${DISTNAME:S/-src//}
+CATEGORIES=    graphics
+MASTER_SITES=  http://pngquant.org/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://pngquant.org/
+COMMENT=       Command-line utility for lossy compression of PNG images
+LICENSE=       gnu-gpl-v3
+
+WRKSRC=                ${WRKDIR}/pngquant-2.12.0
+
+HAS_CONFIGURE= yes
+USE_LANGUAGES= c c99
+USE_TOOLS+=    gmake pkg-config
+
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+CONFIGURE_ARGS+=       --with-libimagequant=${BUILDLINK_PREFIX.libimagequant}
+INSTALL_MAKE_FLAGS+=   MANPREFIX=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+.include "../../graphics/libimagequant/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/lcms2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9d73f7a0b644 -r 64c8848ba7fc graphics/pngquant/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pngquant/PLIST   Sun Jun 24 12:00:22 2018 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/06/24 12:00:22 fhajny Exp $
+bin/pngquant
+man/man1/pngquant.1
diff -r 9d73f7a0b644 -r 64c8848ba7fc graphics/pngquant/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pngquant/distinfo        Sun Jun 24 12:00:22 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/06/24 12:00:22 fhajny Exp $
+
+SHA1 (pngquant-2.12.0-src.tar.gz) = f57ce0112e86ac966c55270ccf5971deff241d4f
+RMD160 (pngquant-2.12.0-src.tar.gz) = c3acae2a9b16d73d2a595724cd175bde1095935d
+SHA512 (pngquant-2.12.0-src.tar.gz) = e7f39f9636c36a3634fa6335afab3561c06072ac45a63d20ae607691fa33ec16d342571df9df2a516ffb89f5f720cf11ad7a5f89eb2458742027ae824a4aa20b
+Size (pngquant-2.12.0-src.tar.gz) = 143335 bytes
+SHA1 (patch-configure) = 34165a94074a0e7f35b23794165589551d58ee08
diff -r 9d73f7a0b644 -r 64c8848ba7fc graphics/pngquant/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/pngquant/patches/patch-configure Sun Jun 24 12:00:22 2018 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-configure,v 1.1 2018/06/24 12:00:22 fhajny Exp $
+
+Add support for dynamic libimagequant lookup and linking.
+
+--- configure.orig     2018-06-03 14:42:43.000000000 +0000
++++ configure
+@@ -221,11 +221,11 @@ find_library() {
+     LIBRARY_FOUND_VERSION=
+     LIBRARY_FOUND_BUILD=
+ 
+-    if [ "imagequant" = "$LIBNAME" -a -n "$LIQSRCDIR" -a -f "$LIQSRCDIR"/"$HEADERPATTERN" ]; then
++    if [ "imagequant" = "$LIBNAME" -a -n "$LIQSRCDIR" -a -f "$LIQSRCDIR"/include/"$HEADERPATTERN" ]; then
+         status "$LIBNAME" "build static"
+-        cflags "-I$LIQSRCDIR"
+-        lflags "$LIQSRCDIR/libimagequant.a"
+-        LIBRARY_FOUND_HEADER="$LIQSRCDIR"/"$HEADERPATTERN"
++        cflags "-I$LIQSRCDIR/include"
++        lflags "-limagequant"
++        LIBRARY_FOUND_HEADER="$LIQSRCDIR"/include/"$HEADERPATTERN"
+         LIBRARY_FOUND_BUILD="$LIQSRCDIR"
+         return 0;
+     fi
+@@ -398,11 +398,11 @@ if find_library "imagequant" "imagequant
+     fi
+ 
+     if [ -n "$LIBRARY_FOUND_BUILD" ]; then
+-        STATICLIBDEPS="$LIBRARY_FOUND_BUILD/libimagequant.h $LIBRARY_FOUND_BUILD/libimagequant.a"
++        STATICLIBDEPS="$LIBRARY_FOUND_BUILD/include/libimagequant.h $LIBRARY_FOUND_BUILD/lib/libimagequant.a"
+         LIQSRCDIR="$LIBRARY_FOUND_BUILD"
+     fi
+ else
+-    if [ -n "$LIQSRCDIR" -a ! -f "$LIQSRCDIR"/libimagequant.h ]; then
++    if [ -n "$LIQSRCDIR" -a ! -f "$LIQSRCDIR"/include/libimagequant.h ]; then
+         echo "If you're using git, do clone with --recursive, or download from https://github.com/ImageOptim/libimagequant";
+         error "imagequant" "libimagequant.h not found in $LIQSRCDIR/"
+     else



Home | Main Index | Thread Index | Old Index