- IPKG_$(1):=$(PACKAGE_DIR)/$(1)_$(VERSION)_$(PKGARCH).ipk
- IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(1)
- INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list
-
- ifdef Package/$(1)/install
- ifeq ($(CONFIG_PACKAGE_$(1)),y)
- install-targets: $$(INFO_$(1))
- endif
-
- ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER)$(SDK),)
- compile-targets: $$(IPKG_$(1))
- else
- compile-targets: $(1)-disabled
- $(1)-disabled:
- @echo "WARNING: skipping $(1) -- package not selected"
- endif
- endif
-
- ifeq ($(FORCEREBUILD),y)
- $$(IPKG_$(1)): FORCE
- endif
-
- IDEPEND_$(1):=$$(strip $$(DEPENDS))
-
- ifneq ($(DUMP),)
- dumpinfo: dumpinfo-$(1)
- dumpinfo-$(1): FORCE
- @$$(DUMPINFO_$(call shvar,$(1)))
-
- DUMPINFO_$(call shvar,$(1)) += \
- echo "Package: $(1)";
-
- ifneq ($(MENU),)
- DUMPINFO_$(call shvar,$(1)) += \
- echo "Menu: $(MENU)";
- endif
-
- ifneq ($(SUBMENU),)
- DUMPINFO_$(call shvar,$(1)) += \
- echo "Submenu: $(SUBMENU)";
- ifneq ($(SUBMENUDEP),)
- DUMPINFO_$(call shvar,$(1)) += \
- echo "Submenu-Depends: $(SUBMENUDEP)";
- endif
- endif
-
- ifneq ($(DEFAULT),)
- DUMPINFO_$(call shvar,$(1)) += \
- echo "Default: $(DEFAULT)";
- endif
-
- $(call shexport,Package/$(1)/description)
-
- DUMPINFO_$(call shvar,$(1)) += \
- if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \
- echo "Version: $(VERSION)"; \
- echo "Depends: $$(IDEPEND_$(1))"; \
- echo "Provides: $(PROVIDES)"; \
- echo "Build-Depends: $(PKG_BUILD_DEPENDS)"; \
- echo "Section: $(SECTION)"; \
- echo "Category: $(CATEGORY)"; \
- echo "Title: $(TITLE)"; \
- echo "Maintainer: $(MAINTAINER)"; \
- if isset $(call shvar,Package/$(1)/description); then \
- echo -n "Description: "; \
- getvar $(call shvar,Package/$(1)/description); \
- else \
- echo "Description: $(patsubst \\,\\\\,$(DESCRIPTION))" | perl -ne 's/\\/\n/g, print'; \
- fi;
-
- ifneq ($(URL),)
- DUMPINFO_$(call shvar,$(1)) += \
- echo; \
- echo "$(URL)";
- endif
-
- DUMPINFO_$(call shvar,$(1)) += \
- echo "@@";
-
- $(call shexport,Package/$(1)/config)
- DUMPINFO_$(call shvar,$(1)) += \
- if isset $(call shvar,Package/$(1)/config); then \
- echo "Config: "; \
- getvar $(call shvar,Package/$(1)/config); \
- echo "@@"; \
- fi;
-
- endif