diff mbox series

[meta-darwin,1/3] add hfsprogs recipe

Message ID 20260128063648.1422-1-dev@qinc.tv
State New
Headers show
Series [meta-darwin,1/3] add hfsprogs recipe | expand

Commit Message

Eric L. Hernes Jan. 28, 2026, 6:36 a.m. UTC
hfsprogs is used to create the dmg image file for macOS

Signed-off-by: Eric L. Hernes <dev@qinc.tv>
---
 recipes-support/hfsprogs/hfsprogs_git.bb | 35 ++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 recipes-support/hfsprogs/hfsprogs_git.bb
diff mbox series

Patch

diff --git a/recipes-support/hfsprogs/hfsprogs_git.bb b/recipes-support/hfsprogs/hfsprogs_git.bb
new file mode 100644
index 0000000..17ac0d7
--- /dev/null
+++ b/recipes-support/hfsprogs/hfsprogs_git.bb
@@ -0,0 +1,35 @@ 
+SUMMARY = "HFS+ filesystem utilities for Linux"
+DESCRIPTION = "Apple's HFS+ filesystem utilities (mkfs.hfsplus, fsck.hfsplus) \
+adapted to work on Linux systems. Based on Apple's diskdev-cmds source code."
+HOMEPAGE = "https://github.com/Artoria2e5/hfsprogs"
+
+LICENSE = "APSL-2.0"
+LIC_FILES_CHKSUM = "file://README.md;md5=ea27fd14a7e575753270cc5527d29023"
+
+SRCREV = "47e4944b2abc57f5d8456ab399671a06031bbfb5"
+SRC_URI = "git://github.com/elhernes/hfsprogs.git;branch=master;protocol=https"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "openssl libbsd"
+
+EXTRA_OEMAKE = "-f Makefile.lnx"
+
+CFLAGS += "-DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -DLINUX=1 -DBSD=1 -I${S}/include"
+
+do_compile() {
+    oe_runmake ${EXTRA_OEMAKE}
+}
+
+do_install() {
+    install -d ${D}${sbindir}
+    install -d ${D}${mandir}/man8
+
+    install -m 0755 ${S}/newfs_hfs.tproj/newfs_hfs ${D}${sbindir}/mkfs.hfsplus
+    install -m 0755 ${S}/fsck_hfs.tproj/fsck_hfs ${D}${sbindir}/fsck.hfsplus
+
+    install -m 0644 ${S}/newfs_hfs.tproj/newfs_hfs.8 ${D}${mandir}/man8/mkfs.hfsplus.8
+    install -m 0644 ${S}/fsck_hfs.tproj/fsck_hfs.8 ${D}${mandir}/man8/fsck.hfsplus.8
+}
+
+BBCLASSEXTEND = "native"