Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Zlib Compression Library" |
| 2 | DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \ |
| 3 | library which is used by many different programs." |
| 4 | HOMEPAGE = "http://zlib.net/" |
| 5 | SECTION = "libs" |
| 6 | LICENSE = "Zlib" |
| 7 | LIC_FILES_CHKSUM = "file://zlib.h;beginline=6;endline=23;md5=5377232268e952e9ef63bc555f7aa6c0" |
| 8 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 9 | SRC_URI = "https://zlib.net/${BP}.tar.xz \ |
| 10 | file://cc.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | file://ldflags-tests.patch \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | file://0001-configure-Pass-LDFLAGS-to-link-tests.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | file://run-ptest \ |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 14 | file://0001-Correct-incorrect-inputs-provided-to-the-CRC-functio.patch \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 15 | file://0001-Fix-a-bug-when-getting-a-gzip-header-extra-field-wit.patch \ |
| 16 | file://0001-Fix-extra-field-processing-bug-that-dereferences-NUL.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | " |
| 18 | UPSTREAM_CHECK_URI = "http://zlib.net/" |
| 19 | |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 20 | SRC_URI[sha256sum] = "7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
| 22 | CFLAGS += "-D_REENTRANT" |
| 23 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | RDEPENDS:${PN}-ptest += "make" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | |
| 26 | inherit ptest |
| 27 | |
| 28 | do_configure() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | LDCONFIG=true ./configure --prefix=${prefix} --shared --libdir=${libdir} --uname=GNU |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | do_compile() { |
| 33 | oe_runmake shared |
| 34 | } |
| 35 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 36 | do_install() { |
| 37 | oe_runmake DESTDIR=${D} install |
| 38 | } |
| 39 | |
| 40 | do_install_ptest() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 41 | install ${B}/examplesh ${D}${PTEST_PATH} |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | } |
| 43 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 44 | BBCLASSEXTEND = "native nativesdk" |