Signed-off-by: Pawel Zalewski pzalewski@thegoodpenguin.co.uk --- recipes-core/zlib/files/run-ptest | 7 ++++ recipes-core/zlib/zlib-morello_1.2.13.bb | 43 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 recipes-core/zlib/files/run-ptest create mode 100644 recipes-core/zlib/zlib-morello_1.2.13.bb
diff --git a/recipes-core/zlib/files/run-ptest b/recipes-core/zlib/files/run-ptest new file mode 100644 index 0000000..065863e --- /dev/null +++ b/recipes-core/zlib/files/run-ptest @@ -0,0 +1,7 @@ +#!/bin/sh + +if ./examplesh ; then + echo "PASS: zlib" +else + echo "FAIL: zlib" +fi diff --git a/recipes-core/zlib/zlib-morello_1.2.13.bb b/recipes-core/zlib/zlib-morello_1.2.13.bb new file mode 100644 index 0000000..adf961c --- /dev/null +++ b/recipes-core/zlib/zlib-morello_1.2.13.bb @@ -0,0 +1,43 @@ +inherit ptest purecap-sysroot + +MORELLO_SRC = "poky/meta/recipes-core/zlib/zlib_1.2.11.bb" + +SUMMARY = "Zlib Compression Library" +DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \ +library which is used by many different programs." + +HOMEPAGE = "http://zlib.net/" +SECTION = "libs" +LICENSE = "Zlib" +LIC_FILES_CHKSUM = "file://zlib.h;beginline=6;endline=23;md5=5377232268e952e9ef63bc555f7aa6c0" + +TOOLCHAIN = "${MORELLO_TOOLCHAIN}" + +SRC_URI = "git://github.com/madler/zlib;protocol=https;branch=${SRCBRANCH} \ + file://run-ptest \ + " +SRCREV = "04f42ceca40f73e2978b50e93806c2a18c1281fc" +SRCBRANCH = "master" + +CFLAGS += "-D_REENTRANT" + +RDEPENDS:${PN}-ptest += "make" + +S = "${WORKDIR}/git" + +do_configure() { + LDCONFIG=true ./configure --prefix=${prefix} --libdir=${libdir} --uname=GNU +} + +do_compile() { + oe_runmake shared +} + +do_install() { + oe_runmake DESTDIR=${D} install +} + +do_install_ptest() { + install -d ${D}${PURECAP_SYSROOT_DIR}${PTEST_PATH} + install ${B}/examplesh ${D}${PURECAP_SYSROOT_DIR}${PTEST_PATH} +} \ No newline at end of file