2022-12-21 15:15:22 +00:00
|
|
|
package=libsquashfuse
|
2023-03-30 09:48:09 +00:00
|
|
|
$(package)_version=e51978cd6bb5c4d16fae9eee43d0b258f570bb0f
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_download_path=https://github.com/vasi/squashfuse/archive/
|
|
|
|
$(package)_file_name=$($(package)_version).tar.gz
|
2023-03-30 09:48:09 +00:00
|
|
|
$(package)_sha256_hash=f544029ad30d8fbde4e4540c574b8cdc6d38b94df025a98d8551a9441f07d341
|
|
|
|
$(package)_dependencies=libfuse zstd
|
2022-12-21 15:15:22 +00:00
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2023-03-30 09:48:09 +00:00
|
|
|
./autogen.sh
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2023-03-30 09:48:09 +00:00
|
|
|
$($(package)_autoconf) --with-zstd=$(host_prefix) --without-zlib CFLAGS=-no-pie LDFLAGS=-static
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2023-03-30 09:48:09 +00:00
|
|
|
$(MAKE)
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \
|
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/lib && \
|
2023-03-30 09:48:09 +00:00
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/include/squashfuse && \
|
2022-12-21 15:15:22 +00:00
|
|
|
cp .libs/libfuseprivate.a $($(package)_staging_prefix_dir)/lib/ && \
|
|
|
|
cp .libs/libsquashfuse.a $($(package)_staging_prefix_dir)/lib/ && \
|
|
|
|
cp .libs/libsquashfuse_ll.a $($(package)_staging_prefix_dir)/lib/ && \
|
2023-03-30 09:48:09 +00:00
|
|
|
find . -name "*.h" -exec cp --parents '{}' $($(package)_staging_prefix_dir)/include/squashfuse \;
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|