qrencode: add support for PNG output
Added menuconfig option to enable PNG output. Default=disabled. Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
This commit is contained in:
parent
b503f9f0df
commit
9c76f9f274
|
@ -19,7 +19,7 @@ PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_qrencode
|
PKG_CONFIG_DEPENDS:=CONFIG_QRENCODE_PNG
|
||||||
|
|
||||||
PKG_BUILD_FLAGS:=lto
|
PKG_BUILD_FLAGS:=lto
|
||||||
|
|
||||||
|
@ -30,7 +30,9 @@ define Package/libqrencode
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=Library for encoding data in a QR Code symbol
|
TITLE:=Library for encoding data in a QR Code symbol
|
||||||
|
MENU:=1
|
||||||
URL:=https://fukuchi.org/works/qrencode/
|
URL:=https://fukuchi.org/works/qrencode/
|
||||||
|
DEPENDS:=+QRENCODE_PNG:libpng
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libqrencode/description
|
define Package/libqrencode/description
|
||||||
|
@ -40,6 +42,14 @@ as a mobile phone with CCD. The capacity of QR Code is up to 7000
|
||||||
digits or 4000 characters, and is highly robust.
|
digits or 4000 characters, and is highly robust.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libqrencode/config
|
||||||
|
config QRENCODE_PNG
|
||||||
|
bool "Enable PNG output"
|
||||||
|
depends on PACKAGE_libqrencode
|
||||||
|
select PACKAGE_libpng
|
||||||
|
default n
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/qrencode
|
define Package/qrencode
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
|
@ -56,8 +66,8 @@ digits or 4000 characters, and is highly robust.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DCMAKE_DISABLE_FIND_PACKAGE_PNG=ON \
|
-DCMAKE_DISABLE_FIND_PACKAGE_PNG=O$(if $(CONFIG_QRENCODE_PNG),FF,N) \
|
||||||
-DWITHOUT_PNG=ON \
|
-DWITHOUT_PNG=O$(if $(CONFIG_QRENCODE_PNG),FF,N) \
|
||||||
-DWITH_TOOLS=O$(if $(CONFIG_PACKAGE_qrencode),N,FF) \
|
-DWITH_TOOLS=O$(if $(CONFIG_PACKAGE_qrencode),N,FF) \
|
||||||
-DWITH_TESTS=OFF \
|
-DWITH_TESTS=OFF \
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
|
Loading…
Reference in New Issue