Tue Jun 12 10:15:03 2018 UTC ()
libimagequant: updated to 2.12.1

version 2.12
- new liq_histogram_add_fixed_color()
- faster for large/complex images
- workarounds for Microsoft's outdated C compiler


(adam)
diff -r1.13 -r1.14 pkgsrc/graphics/libimagequant/Makefile
diff -r1.15 -r1.16 pkgsrc/graphics/libimagequant/distinfo
diff -r1.4 -r1.5 pkgsrc/graphics/libimagequant/patches/patch-Makefile
diff -r1.7 -r1.8 pkgsrc/graphics/libimagequant/patches/patch-configure

cvs diff -r1.13 -r1.14 pkgsrc/graphics/libimagequant/Makefile (expand / switch to context diff)
--- pkgsrc/graphics/libimagequant/Makefile 2018/03/12 16:47:35 1.13
+++ pkgsrc/graphics/libimagequant/Makefile 2018/06/12 10:15:03 1.14
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2018/03/12 16:47:35 adam Exp $
+# $NetBSD: Makefile,v 1.14 2018/06/12 10:15:03 adam Exp $
 
-DISTNAME=	libimagequant-2.11.10
+DISTNAME=	libimagequant-2.12.1
 CATEGORIES=	graphics
 MASTER_SITES+=	${MASTER_SITE_GITHUB:=ImageOptim/}
 GITHUB_TAG=	${PKGVERSION_NOREV}

cvs diff -r1.15 -r1.16 pkgsrc/graphics/libimagequant/distinfo (expand / switch to context diff)
--- pkgsrc/graphics/libimagequant/distinfo 2018/03/12 16:47:35 1.15
+++ pkgsrc/graphics/libimagequant/distinfo 2018/06/12 10:15:03 1.16
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.15 2018/03/12 16:47:35 adam Exp $
+$NetBSD: distinfo,v 1.16 2018/06/12 10:15:03 adam Exp $
 
-SHA1 (libimagequant-2.11.10.tar.gz) = beb2a0497fd8df1e8151b653f3b804b286cc6989
+SHA1 (libimagequant-2.12.1.tar.gz) = 3860b4fa2427b29d6c47050594c53a3186661eae
-RMD160 (libimagequant-2.11.10.tar.gz) = 9ed37406be9a5473eb33bfa8a883667ff157f28a
+RMD160 (libimagequant-2.12.1.tar.gz) = 92536ae6666e8d2a64a625548e4bc2a0a363e1e2
-SHA512 (libimagequant-2.11.10.tar.gz) = ac59ecd04d6a3a688cc4f9f77c063a59da8dc6f3ddd05bdc3b15b9809d057462fe5b712fdbfb38e975d633a1bd5179b8ae6b2aee765f5dd9dcfef107f5eb22c0
+SHA512 (libimagequant-2.12.1.tar.gz) = 2e65d1ccae4e885e200446756496c2446696f0d4c7057d85e40c9ab4d524fed5505584f21f240ce3a7c589b9156ccb117cf5b1562b4851f3fbf14bf11fed0f13
-Size (libimagequant-2.11.10.tar.gz) = 74886 bytes
+Size (libimagequant-2.12.1.tar.gz) = 75631 bytes
-SHA1 (patch-Makefile) = 9ac0719c2c8096874a584c3bedb8b925a9d2dc30
+SHA1 (patch-Makefile) = e75e9fea798efed44e25b840d5d433f16e18522a
-SHA1 (patch-configure) = 086d0bdf0f0d8b37c135a5a854ad85ab812b4d68
+SHA1 (patch-configure) = 7baac92db07ffb6fd58e41949407f339ee52622f

cvs diff -r1.4 -r1.5 pkgsrc/graphics/libimagequant/patches/Attic/patch-Makefile (expand / switch to context diff)
--- pkgsrc/graphics/libimagequant/patches/Attic/patch-Makefile 2018/03/12 16:47:35 1.4
+++ pkgsrc/graphics/libimagequant/patches/Attic/patch-Makefile 2018/06/12 10:15:03 1.5
@@ -1,8 +1,8 @@
-$NetBSD: patch-Makefile,v 1.4 2018/03/12 16:47:35 adam Exp $
+$NetBSD: patch-Makefile,v 1.5 2018/06/12 10:15:03 adam Exp $
 
 Libtoolize.
 
---- Makefile.orig	2018-03-10 12:31:19.000000000 +0000
+--- Makefile.orig	2018-06-03 19:46:28.000000000 +0000
 +++ Makefile
 @@ -1,7 +1,7 @@
  -include config.mk
@@ -11,9 +11,9 @@
 -SHAREDLIB=libimagequant.$(SOLIBSUFFIX)
 +SHAREDLIB=libimagequant.la
  SOVER=0
- 
- JNILIB=libimagequant.jnilib
-@@ -45,13 +45,13 @@ $(STATICLIB): $(OBJS)
+ ifeq ($(SOLIBSUFFIX),dylib)
+ 	SHAREDLIBVER=libimagequant.$(SOVER).$(SOLIBSUFFIX)
+@@ -52,15 +52,11 @@ $(STATICLIB): $(OBJS)
  	$(AR) $(ARFLAGS) $@ $^
  
  $(SHAREDOBJS):
@@ -21,15 +21,15 @@
 +	${LIBTOOL} --mode=compile $(CC) -fPIC $(CFLAGS) -c $(@:.lo=.c) -o $@
  
 -libimagequant.so: $(SHAREDOBJS)
--	$(CC) -shared -Wl,-soname,$(SHAREDLIB).$(SOVER) -o $(SHAREDLIB).$(SOVER) $^ $(LDFLAGS)
--	ln -fs $(SHAREDLIB).$(SOVER) $(SHAREDLIB)
--	sed -i "s#^prefix=.*#prefix=$(PREFIX)#" $(PKGCONFIG)
--	sed -i "s#^Version:.*#Version: $(VERSION)#" $(PKGCONFIG)
+-	$(CC) -shared -Wl,-soname,$(SHAREDLIBVER) -o $(SHAREDLIBVER) $^ $(LDFLAGS)
+-	ln -fs $(SHAREDLIBVER) $(SHAREDLIB)
+-
+-libimagequant.dylib: $(SHAREDOBJS)
+-	$(CC) -shared -o $(SHAREDLIBVER) $^ $(LDFLAGS)
+-	ln -fs $(SHAREDLIBVER) $(SHAREDLIB)
 +$(SHAREDLIB): $(SHAREDOBJS)
 +	${LIBTOOL} --mode=link $(CC) -o $(SHAREDLIB) $^ $(LDFLAGS) \
 +		-rpath ${PREFIX}/lib -version-info $(subst .,:,$(basename $(VERSION)))
-+	sed -e "s#^prefix=.*#prefix=$(PREFIX)#" $(PKGCONFIG) > $(PKGCONFIG).new
-+	sed -e "s#^Version:.*#Version: $(VERSION)#" $(PKGCONFIG).new > $(PKGCONFIG)
  
- libimagequant.dylib: $(SHAREDOBJS)
+ $(OBJS): $(wildcard *.h) config.mk
- 	$(CC) -shared -o $(SHAREDLIB).$(SOVER) $^ $(LDFLAGS)
+ 

cvs diff -r1.7 -r1.8 pkgsrc/graphics/libimagequant/patches/Attic/patch-configure (expand / switch to context diff)
--- pkgsrc/graphics/libimagequant/patches/Attic/patch-configure 2018/03/12 16:47:35 1.7
+++ pkgsrc/graphics/libimagequant/patches/Attic/patch-configure 2018/06/12 10:15:03 1.8
@@ -1,9 +1,9 @@
-$NetBSD: patch-configure,v 1.7 2018/03/12 16:47:35 adam Exp $
+$NetBSD: patch-configure,v 1.8 2018/06/12 10:15:03 adam Exp $
 
 Remove unwanted compiler flags.
 Avoid leaving scratch files in /tmp.
 
---- configure.orig	2018-03-10 12:31:19.000000000 +0000
+--- configure.orig	2018-06-03 19:46:28.000000000 +0000
 +++ configure
 @@ -5,7 +5,7 @@ PREFIX="/usr/local"
  LIBDIR="$PREFIX/lib"
@@ -14,18 +14,8 @@
  
  DEBUG=
  QUIET=0
-@@ -143,7 +143,8 @@ if [ "$QUIET" -ne 1 ]; then
- fi
+@@ -157,7 +157,7 @@ cflags "-std=c99 -I."
  
- # /tmp, because mingw has problems opening /dev/null and gives false negative
--if ! echo "int main(){}" | "$CC" -xc -std=c99 -o /tmp/gcccheck - > /dev/null; then
-+# not /tmp, because that's not safe
-+if ! echo "int main(){}" | "$CC" -xc -std=c99 -o ./tmp-gcccheck - > /dev/null; then
-     error "Compiler" "$CC failed to compile anything (make sure it's installed and supports C99)"
- fi
- 
-@@ -155,7 +156,7 @@ cflags "-std=c99 -I."
- 
  # DEBUG
  if [ -z "$DEBUG" ]; then
 -    cflags "-O3 -DNDEBUG"
@@ -33,7 +23,7 @@
      status "Debug" "no"
  else
      cflags "-O1 -g"
-@@ -193,15 +194,9 @@ if [ -n "$OPENMP" ]; then
+@@ -195,15 +195,9 @@ if [ -n "$OPENMP" ]; then
      else
          OPENMPFLAGS="-fopenmp"
      fi
@@ -49,16 +39,16 @@
  else
      # silence warnings about omp pragmas
      cflags "-Wno-unknown-pragmas"
-@@ -209,20 +204,10 @@ else
+@@ -211,20 +205,9 @@ else
      status "OpenMP" "no"
  fi
  
 -# Cocoa
 -if [[ "$OSTYPE" =~ "darwin" ]]; then
--    cflags "-mmacosx-version-min=10.6"
--    lflags "-mmacosx-version-min=10.6"
+-    cflags "-mmacosx-version-min=10.7"
+-    lflags "-mmacosx-version-min=10.7"
 -fi
- 
+-
  if [[ "$OSTYPE" =~ "darwin" ]]; then
      SOLIBSUFFIX=dylib