| 1 |
package=libfuse |
| 2 |
$(package)_version=3.16.2 |
| 3 |
$(package)_download_path=https://github.com/libfuse/libfuse/releases/download/fuse-$($(package)_version) |
| 4 |
$(package)_file_name=fuse-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87 |
| 6 |
$(package)_patches=toolchain.txt mount.c.diff no-dlopen.patch set_fusermount_path.patch |
| 7 |
|
| 8 |
define $(package)_preprocess_cmds |
| 9 |
patch -p1 < $($(package)_patch_dir)/set_fusermount_path.patch && \ |
| 10 |
patch -p1 < $($(package)_patch_dir)/no-dlopen.patch && \ |
| 11 |
patch -p1 < $($(package)_patch_dir)/mount.c.diff && \ |
| 12 |
cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \ |
| 13 |
sed -i -e 's|@host_prefix@|$(host_prefix)|' \ |
| 14 |
-e 's|@cc@|$($(package)_cc)|' \ |
| 15 |
-e 's|@cxx@|$($(package)_cxx)|' \ |
| 16 |
-e 's|@ar@|$($(package)_ar)|' \ |
| 17 |
-e 's|@strip@|$(host_STRIP)|' \ |
| 18 |
-e 's|@arch@|$(host_arch)|' \ |
| 19 |
toolchain.txt |
| 20 |
endef |
| 21 |
|
| 22 |
define $(package)_config_cmds |
| 23 |
meson setup --cross-file toolchain.txt build |
| 24 |
endef |
| 25 |
|
| 26 |
define $(package)_build_cmds |
| 27 |
ninja -C build |
| 28 |
endef |
| 29 |
|
| 30 |
define $(package)_stage_cmds |
| 31 |
DESTDIR=$($(package)_staging_dir) ninja -C build install |
| 32 |
endef |