2018-03-18 18:01:56 -04:00
|
|
|
package=native_cctools
|
2022-05-03 18:03:28 -04:00
|
|
|
$(package)_version=04663295d0425abfac90a42440a7ec02d7155fea
|
|
|
|
$(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive
|
2021-06-30 17:57:09 -04:00
|
|
|
$(package)_download_file=$($(package)_version).tar.gz
|
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2022-05-03 18:03:28 -04:00
|
|
|
$(package)_sha256_hash=70a7189418c2086d20c299c5d59250cf5940782c778892ccc899c66516ed240e
|
2018-03-18 18:01:56 -04:00
|
|
|
$(package)_build_subdir=cctools
|
2022-05-03 19:42:05 -04:00
|
|
|
$(package)_dependencies=native_clang native_libtapi
|
2024-02-23 12:27:15 -05:00
|
|
|
$(package)_patches=no-build-date.patch
|
2018-03-18 18:01:56 -04:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2022-05-03 18:03:28 -04:00
|
|
|
$(package)_config_opts=--target=$(host) --disable-lto-support --with-libtapi=$(host_prefix)
|
2018-03-18 18:01:56 -04:00
|
|
|
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
|
2022-05-03 19:42:05 -04:00
|
|
|
$(package)_cc=$(host_prefix)/native/bin/clang
|
|
|
|
$(package)_cxx=$(host_prefix)/native/bin/clang++
|
2018-03-18 18:01:56 -04:00
|
|
|
endef
|
|
|
|
|
2024-02-23 12:27:15 -05:00
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
patch -p1 < $($(package)_patch_dir)/no-build-date.patch
|
|
|
|
endef
|
|
|
|
|
2018-03-18 18:01:56 -04:00
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \
|
2022-05-03 19:42:05 -04:00
|
|
|
cp $($(package)_extract_dir)/cctools/misc/install_name_tool $($(package)_staging_prefix_dir)/bin/
|
2018-03-18 18:01:56 -04:00
|
|
|
endef
|