2024-12-04 10:22:48 -05:00
|
|
|
package=native_ccache
|
|
|
|
|
$(package)_version=4.10.2
|
|
|
|
|
$(package)_download_path=https://samba.org/ftp/ccache
|
|
|
|
|
$(package)_file_name=ccache-$($(package)_version).tar.gz
|
|
|
|
|
$(package)_sha256_hash=108100960bb7e64573ea925af2ee7611701241abb36ce0aae3354528403a7d87
|
|
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2025-01-04 09:02:44 +01:00
|
|
|
$(package)_config_opts=-DCMAKE_INSTALL_PREFIX="$(host_prefix)/native" -DENABLE_TESTING=OFF
|
2024-12-04 10:22:48 -05:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
|
cmake -S . -B build $($(package)_config_opts)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
|
cmake --build build --parallel
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2025-01-04 09:02:44 +01:00
|
|
|
cd build && $(MAKE) -j1 DESTDIR=$($(package)_staging_dir) install
|
2024-12-04 10:22:48 -05:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
|
rm -rf $($(package)_staging_dir)/lib $($(package)_staging_dir)/include
|
|
|
|
|
endef
|