2013-02-15 00:05:53 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# duma
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-12-01 23:17:15 +01:00
|
|
|
DUMA_VERSION = 2.5.21
|
|
|
|
DUMA_SITE = $(call github,johnsonjh,duma,VERSION_$(subst .,_,$(DUMA_VERSION)))
|
2017-03-30 15:43:34 +02:00
|
|
|
DUMA_LICENSE = GPL-2.0+, LGPL-2.1+
|
2013-02-15 00:05:53 +01:00
|
|
|
DUMA_LICENSE_FILES = COPYING-GPL COPYING-LGPL
|
|
|
|
|
|
|
|
DUMA_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
DUMA_OPTIONS = \
|
|
|
|
$(if $(BR2_PACKAGE_DUMA_NO_LEAKDETECTION),-DDUMA_LIB_NO_LEAKDETECTION)
|
|
|
|
|
|
|
|
# The dependency of some source files in duma_config.h, which is generated at
|
|
|
|
# build time, is not specified in the Makefile. Force non-parallel build.
|
|
|
|
define DUMA_BUILD_CMDS
|
2017-04-21 17:24:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
|
2014-05-17 19:34:50 +02:00
|
|
|
OS=linux \
|
2017-04-21 17:24:48 +02:00
|
|
|
DUMA_OPTIONS="$(DUMA_OPTIONS)" \
|
2021-07-31 23:32:47 +02:00
|
|
|
CPPFLAGS="$(TARGET_CXXFLAGS) -std=c++11" -C $(@D)
|
2013-02-15 00:05:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DUMA_INSTALL_STAGING_CMDS
|
2023-12-01 23:17:15 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OS=linux prefix=$(STAGING_DIR)/usr install -C $(@D)
|
2013-02-15 00:05:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DUMA_INSTALL_TARGET_CMDS
|
2023-12-01 23:17:15 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OS=linux prefix=$(TARGET_DIR)/usr install -C $(@D)
|
2013-02-15 00:05:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|