2022-06-02 12:50:33 +00:00
|
|
|
package=zbar
|
2023-10-03 09:55:31 +00:00
|
|
|
$(package)_version=0.23.90
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://github.com/mchehab/zbar/archive/refs/tags/
|
2023-10-03 09:55:31 +00:00
|
|
|
$(package)_download_file=$($(package)_version).tar.gz
|
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=25fdd6726d5c4c6f95c95d37591bfbb2dde63d13d0b10cb1350923ea8b11963b
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_dependencies=libiconv
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2023-10-03 09:55:31 +00:00
|
|
|
$(package)_cflags+=-fPIE
|
|
|
|
$(package)_cxxflags+=-fPIE
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2023-10-03 09:55:31 +00:00
|
|
|
autoreconf -vfi
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2023-10-03 09:55:31 +00:00
|
|
|
$(package)_config_opts=--prefix=$(host_prefix) --disable-shared --without-imagemagick --disable-video --without-xv --with-gtk=no --with-python=no --enable-doc=no --host=$(host)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2023-10-03 09:55:31 +00:00
|
|
|
$($(package)_autoconf) $($(package)_config_opts)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2023-10-03 09:55:31 +00:00
|
|
|
$(MAKE) $($(package)_build_opts)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|