f7e750e8f5
KF5_KCOREADDONS_CONF_OPTS is set both outside and inside the conditional block, so the value set outside would be lost if the condition were to be true. Use append-assignement in this case, as reported by check-package. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
30 lines
939 B
Makefile
30 lines
939 B
Makefile
################################################################################
|
|
#
|
|
# kf5-kcoreaddons
|
|
#
|
|
################################################################################
|
|
|
|
KF5_KCOREADDONS_VERSION = $(KF5_VERSION)
|
|
KF5_KCOREADDONS_SITE = $(KF5_SITE)
|
|
KF5_KCOREADDONS_SOURCE = kcoreaddons-$(KF5_KCOREADDONS_VERSION).tar.xz
|
|
KF5_KCOREADDONS_LICENSE = LGPL-2.1
|
|
KF5_KCOREADDONS_LICENSE_FILES = COPYING.LIB
|
|
|
|
KF5_KCOREADDONS_DEPENDENCIES = kf5-extra-cmake-modules qt5tools
|
|
KF5_KCOREADDONS_INSTALL_STAGING = YES
|
|
|
|
KF5_KCOREADDONS_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
KF5_KCOREADDONS_CXXFLAGS += -latomic
|
|
endif
|
|
|
|
KF5_KCOREADDONS_CONF_OPTS = -DCMAKE_CXX_FLAGS="$(KF5_KCOREADDONS_CXXFLAGS)"
|
|
|
|
ifeq ($(BR2_microblaze),y)
|
|
# Microblaze ld emits warnings, make warnings not to be treated as errors
|
|
KF5_KCOREADDONS_CONF_OPTS += -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-fatal-warnings"
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|