{
  "name": "libpng",
  "buildsystem": "cmake-ninja",
  "builddir": true,
  "config-opts": [
    "-DPNG_TESTS=OFF",
    "-DPNG_STATIC=OFF",
    "-DPNG_SHARED=ON",
    "-DPNG_TOOLS=OFF"
  ],
  "build-options": {
    "strip": true
  },
  "sources": [
    {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/libpng/libpng16/1.6.58/libpng-1.6.58.tar.xz",
      "sha256": "28eb403f51f0f7405249132cecfe82ea5c0ef97f1b32c5a65828814ae0d34775"
    },
    {
      "type": "file",
      "url": "https://download.sourceforge.net/libpng-apng/libpng-1.6.58-apng.patch.gz",
      "dest-filename": "libpng-1.6.58-apng.patch.gz",
      "sha256": "eee7dea22ed502868017971c86c63c4ed1e6085de0baebfdcc3d3322f00f3eb0"
    },
    {
      "type": "shell",
      "commands":
      [
          "gunzip -f libpng-1.6.58-apng.patch.gz",
          "patch -p1  < \"libpng-1.6.58-apng.patch\""
      ]
    }
  ],
  "cleanup": [
    "/bin",
    "/include",
    "/lib/*.a",
    "/lib/*.la",
    "/lib/cmake",
    "/lib/libpng",
    "/lib/pkgconfig",
    "/share/man"
  ]
}

