mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-29 21:41:43 -09:00
Fixes: 53044437c8 ("package/quazip: add option to build/install tests")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 lines
897 B
Makefile
36 lines
897 B
Makefile
################################################################################
|
|
#
|
|
# quazip
|
|
#
|
|
################################################################################
|
|
|
|
QUAZIP_VERSION = 1.5
|
|
QUAZIP_SITE = $(call github,stachenov,quazip,v$(QUAZIP_VERSION))
|
|
QUAZIP_INSTALL_STAGING = YES
|
|
QUAZIP_DEPENDENCIES = zlib
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE),y)
|
|
QUAZIP_DEPENDENCIES += qt5base
|
|
endif
|
|
ifeq ($(BR2_PACKAGE_QT6BASE),y)
|
|
QUAZIP_DEPENDENCIES += qt6base qt6core5compat
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_QUAZIP_INSTALL_TESTS),y)
|
|
QUAZIP_CONF_OPTS += -DQUAZIP_ENABLE_TESTS=ON
|
|
|
|
define QUAZIP_INSTALL_TESTS
|
|
$(INSTALL) -D -m 0755 $(@D)/qztest/qztest $(TARGET_DIR)/usr/bin/qztest
|
|
endef
|
|
|
|
QUAZIP_POST_INSTALL_TARGET_HOOKS += QUAZIP_INSTALL_TESTS
|
|
else
|
|
QUAZIP_CONF_OPTS += -DQUAZIP_ENABLE_TESTS=OFF
|
|
endif
|
|
|
|
QUAZIP_LICENSE = LGPL-2.1
|
|
QUAZIP_LICENSE_FILES = COPYING
|
|
QUAZIP_CPE_ID_VALID = YES
|
|
|
|
$(eval $(cmake-package))
|