Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "pngcheck verifies the integrity of PNG, JNG and MNG files" |
| 2 | HOMEPAGE = "http://www.libpng.org/pub/png/apps/pngcheck.html" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://gpl/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 5 | DEPENDS = "zlib libpng" |
| 6 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | SRC_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 Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | |
| 13 | SRC_URI[md5sum] = "980bd6d9a3830fdce746d7fe3c9166ee" |
| 14 | SRC_URI[sha256sum] = "77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f" |
| 15 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | CFLAGS += "-DUSE_ZLIB" |
| 17 | |
| 18 | EXTRA_OEMAKE = "-f ${S}/Makefile.unx" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | |
| 20 | do_compile() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | oe_runmake |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | do_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 | } |