2023-10-10 12:21:11 +00:00
|
|
|
package=zxing-cpp
|
2023-12-13 14:41:25 +00:00
|
|
|
$(package)_version=2.2.1
|
2023-10-10 12:21:11 +00:00
|
|
|
$(package)_download_path=https://github.com/$(package)/$(package)/archive/refs/tags
|
|
|
|
$(package)_download_file=v$($(package)_version).tar.gz
|
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2023-12-13 14:41:25 +00:00
|
|
|
$(package)_sha256_hash=02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635
|
2023-10-10 12:21:11 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=-DBUILD_WRITERS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_cmake) .
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|