![Victor Huesca](/assets/img/avatar_default.png)
While most projects name their tarball <name>-<version>, where <version> is just the version number, some other projects add some prefix and/or suffix to their version number. In Buildroot, we currently encode the full version (with its prefix/suffix) in the <pkg>_VERSION variable. However, that doesn't work well to match version numbers with the release-monitoring.org website, which filters such prefixes/suffixes. This commit therefore removes the prefix/suffix from tarball-fetched packages. The name of the files being downloaded does not change. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
31 lines
845 B
Makefile
31 lines
845 B
Makefile
################################################################################
|
|
#
|
|
# lshw
|
|
#
|
|
################################################################################
|
|
|
|
LSHW_VERSION = 02.18
|
|
LSHW_SITE = http://ezix.org/software/files
|
|
LSHW_SOURCE = lshw-B.$(LSHW_VERSION).tar.gz
|
|
LSHW_LICENSE = GPL-2.0
|
|
LSHW_LICENSE_FILES = COPYING
|
|
|
|
LSHW_MAKE_OPTS = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \
|
|
RPM_OPT_FLAGS="$(TARGET_CFLAGS)" all
|
|
LSHW_MAKE_ENV = \
|
|
$(TARGET_MAKE_ENV) \
|
|
LIBS=$(TARGET_NLS_LIBS)
|
|
LSHW_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
define LSHW_BUILD_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPTS)
|
|
endef
|
|
|
|
define LSHW_INSTALL_TARGET_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
|
|
$(LSHW_MAKE_OPTS) install
|
|
$(RM) -rf $(TARGET_DIR)/usr/share/lshw
|
|
endef
|
|
|
|
$(eval $(generic-package))
|