1
0

package-dumpinfo.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
  23. Conflicts: $(CONFLICTS)
  24. Menu-Depends: $(MDEPENDS)
  25. Provides: $(PROVIDES)
  26. $(if $(VARIANT),Build-Variant: $(VARIANT)
  27. $(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT)
  28. ))Section: $(SECTION)
  29. Category: $(CATEGORY)
  30. $(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base)
  31. )Title: $(TITLE)
  32. Maintainer: $(MAINTAINER)
  33. $(if $(USERID),Require-User: $(USERID)
  34. )Source: $(PKG_SOURCE)
  35. $(if $(LICENSE),License: $(LICENSE)
  36. )$(if $(LICENSE_FILES),LicenseFiles: $(LICENSE_FILES)
  37. )Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
  38. $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
  39. )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
  40. )$(if $(HIDDEN),Hidden: $(HIDDEN)
  41. )Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE))
  42. $(if $(URL),$(URL)
  43. )$(MAINTAINER)
  44. @@
  45. $(if $(Package/$(1)/config),Config:
  46. $(Package/$(1)/config)
  47. @@
  48. ))
  49. SOURCE_INFO :=
  50. endef
  51. dumpinfo: FORCE
  52. $(if $(SOURCE_INFO),$(info $(SOURCE_INFO)))
  53. endif