summaryrefslogtreecommitdiff
path: root/contrib/depends/packages/native_libdmg-hfsplus.mk
diff options
context:
space:
mode:
authorMateusz Franik <47059999+Im-Beast@users.noreply.github.com>2024-12-19 13:19:33 +0100
committerGitHub <noreply@github.com>2024-12-19 13:19:33 +0100
commit10c0df93ff92c2001ed5aa2b22e5db85ab91242e (patch)
treec08ce2f21126bd956b118aa4908d9a69d79b3e7f /contrib/depends/packages/native_libdmg-hfsplus.mk
parent7d8db85942194fc7576d58beb7a4dc65e415a56b (diff)
parent2a38bf29618a8ce163f9d6f83b7ae86924752e32 (diff)
Merge branch 'develop' into tests-other-platforms
Diffstat (limited to 'contrib/depends/packages/native_libdmg-hfsplus.mk')
-rw-r--r--contrib/depends/packages/native_libdmg-hfsplus.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/depends/packages/native_libdmg-hfsplus.mk b/contrib/depends/packages/native_libdmg-hfsplus.mk
new file mode 100644
index 0000000..839b065
--- /dev/null
+++ b/contrib/depends/packages/native_libdmg-hfsplus.mk
@@ -0,0 +1,22 @@
+package=native_libdmg-hfsplus
+$(package)_version=0.1
+$(package)_download_path=https://github.com/theuni/libdmg-hfsplus/archive
+$(package)_file_name=libdmg-hfsplus-v$($(package)_version).tar.gz
+$(package)_sha256_hash=6569a02eb31c2827080d7d59001869ea14484c281efab0ae7f2b86af5c3120b3
+$(package)_build_subdir=build
+
+define $(package)_preprocess_cmds
+ mkdir build
+endef
+
+define $(package)_config_cmds
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=$(build_prefix)/bin ..
+endef
+
+define $(package)_build_cmds
+ $(MAKE) -j$(NUM_CORES) -C dmg -j$(NUM_CORES)
+endef
+
+define $(package)_stage_cmds
+ $(MAKE) DESTDIR=$($(package)_staging_dir) -C dmg install
+endef