4e4dd94dec
- Use new --with[out]-png option - Add hash for license file Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
923 B
Makefile
35 lines
923 B
Makefile
################################################################################
|
|
#
|
|
# libqrencode
|
|
#
|
|
################################################################################
|
|
|
|
LIBQRENCODE_VERSION = 4.0.0
|
|
LIBQRENCODE_SOURCE = qrencode-$(LIBQRENCODE_VERSION).tar.gz
|
|
LIBQRENCODE_SITE = http://fukuchi.org/works/qrencode
|
|
LIBQRENCODE_DEPENDENCIES = host-pkgconf
|
|
LIBQRENCODE_INSTALL_STAGING = YES
|
|
LIBQRENCODE_LICENSE = LGPL-2.1+
|
|
LIBQRENCODE_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
LIBQRENCODE_CONF_ENV += LIBS='-pthread'
|
|
else
|
|
LIBQRENCODE_CONF_OPTS += --disable-thread-safety
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
LIBQRENCODE_CONF_OPTS += --with-png
|
|
LIBQRENCODE_DEPENDENCIES += libpng
|
|
else
|
|
LIBQRENCODE_CONF_OPTS += --without-png
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBQRENCODE_TOOLS),y)
|
|
LIBQRENCODE_CONF_OPTS += --with-tools=yes
|
|
else
|
|
LIBQRENCODE_CONF_OPTS += --with-tools=no
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|