diff mbox series

[meta-oe,v2,1/3] minizip-ng: Add new recipe

Message ID 20250331094632.2373216-1-mingli.yu@eng.windriver.com
State Under Review
Headers show
Series [meta-oe,v2,1/3] minizip-ng: Add new recipe | expand

Commit Message

mingli.yu@eng.windriver.com March 31, 2025, 9:46 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

minizip-ng is a zip manipulation library written in C that is supported
on Windows, macOS, and Linux.

minizip-ng has new features and bug fixes compared to the original library
minizip [1] which had not been maintained for a long period of time.

[1] https://github.com/madler/zlib/tree/master/contrib/minizip

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../minizip-ng/minizip-ng_4.0.8.bb            | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb

Comments

Khem Raj March 31, 2025, 8:08 p.m. UTC | #1
fails with clang - https://errors.yoctoproject.org/Errors/Details/850095/

On Mon, Mar 31, 2025 at 2:46 AM Yu, Mingli via lists.openembedded.org
<mingli.yu=eng.windriver.com@lists.openembedded.org> wrote:
>
> From: Mingli Yu <mingli.yu@windriver.com>
>
> minizip-ng is a zip manipulation library written in C that is supported
> on Windows, macOS, and Linux.
>
> minizip-ng has new features and bug fixes compared to the original library
> minizip [1] which had not been maintained for a long period of time.
>
> [1] https://github.com/madler/zlib/tree/master/contrib/minizip
>
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>  .../minizip-ng/minizip-ng_4.0.8.bb            | 34 +++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb
>
> diff --git a/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb b/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb
> new file mode 100644
> index 0000000000..90882a1e58
> --- /dev/null
> +++ b/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb
> @@ -0,0 +1,34 @@
> +SUMMARY = "Zlib manipulation Library"
> +DESCRIPTION = "minizip-ng is a zip manipulation library written in C that is supported \
> +on Windows, macOS, and Linux."
> +HOMEPAGE = "https://github.com/zlib-ng/minizip-ng"
> +SECTION = "libs"
> +LICENSE = "Zlib"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=36964f044224efeedd694983c34e716f"
> +
> +SRC_URI = "git://github.com/zlib-ng/minizip-ng.git;protocol=https;branch=master"
> +
> +SRCREV = "55db144e03027b43263e5ebcb599bf0878ba58de"
> +
> +S = "${WORKDIR}/git"
> +
> +RCONFLICTS:${PN} += "minizip"
> +
> +DEPENDS = "xz openssl bzip2"
> +
> +inherit cmake pkgconfig
> +
> +EXTRA_OECMAKE = "-DMZ_FORCE_FETCH_LIBS=OFF \
> +                 -DBUILD_SHARED_LIBS=ON \
> +"
> +
> +PACKAGECONFIG ??= "zlib"
> +PACKAGECONFIG[zlib] = "-DMZ_ZLIB=ON,-DMZ_ZLIB=OFF, zlib"
> +PACKAGECONFIG[zlib-ng] = "-DMZ_ZLIB=ON,-DMZ_ZLIB=OFF, zlib-ng"
> +
> +
> +do_install:append () {
> +    # remove absolute paths
> +    sed -i -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/minizip/minizip.cmake
> +}
> +
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116428): https://lists.openembedded.org/g/openembedded-devel/message/116428
> Mute This Topic: https://lists.openembedded.org/mt/112001051/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb b/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb
new file mode 100644
index 0000000000..90882a1e58
--- /dev/null
+++ b/meta-oe/recipes-core/minizip-ng/minizip-ng_4.0.8.bb
@@ -0,0 +1,34 @@ 
+SUMMARY = "Zlib manipulation Library"
+DESCRIPTION = "minizip-ng is a zip manipulation library written in C that is supported \
+on Windows, macOS, and Linux."
+HOMEPAGE = "https://github.com/zlib-ng/minizip-ng"
+SECTION = "libs"
+LICENSE = "Zlib"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=36964f044224efeedd694983c34e716f"
+
+SRC_URI = "git://github.com/zlib-ng/minizip-ng.git;protocol=https;branch=master"
+
+SRCREV = "55db144e03027b43263e5ebcb599bf0878ba58de"
+
+S = "${WORKDIR}/git"
+
+RCONFLICTS:${PN} += "minizip"
+
+DEPENDS = "xz openssl bzip2"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE = "-DMZ_FORCE_FETCH_LIBS=OFF \
+                 -DBUILD_SHARED_LIBS=ON \
+"
+
+PACKAGECONFIG ??= "zlib"
+PACKAGECONFIG[zlib] = "-DMZ_ZLIB=ON,-DMZ_ZLIB=OFF, zlib"
+PACKAGECONFIG[zlib-ng] = "-DMZ_ZLIB=ON,-DMZ_ZLIB=OFF, zlib-ng"
+
+
+do_install:append () {
+    # remove absolute paths
+    sed -i -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/minizip/minizip.cmake
+}
+