diff --git a/packages/addons/addon-depends/pngquant/package.mk b/packages/addons/addon-depends/pngquant/package.mk index b57da08a87..18d0bad27b 100644 --- a/packages/addons/addon-depends/pngquant/package.mk +++ b/packages/addons/addon-depends/pngquant/package.mk @@ -17,8 +17,8 @@ ################################################################################ PKG_NAME="pngquant" -PKG_VERSION="2.9.1" -PKG_SHA256="ac2138207ef40acd4e5fdae18798139a9d75dae4f1d0837aea918a2a8c433481" +PKG_VERSION="2.11.7" +PKG_SHA256="d70b46c3335c7abf21944aced2d9d2b54819ab84ed1a140b354d5e8cc9f0fb0a" PKG_ARCH="any" PKG_LICENSE="GPLv3" PKG_SITE="https://pngquant.org" @@ -29,7 +29,7 @@ PKG_SHORTDESC="lossy PNG compressor" PKG_LONGDESC="a PNG compresor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format" configure_host() { - : # + : } make_host() { diff --git a/packages/addons/addon-depends/pngquant/patches/pngquant-no-temp-dir.patch b/packages/addons/addon-depends/pngquant/patches/pngquant-no-temp-dir.patch new file mode 100644 index 0000000000..7f2202484d --- /dev/null +++ b/packages/addons/addon-depends/pngquant/patches/pngquant-no-temp-dir.patch @@ -0,0 +1,29 @@ +From: Kornel +Date: Mon, 14 May 2018 10:37:34 +0100 +Subject: [PATCH] Non-writable /tmp is a thing + +--- + configure | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure b/configure +index 7a609659..0a2b73e8 100755 +--- a/configure ++++ b/configure +@@ -271,13 +271,15 @@ error() { + echo + + # /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 ++if ! echo "int main(){}" | "$CC" -xc -std=c99 -o pngquant-gcccheck - > /dev/null; then ++ rm -f pngquant-gcccheck + if [ "$SKIP_CC_CHECK" -eq 1 ]; then + status "Compiler" "$CC failed to compile anything (make sure it's installed and supports C99)" + else + error "Compiler" "$CC failed to compile anything (make sure it's installed and supports C99)" + fi + fi ++rm -f pngquant-gcccheck + + status "Compiler" "$CC" +