diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-07-18 15:31:01 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-07-18 15:31:01 +0000 |
| commit | aa29fdce3d35a326245ec435e8b84314461ab71e (patch) | |
| tree | 1dd825b210168e7dd90b79a08a9797d53825dc60 /openwrt/include/package.mk | |
| parent | 8660a05af1df6276483b5e9100d72d6e19cd20fd (diff) | |
| download | mtk-20170518-aa29fdce3d35a326245ec435e8b84314461ab71e.zip mtk-20170518-aa29fdce3d35a326245ec435e8b84314461ab71e.tar.gz mtk-20170518-aa29fdce3d35a326245ec435e8b84314461ab71e.tar.bz2 | |
check if the Package/$(NAME) template is defined before packaging or installing ipkg packages
SVN-Revision: 4144
Diffstat (limited to 'openwrt/include/package.mk')
| -rw-r--r-- | openwrt/include/package.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/openwrt/include/package.mk b/openwrt/include/package.mk index 7aea314..2784cc8 100644 --- a/openwrt/include/package.mk +++ b/openwrt/include/package.mk @@ -65,6 +65,7 @@ define Package/Default SECTION:=opt CATEGORY:=Extra packages DEPENDS:= + EXTRA_DEPENDS:= MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org> SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd}) ifneq ($(PKG_VERSION),) @@ -113,12 +114,14 @@ define BuildPackage IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(1) INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list - ifeq ($(CONFIG_PACKAGE_$(1)),y) - install-targets: $$(INFO_$(1)) - endif + ifdef Package/$(1)/install + ifeq ($(CONFIG_PACKAGE_$(1)),y) + install-targets: $$(INFO_$(1)) + endif - ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),) - compile-targets: $$(IPKG_$(1)) + ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),) + compile-targets: $$(IPKG_$(1)) + endif endif ifeq ($(FORCEREBUILD),y) @@ -182,7 +185,7 @@ define BuildPackage for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \ DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \ done; \ - echo "Depends: $$$$DEPENDS" >> $$(IDIR_$(1))/CONTROL/control; \ + echo "Depends: $(EXTRA_DEPENDS) $$$$DEPENDS" >> $$(IDIR_$(1))/CONTROL/control; \ ) echo "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control |
