b9db38d370
FOO_CPE_ID_VALID really ought to be an internal implementaion detail. Packages that really want to trigger their CPE defintitions really should set one of the actual variables to a meaningful value. There are two CPE-related variables that we could chose to set to replace FOO_CPE_ID_VALID: FOO_CPE_ID_VENDOR and FOO_CPE_ID_PRODUCT. Between those two, _VENDOR more often diverges from the default than _PRODUCT does, so that's what we use. ---8<------8<------8<------8<------8<--- #!/bin/bash # Replace FOO_CPE_ID_VALID = YES with FOO_CPE_ID_VENDOR = foo_project for i in $(git grep -l -E '[^)]_CPE_ID_VALID = YES' package support); do pkg="$(basename "${i%/*}")" sed -r -i -e "s/_CPE_ID_VALID = YES/_CPE_ID_VENDOR = ${pkg}_project/" "${i}" done ---8<------8<------8<------8<------8<--- Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: update cpe-test comment to reflect pkg3 change] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# bdwgc
|
|
#
|
|
################################################################################
|
|
|
|
BDWGC_VERSION = 8.0.4
|
|
BDWGC_SOURCE = gc-$(BDWGC_VERSION).tar.gz
|
|
BDWGC_SITE = http://www.hboehm.info/gc/gc_source
|
|
BDWGC_INSTALL_STAGING = YES
|
|
BDWGC_LICENSE = bdwgc license
|
|
BDWGC_LICENSE_FILES = README.QUICK
|
|
BDWGC_CPE_ID_VENDOR = bdwgc_project
|
|
BDWGC_DEPENDENCIES = libatomic_ops host-pkgconf
|
|
HOST_BDWGC_DEPENDENCIES = host-libatomic_ops host-pkgconf
|
|
|
|
BDWGC_CONF_OPTS = CFLAGS_EXTRA="$(BDWGC_CFLAGS_EXTRA)"
|
|
ifeq ($(BR2_sparc),y)
|
|
BDWGC_CFLAGS_EXTRA += -DAO_NO_SPARC_V9
|
|
endif
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
BDWGC_CFLAGS_EXTRA += -DGC_NO_DLOPEN
|
|
endif
|
|
|
|
# Ensure we use the system libatomic_ops, and not the internal one.
|
|
BDWGC_CONF_OPTS += --with-libatomic-ops=yes
|
|
HOST_BDWGC_CONF_OPTS = --with-libatomic-ops=yes
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
BDWGC_CONF_OPTS += --enable-cplusplus
|
|
else
|
|
BDWGC_CONF_OPTS += --disable-cplusplus
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|