pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/pngquant



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Sun Jun 24 12:00:22 UTC 2018

Added Files:
        pkgsrc/graphics/pngquant: DESCR Makefile PLIST distinfo
        pkgsrc/graphics/pngquant/patches: patch-configure

Log Message:
graphics/pngquant: Import pngquant 2.12.0.

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/pngquant/DESCR \
    pkgsrc/graphics/pngquant/Makefile pkgsrc/graphics/pngquant/PLIST \
    pkgsrc/graphics/pngquant/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/pngquant/patches/patch-configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/graphics/pngquant/DESCR
diff -u /dev/null pkgsrc/graphics/pngquant/DESCR:1.1
--- /dev/null   Sun Jun 24 12:00:22 2018
+++ pkgsrc/graphics/pngquant/DESCR      Sun Jun 24 12:00:22 2018
@@ -0,0 +1 @@
+pngquant is a command-line utility for lossy compression of PNG images.
Index: pkgsrc/graphics/pngquant/Makefile
diff -u /dev/null pkgsrc/graphics/pngquant/Makefile:1.1
--- /dev/null   Sun Jun 24 12:00:22 2018
+++ pkgsrc/graphics/pngquant/Makefile   Sun Jun 24 12:00:22 2018
@@ -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"
Index: pkgsrc/graphics/pngquant/PLIST
diff -u /dev/null pkgsrc/graphics/pngquant/PLIST:1.1
--- /dev/null   Sun Jun 24 12:00:22 2018
+++ pkgsrc/graphics/pngquant/PLIST      Sun Jun 24 12:00:22 2018
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/06/24 12:00:22 fhajny Exp $
+bin/pngquant
+man/man1/pngquant.1
Index: pkgsrc/graphics/pngquant/distinfo
diff -u /dev/null pkgsrc/graphics/pngquant/distinfo:1.1
--- /dev/null   Sun Jun 24 12:00:22 2018
+++ pkgsrc/graphics/pngquant/distinfo   Sun Jun 24 12:00:22 2018
@@ -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

Index: pkgsrc/graphics/pngquant/patches/patch-configure
diff -u /dev/null pkgsrc/graphics/pngquant/patches/patch-configure:1.1
--- /dev/null   Sun Jun 24 12:00:22 2018
+++ pkgsrc/graphics/pngquant/patches/patch-configure    Sun Jun 24 12:00:22 2018
@@ -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