blob: 19da947d0426248232e4055d8bc513a571b9d0b5 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "pngcheck verifies the integrity of PNG, JNG and MNG files"
2HOMEPAGE = "http://www.libpng.org/pub/png/apps/pngcheck.html"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004LIC_FILES_CHKSUM = "file://gpl/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
5DEPENDS = "zlib libpng"
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007SRC_URI = "${SOURCEFORGE_MIRROR}/project/png-mng/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
8 file://10-pngsplit-format-strings.patch \
9 file://0001-png-fix-IDAT-windowsize-Fix-format-string-errors-in-.patch \
10 file://0001-make-Respect-variables-from-environement.patch \
11 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13SRC_URI[md5sum] = "980bd6d9a3830fdce746d7fe3c9166ee"
14SRC_URI[sha256sum] = "77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f"
15
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016CFLAGS += "-DUSE_ZLIB"
17
18EXTRA_OEMAKE = "-f ${S}/Makefile.unx"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019
20do_compile() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 oe_runmake
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022}
23
24do_install() {
25 install -d ${D}${bindir}
26 install pngcheck ${D}${bindir}
27 install png-fix-IDAT-windowsize ${D}${bindir}
28 install pngsplit ${D}${bindir}
29}