qrencode.mk raw
1 package=qrencode
2 $(package)_version=4.1.1
3 $(package)_download_path=https://github.com/fukuchi/libqrencode/archive/refs/tags/
4 $(package)_download_file=v$($(package)_version).tar.gz
5 $(package)_file_name=$(package)-$($(package)_version)-github.tar.gz
6 $(package)_sha256_hash=5385bc1b8c2f20f3b91d258bf8ccc8cf62023935df2d2676b5b67049f31a049c
7 $(package)_patches=cmake_fixups.patch
8
9 define $(package)_set_vars
10 $(package)_config_opts := -DWITH_TOOLS=NO -DWITH_TESTS=NO -DGPROF=OFF -DCOVERAGE=OFF
11 $(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE -DWITHOUT_PNG=ON
12 $(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_ICONV=TRUE
13 $(package)_cflags += -Wno-int-conversion -Wno-implicit-function-declaration
14 endef
15
16 define $(package)_preprocess_cmds
17 patch -p1 < $($(package)_patch_dir)/cmake_fixups.patch
18 endef
19
20
21 define $(package)_config_cmds
22 $($(package)_cmake) -S . -B .
23 endef
24
25 define $(package)_build_cmds
26 $(MAKE)
27 endef
28
29 define $(package)_stage_cmds
30 $(MAKE) DESTDIR=$($(package)_staging_dir) install
31 endef
32
33 define $(package)_postprocess_cmds
34 rm -rf share
35 endef
36