head 1.13; access; symbols pkgsrc-2023Q1:1.10.0.18 pkgsrc-2023Q1-base:1.10 pkgsrc-2022Q4:1.10.0.16 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.14 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.10.0.12 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.10 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.10.0.8 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.10.0.6 pkgsrc-2021Q3-base:1.10 pkgsrc-2021Q2:1.10.0.4 pkgsrc-2021Q2-base:1.10 pkgsrc-2021Q1:1.10.0.2 pkgsrc-2021Q1-base:1.10 pkgsrc-2020Q4:1.9.0.12 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.10 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.8 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.4 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.9.0.6 pkgsrc-2019Q4-base:1.9 pkgsrc-2019Q3:1.9.0.2 pkgsrc-2019Q3-base:1.9 pkgsrc-2019Q2:1.8.0.10 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.8 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.6 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.8.0.4 pkgsrc-2018Q3-base:1.8 pkgsrc-2018Q2:1.8.0.2 pkgsrc-2018Q2-base:1.8 pkgsrc-2018Q1:1.7.0.2 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.6.0.2 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.5.0.4 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.4.0.2 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.3.0.2 pkgsrc-2017Q1-base:1.3; locks; strict; comment @# @; 1.13 date 2023.05.22.11.37.14; author wiz; state dead; branches; next 1.12; commitid KUlVFhmTrarz5XpE; 1.12 date 2023.05.07.16.55.21; author wiz; state Exp; branches; next 1.11; commitid RkgzhKSVCljmk3oE; 1.11 date 2023.05.07.12.24.08; author wiz; state dead; branches; next 1.10; commitid TXiERoebUh3AP1oE; 1.10 date 2021.01.21.19.58.47; author adam; state Exp; branches; next 1.9; commitid C1LjMUqoEsrsdDEC; 1.9 date 2019.08.09.12.59.02; author adam; state Exp; branches; next 1.8; commitid OuXvQLiimA1IXlyB; 1.8 date 2018.06.12.10.15.03; author adam; state Exp; branches; next 1.7; commitid UkqLAUcMPHfrEYFA; 1.7 date 2018.03.12.16.47.35; author adam; state Exp; branches; next 1.6; commitid 170EL0louLmyMbuA; 1.6 date 2017.12.20.11.52.23; author dholland; state Exp; branches; next 1.5; commitid HHlVLgZBMsnFMCjA; 1.5 date 2017.07.03.21.50.32; author adam; state Exp; branches; next 1.4; commitid 3bUch3g89nUJyPXz; 1.4 date 2017.06.19.20.14.45; author adam; state Exp; branches; next 1.3; commitid 2kloGOKvPbYMt1Wz; 1.3 date 2017.03.27.13.14.49; author jperkin; state Exp; branches; next 1.2; commitid GwulWUW3c5D7RbLz; 1.2 date 2017.03.22.02.13.05; author adam; state Exp; branches; next 1.1; commitid Xcch4UBPP13SluKz; 1.1 date 2017.01.29.11.57.03; author adam; state Exp; branches; next ; commitid vS7659bzSFg4gRDz; desc @@ 1.13 log @libimagequant: update to 4.2.0. Rewritten in rust, C library still provided. @ text @$NetBSD: patch-configure,v 1.12 2023/05/07 16:55:21 wiz Exp $ Remove unwanted compiler flags. Avoid leaving scratch files in /tmp. Do not look for Xcode. --- configure.orig 2020-11-22 13:18:54.000000000 +0000 +++ configure @@@@ -5,7 +5,7 @@@@ PREFIX="/usr/local" LIBDIR="$PREFIX/lib" INCLUDEDIR="$PREFIX/include" PKGCONFIGDIR="$LIBDIR/pkgconfig" -VERSION=$(grep LIQ_VERSION_STRING libimagequant.h | grep -Eo "2\.[0-9.]+") +VERSION=$(awk -F\" '/LIQ_VERSION_STRING/ {print $2}' libimagequant.h) DEBUG= QUIET=0 @@@@ -157,7 +157,7 @@@@ cflags "-std=c99 -I." # DEBUG if [ -z "$DEBUG" ]; then - cflags "-O3 -DNDEBUG" + cflags "-DNDEBUG" status "Debug" "no" else cflags "-O1 -g -DDEBUG" @@@@ -195,15 +195,9 @@@@ if [ -n "$OPENMP" ]; then else OPENMPFLAGS="-fopenmp" fi - if [[ "$("$CC" -xc -E $OPENMPFLAGS <(echo "#ifdef _OPENMP - #include - #endif") 2>&1)" =~ "omp_get_thread_num" ]]; then cflags "$OPENMPFLAGS" lflags "$OPENMPFLAGS" status "OpenMP" "yes" - else - error "OpenMP" "not supported by compiler (please install a compiler that supports OpenMP (e.g. gcc) and specify it with the CC= argument)" - fi else # silence warnings about omp pragmas cflags "-Wno-unknown-pragmas" @@@@ -223,10 +217,6 @@@@ if [[ "$OSTYPE" =~ "darwin" ]]; then SOLIBSUFFIX=dylib # Search Developer SDK paths, since Apple seems to have dropped the standard Unixy ones - XCODE_CMD="xcode-select" - XCODE_PATH=$($XCODE_CMD -p) - DIRS+=("$XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include $XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib") - DIRS+=("$XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include $XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib") elif [[ "$OSTYPE" =~ "msys" ]]; then SOLIBSUFFIX=dll else @ 1.12 log @libimagequant: downgrade to 2.18 4.x only provides a static library but graphviz needs a shared gd library PR 57395 and https://github.com/ImageOptim/libimagequant/issues/109 @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.10 2021/01/21 19:58:47 adam Exp $ @ 1.11 log @libimagequant: update to 4.2.0. Re-written in rust. @ text @@ 1.10 log @libimagequant: updated to 2.13.1 2.13.1: Unknown changes @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.9 2019/08/09 12:59:02 adam Exp $ @ 1.9 log @libimagequant pngquant: updated to 2.12.5 2.12.5: Bug fixes @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.8 2018/06/12 10:15:03 adam Exp $ d5 1 d7 1 a7 1 --- configure.orig 2019-07-27 12:50:23.000000000 +0000 d43 1 a43 11 @@@@ -211,20 +205,9 @@@@ else status "OpenMP" "no" fi -# Cocoa -if [[ "$OSTYPE" =~ "darwin" ]]; then - cflags "-mmacosx-version-min=10.7" - lflags "-mmacosx-version-min=10.7" -fi - if [[ "$OSTYPE" =~ "darwin" ]]; then d46 1 a46 1 - # Search Developer SDK paths, since Apple seems to have dropped the standard Unixy ones d49 2 a50 2 - DIRS+=("$XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include $XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib") - DIRS+=("$XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include $XCODE_PATH/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib") @ 1.8 log @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 @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.7 2018/03/12 16:47:35 adam Exp $ d6 1 a6 1 --- configure.orig 2018-06-03 19:46:28.000000000 +0000 d25 1 a25 1 cflags "-O1 -g" @ 1.7 log @libimagequant: updated to 2.11.10 2.11.10: Bug fixes. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.6 2017/12/20 11:52:23 dholland Exp $ d6 1 a6 1 --- configure.orig 2018-03-10 12:31:19.000000000 +0000 d17 1 a17 11 @@@@ -143,7 +143,8 @@@@ if [ "$QUIET" -ne 1 ]; then fi # /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." d26 1 a26 1 @@@@ -193,15 +194,9 @@@@ if [ -n "$OPENMP" ]; then d42 1 a42 1 @@@@ -209,20 +204,10 @@@@ else d48 2 a49 2 - cflags "-mmacosx-version-min=10.6" - lflags "-mmacosx-version-min=10.6" d51 1 a51 1 @ 1.6 log @Don't put configure scratch files in /tmp; it isn't safe and also might fail for extraneous reasons. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.5 2017/07/03 21:50:32 adam Exp $ d6 1 a6 1 --- configure.orig 2017-11-27 15:38:43.000000000 +0000 d8 4 a11 4 @@@@ -2,7 +2,7 @@@@ CONFIG="config.mk" PREFIX="/usr/local" d17 1 a17 1 @@@@ -124,7 +124,8 @@@@ if [ "$QUIET" -ne 1 ]; then d27 1 a27 1 @@@@ -136,7 +137,7 @@@@ cflags "-std=c99 -I." d36 1 a36 1 @@@@ -174,15 +175,9 @@@@ if [ -n "$OPENMP" ]; then d52 1 a52 1 @@@@ -190,20 +185,10 @@@@ else @ 1.5 log @Changes 2.10.0: Bug fixes. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.4 2017/06/19 20:14:45 adam Exp $ d4 1 d6 1 a6 1 --- configure.orig 2017-07-02 21:40:53.000000000 +0000 d17 11 a27 1 @@@@ -136,7 +136,7 @@@@ cflags "-std=c99 -I." d36 1 a36 1 @@@@ -174,15 +174,9 @@@@ if [ -n "$OPENMP" ]; then d52 1 a52 1 @@@@ -190,20 +184,10 @@@@ else @ 1.4 log @Changes 2.9.1: Bug fixes. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.3 2017/03/27 13:14:49 jperkin Exp $ d5 1 a5 1 --- configure.orig 2017-04-05 16:21:29.000000000 +0000 d15 2 a16 2 SSE=auto @@@@ -125,7 +125,7 @@@@ cflags "-std=c99 -I." d25 1 a25 1 @@@@ -163,15 +163,9 @@@@ if [ -n "$OPENMP" ]; then d41 1 a41 1 @@@@ -179,20 +173,10 @@@@ else @ 1.3 log @Use awk instead of relying on GNU grep features. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2017/03/22 02:13:05 adam Exp $ d5 1 a5 1 --- configure.orig 2017-03-02 01:07:29.000000000 +0000 d16 1 a16 1 @@@@ -128,7 +128,7 @@@@ cflags "-std=c99 -I." d25 1 a25 1 @@@@ -166,15 +166,9 @@@@ if [ -n "$OPENMP" ]; then d41 2 a42 1 @@@@ -183,19 +177,9 @@@@ else d45 1 a45 1 # Cocoa d53 1 a53 1 - d59 2 a61 2 SOLIBSUFFIX=so fi @ 1.2 log @version 2.9: - new liq_histogram_add_colors() pkgsrc: - use correct PREFIX @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2017/01/29 11:57:03 adam Exp $ d7 9 @ 1.1 log @Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images. @ text @d1 1 a1 1 $NetBSD$ a2 1 Remove SSE auto-detection, it is not portable. d5 1 a5 1 --- configure.orig 2016-12-23 23:22:46.000000000 +0000 d7 1 a7 1 @@@@ -125,7 +124,7 @@@@ cflags "-std=c99 -I." d16 1 a16 15 @@@@ -133,13 +132,6 @@@@ else fi # SSE -if [ "$SSE" = 'auto' ]; then - if [[ "$(uname -m)" =~ (amd|x86_)64 || - "$(grep -E -m1 "^flags" /proc/cpuinfo)" =~ "sse" ]]; then - SSE=1 - fi -fi - if [ "$SSE" -eq 1 ]; then status "SSE" "yes" cflags "-DUSE_SSE=1" @@@@ -160,15 +152,9 @@@@ if [ -n "$OPENMP" ]; then d32 1 a32 1 @@@@ -177,19 +163,9 @@@@ else @