mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
649655f427
There is no standard for ABI versioning, so its not possible to find out from `libext2fs2`, `libiwinfo20230701` or `libss2` package names if thats just package name or package name with ABI version included. To help with the decision, lets make ABI version aviable in package index. Signed-off-by: Petr Štetiar <ynezz@true.cz>
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2006-2020 OpenWrt.org
|
|
|
|
ifneq ($(DUMP),)
|
|
|
|
|
|
define SOURCE_INFO
|
|
$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
|
|
)$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
|
|
)$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
|
|
)
|
|
|
|
endef
|
|
|
|
define Dumpinfo/Package
|
|
$(info $(SOURCE_INFO)Package: $(1)
|
|
$(if $(MENU),Menu: $(MENU)
|
|
)$(if $(SUBMENU),Submenu: $(SUBMENU)
|
|
)$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP)
|
|
)$(if $(DEFAULT),Default: $(DEFAULT)
|
|
)$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
|
|
)Version: $(VERSION)
|
|
Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
|
|
Conflicts: $(CONFLICTS)
|
|
Menu-Depends: $(MDEPENDS)
|
|
Provides: $(PROVIDES)
|
|
$(if $(VARIANT),Build-Variant: $(VARIANT)
|
|
$(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT)
|
|
))Section: $(SECTION)
|
|
Category: $(CATEGORY)
|
|
$(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base)
|
|
)Title: $(TITLE)
|
|
Maintainer: $(MAINTAINER)
|
|
$(if $(USERID),Require-User: $(USERID)
|
|
)Source: $(PKG_SOURCE)
|
|
$(if $(LICENSE),License: $(LICENSE)
|
|
)$(if $(LICENSE_FILES),LicenseFiles: $(LICENSE_FILES)
|
|
)$(if $(PKG_CPE_ID),CPE-ID: $(PKG_CPE_ID)
|
|
)$(if $(ABI_VERSION),ABI-Version: $(ABI_VERSION)
|
|
)Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
|
|
$(if $(KCONFIG),Kernel-Config: $(KCONFIG)
|
|
)$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
|
|
)$(if $(HIDDEN),Hidden: $(HIDDEN)
|
|
)Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
|
|
$(if $(URL),$(URL)
|
|
)$(MAINTAINER)
|
|
@@
|
|
$(if $(Package/$(1)/config),Config:
|
|
$(Package/$(1)/config)
|
|
@@
|
|
))
|
|
SOURCE_INFO :=
|
|
endef
|
|
|
|
dumpinfo: FORCE
|
|
$(if $(SOURCE_INFO),$(info $(SOURCE_INFO)))
|
|
|
|
endif
|