2
0

package-dumpinfo.mk 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. ifneq ($(DUMP),)
  8. define SOURCE_INFO
  9. $(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
  10. )$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS)
  11. )$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES)
  12. )
  13. endef
  14. define Dumpinfo/Package
  15. $(info $(SOURCE_INFO)Package: $(1)
  16. $(if $(MENU),Menu: $(MENU)
  17. )$(if $(SUBMENU),Submenu: $(SUBMENU)
  18. )$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP)
  19. )$(if $(DEFAULT),Default: $(DEFAULT)
  20. )$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
  21. )Version: $(VERSION)
  22. $(if $(ABI_VERSION),ABIVersion: $(ABI_VERSION)
  23. )Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
  24. Conflicts: $(CONFLICTS)
  25. Menu-Depends: $(MDEPENDS)
  26. Provides: $(PROVIDES)
  27. $(if $(VARIANT),Build-Variant: $(VARIANT)
  28. $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT)
  29. ))Section: $(SECTION)
  30. Category: $(CATEGORY)
  31. $(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base)
  32. )Title: $(TITLE)
  33. Maintainer: $(MAINTAINER)
  34. $(if $(USERID),Require-User: $(USERID)
  35. )Source: $(PKG_SOURCE)
  36. $(if $(LICENSE),License: $(LICENSE)
  37. )$(if $(LICENSE_FILES),LicenseFiles: $(LICENSE_FILES)
  38. )Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
  39. $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
  40. )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
  41. )$(if $(HIDDEN),Hidden: $(HIDDEN)
  42. )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
  43. $(if $(URL),$(URL)
  44. )$(MAINTAINER)
  45. @@
  46. $(if $(Package/$(1)/config),Config:
  47. $(Package/$(1)/config)
  48. @@
  49. ))
  50. SOURCE_INFO :=
  51. endef
  52. dumpinfo: FORCE
  53. $(if $(SOURCE_INFO),$(info $(SOURCE_INFO)))
  54. endif