{ "name": "libpng", "version": "1.6.58", "summary": "libpng: the PNG reference library (PHP's gd, ImageMagick)", "category": "library", "license": "libpng-2.0", "homepage": "http://www.libpng.org/pub/png/libpng.html", "source": { "url": "https://downloads.sourceforge.net/project/libpng/libpng16/1.6.58/libpng-1.6.58.tar.xz", "sha256": "28eb403f51f0f7405249132cecfe82ea5c0ef97f1b32c5a65828814ae0d34775" }, "watch": {"kind": "github-tag", "repo": "pnggroup/libpng", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "pin": "1.6"}, "deps": [ "zlib" ], "env_packages": [], "static": true, "nss": false, "check": "CHECK_CPPFLAGS=\"-DP=\\\"$TMPDIR/c.png\\\"\" check_lib libpng16 png.h 'png_image w; memset(&w, 0, sizeof w); w.version = PNG_IMAGE_VERSION; w.width = 32; w.height = 16; w.format = PNG_FORMAT_RGBA; unsigned char px[32 * 16 * 4], back[32 * 16 * 4]; for (int i = 0; i < (int) sizeof px; i++) px[i] = (unsigned char) (i * 7 + 3); if (!png_image_write_to_file(&w, P, 0, px, 0, NULL)) return 1; png_image r; memset(&r, 0, sizeof r); r.version = PNG_IMAGE_VERSION; if (!png_image_begin_read_from_file(&r, P) || r.width != 32 || r.height != 16) return 2; r.format = PNG_FORMAT_RGBA; if (!png_image_finish_read(&r, NULL, back, 0, NULL) || memcmp(px, back, sizeof px)) return 3' && check_static bin/pngfix && bin/pngfix --quiet \"$TMPDIR/c.png\" && echo \"libpng $(bin/libpng-config --version): a 32x16 RGBA image written to a PNG file and read back byte for byte; pngfix finds the file valid\"" }