2014-07-23 07:31:30 +02:00
|
|
|
package=qrencode
|
2023-03-27 12:44:42 +02:00
|
|
|
$(package)_version=4.1.1
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_download_path=https://fukuchi.org/works/qrencode/
|
2019-01-03 10:18:47 +01:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
2023-03-27 12:44:42 +02:00
|
|
|
$(package)_sha256_hash=e455d9732f8041cf5b9c388e345a641fd15707860f928e94507b1961256a6923
|
2024-04-05 16:05:50 +02:00
|
|
|
$(package)_patches=cmake_fixups.patch
|
2014-07-23 07:31:30 +02:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2024-04-05 16:05:50 +02:00
|
|
|
$(package)_config_opts := -DWITH_TOOLS=NO -DWITH_TESTS=NO -DGPROF=OFF -DCOVERAGE=OFF
|
|
|
|
$(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE -DWITHOUT_PNG=ON
|
|
|
|
$(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_ICONV=TRUE
|
2023-03-27 12:44:42 +02:00
|
|
|
$(package)_cflags += -Wno-int-conversion -Wno-implicit-function-declaration
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
2018-07-19 07:04:00 +02:00
|
|
|
define $(package)_preprocess_cmds
|
2024-04-05 16:05:50 +02:00
|
|
|
patch -p1 < $($(package)_patch_dir)/cmake_fixups.patch
|
2018-07-19 07:04:00 +02:00
|
|
|
endef
|
|
|
|
|
2024-04-05 16:05:50 +02:00
|
|
|
|
2014-07-23 07:31:30 +02:00
|
|
|
define $(package)_config_cmds
|
2024-04-05 16:05:50 +02:00
|
|
|
$($(package)_cmake) -S . -B .
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|