Changeset View
Changeset View
Standalone View
Standalone View
depends/packages/native_libdmg-hfsplus.mk
package=native_libdmg-hfsplus | package=native_libdmg-hfsplus | ||||
$(package)_version=7ac55ec64c96f7800d9818ce64c79670e7f02b67 | $(package)_version=7ac55ec64c96f7800d9818ce64c79670e7f02b67 | ||||
$(package)_download_path=https://github.com/planetbeing/libdmg-hfsplus/archive | $(package)_download_path=https://github.com/planetbeing/libdmg-hfsplus/archive | ||||
$(package)_file_name=$($(package)_version).tar.gz | $(package)_file_name=$($(package)_version).tar.gz | ||||
$(package)_sha256_hash=56fbdc48ec110966342f0ecddd6f8f89202f4143ed2a3336e42bbf88f940850c | $(package)_sha256_hash=56fbdc48ec110966342f0ecddd6f8f89202f4143ed2a3336e42bbf88f940850c | ||||
$(package)_build_subdir=build | $(package)_build_subdir=build | ||||
$(package)_patches=remove-libcrypto-dependency.patch | $(package)_patches=remove-libcrypto-dependency.patch | ||||
define $(package)_preprocess_cmds | define $(package)_preprocess_cmds | ||||
patch -p1 < $($(package)_patch_dir)/remove-libcrypto-dependency.patch && \ | patch -p1 < $($(package)_patch_dir)/remove-libcrypto-dependency.patch && \ | ||||
mkdir build | mkdir build | ||||
endef | endef | ||||
define $(package)_config_cmds | define $(package)_config_cmds | ||||
$($(package)_cmake) -DCMAKE_C_FLAGS="$$($(1)_cflags) -Wl,--build-id=none" .. | $($(package)_cmake) -DCMAKE_C_FLAGS="$$($(1)_cflags) -Wl,--build-id=none" -DCMAKE_SKIP_RPATH="ON" -DCMAKE_EXE_LINKER_FLAGS="-static" -DCMAKE_FIND_LIBRARY_SUFFIXES=".a" .. | ||||
endef | endef | ||||
define $(package)_build_cmds | define $(package)_build_cmds | ||||
ninja -j$(JOBS) dmg | ninja -j$(JOBS) dmg | ||||
endef | endef | ||||
# Older versions of cmake do not generate install target properly, but we | # Older versions of cmake do not generate install target properly, but we | ||||
# need to support them because that's what is in xenial and we use xenial | # need to support them because that's what is in xenial and we use xenial | ||||
# for reproducible builds. So we just fallback on installing everything. | # for reproducible builds. So we just fallback on installing everything. | ||||
define $(package)_stage_cmds | define $(package)_stage_cmds | ||||
DESTDIR=$($(package)_staging_dir) ninja dmg/install || \ | DESTDIR=$($(package)_staging_dir) ninja dmg/install || \ | ||||
DESTDIR=$($(package)_staging_dir) ninja install | DESTDIR=$($(package)_staging_dir) ninja install | ||||
endef | endef |