2013-02-15 00:05:53 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# duma
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
package: unification of use $(subst [._-], [._-], $(<PKG>_VERSION)) macro
Currently, there are five packages which use 'subst' macro to change their version.
* Three of them (ebtables, icu, perl) use this macro "in place" :
EBTABLES_SITE = http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-$(subst .,-,$(EBTABLES_VERSION))
ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
PERL_CROSS_OLD_POD = perl$(subst .,,$(PERL_CROSS_BASE_VERSION))delta.pod
PERL_CROSS_NEW_POD = perl$(subst .,,$(PERL_VERSION))delta.pod
* Two of them (boost, libnss) use an additional variable :
BOOST_FILE_VERSION = $(subst .,_,$(BOOST_VERSION))
BOOST_SOURCE = boost_$(BOOST_FILE_VERSION).tar.bz2
LIBNSS_SITE_VERSION = $(subst .,_,$(LIBNSS_VERSION))
LIBNSS_SITE = https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_$(LIBNSS_SITE_VERSION)_RTM/src
* Additionally two packages (duma, rings) doesn't use it at all :
DUMA_VERSION = 2_5_15
DUMA_SITE = http://downloads.sourceforge.net/project/duma/duma/2.5.15
RINGS_VERSION_MAJOR = 1.3.0
RINGS_SUBDIR = rings-v_1_3_0
This commit makes changes to use 'subst' macro "in place", in all of them.
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-01-14 11:30:58 +01:00
|
|
|
DUMA_VERSION = 2.5.15
|
|
|
|
DUMA_SOURCE = duma_$(subst .,_,$(DUMA_VERSION)).tar.gz
|
|
|
|
DUMA_SITE = http://downloads.sourceforge.net/project/duma/duma/$(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
|
2016-10-14 00:13:55 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
|
2014-05-17 19:34:50 +02:00
|
|
|
OS=linux \
|
2013-02-15 00:05:53 +01:00
|
|
|
DUMA_OPTIONS="$(DUMA_OPTIONS)" \
|
|
|
|
$(DUMA_CPP) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DUMA_INSTALL_STAGING_CMDS
|
2016-10-14 00:13:55 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) OS=linux prefix=$(STAGING_DIR)/usr install -C $(@D)
|
2013-02-15 00:05:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DUMA_INSTALL_TARGET_CMDS
|
2016-10-14 00:13:55 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) OS=linux prefix=$(TARGET_DIR)/usr install -C $(@D)
|
2013-02-15 00:05:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|