From 3c6574d9c3331c04254cffa481d1175004b7a2af Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 31 Oct 2017 14:15:53 -0200 Subject: [PATCH] libimagequant: update to 2.11.0. --- srcpkgs/libimagequant/patches/fix-acolormap.patch | 12 ++++++++++++ srcpkgs/libimagequant/template | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/libimagequant/patches/fix-acolormap.patch diff --git a/srcpkgs/libimagequant/patches/fix-acolormap.patch b/srcpkgs/libimagequant/patches/fix-acolormap.patch new file mode 100644 index 00000000000..83982d87358 --- /dev/null +++ b/srcpkgs/libimagequant/patches/fix-acolormap.patch @@ -0,0 +1,12 @@ +--- libimagequant.c ++++ libimagequant.c +@@ -1256,7 +1256,7 @@ LIQ_NONNULL static float remap_to_palette(liq_image *const input_image, unsigned + kmeans_init(map, max_threads, average_color); + + #pragma omp parallel for if (rows*cols > 3000) \ +- schedule(static) default(none) shared(average_color) reduction(+:remapping_error) ++ schedule(static) default(none) shared(acolormap) shared(average_color) reduction(+:remapping_error) + for(int row = 0; row < rows; ++row) { + const f_pixel *const row_pixels = liq_image_get_row_f(input_image, row); + const f_pixel *const bg_pixels = input_image->background && acolormap[transparent_index].acolor.a < 1.f/256.f ? liq_image_get_row_f(input_image->background, row) : NULL; + diff --git a/srcpkgs/libimagequant/template b/srcpkgs/libimagequant/template index e70f5a45403..c63cef73121 100644 --- a/srcpkgs/libimagequant/template +++ b/srcpkgs/libimagequant/template @@ -1,6 +1,6 @@ # Template file for 'libimagequant' pkgname=libimagequant -version=2.10.2 +version=2.11.0 revision=1 build_style=configure configure_args="--with-openmp" @@ -11,7 +11,7 @@ maintainer="Leah Neukirchen " homepage="https://pngquant.org/lib/" license="GPL-3" distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz" -checksum=c7a70caa87a72095f44d5b0e53737a1cb42c0b12ec599b42982224816f45abeb +checksum=ab0b5331a04a304c2c83a372bc82eb221110a08542a345a67662e9153468e58f case "$XBPS_TARGET_MACHINE" in x86_64*) configure_args+=" --enable-sse";;