2014-12-31 17:49:12 +01:00
|
|
|
package=native_libdmg-hfsplus
|
2019-06-02 23:23:54 +02:00
|
|
|
$(package)_version=7ac55ec64c96f7800d9818ce64c79670e7f02b67
|
|
|
|
$(package)_download_path=https://github.com/planetbeing/libdmg-hfsplus/archive
|
|
|
|
$(package)_file_name=$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=56fbdc48ec110966342f0ecddd6f8f89202f4143ed2a3336e42bbf88f940850c
|
2014-12-31 17:49:12 +01:00
|
|
|
$(package)_build_subdir=build
|
2019-06-02 23:23:54 +02:00
|
|
|
$(package)_patches=remove-libcrypto-dependency.patch
|
2014-12-31 17:49:12 +01:00
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2019-06-02 23:23:54 +02:00
|
|
|
patch -p1 < $($(package)_patch_dir)/remove-libcrypto-dependency.patch && \
|
2014-12-31 17:49:12 +01:00
|
|
|
mkdir build
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2020-09-02 14:40:20 +02:00
|
|
|
$($(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" ..
|
2014-12-31 17:49:12 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) -C dmg
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) -C dmg install
|
|
|
|
endef
|