diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 15:45:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 15:45:36 +0000 |
commit | e3fb07bc7890d346330f9b9bec221b1f77a6a9c0 (patch) | |
tree | 620a2c71ef5f0d8b51d78a80dee750d848d47978 /openwrt/include | |
parent | af7a470f9c3f0c8546a90ae24a8494d3ee94efd6 (diff) | |
download | mtk-20170518-e3fb07bc7890d346330f9b9bec221b1f77a6a9c0.zip mtk-20170518-e3fb07bc7890d346330f9b9bec221b1f77a6a9c0.tar.gz mtk-20170518-e3fb07bc7890d346330f9b9bec221b1f77a6a9c0.tar.bz2 |
add support for Package/<pkgname>/description - old format still supported, but deprecated
SVN-Revision: 5015
Diffstat (limited to 'openwrt/include')
-rw-r--r-- | openwrt/include/package.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/openwrt/include/package.mk b/openwrt/include/package.mk index 181ea32..7ae95f8 100644 --- a/openwrt/include/package.mk +++ b/openwrt/include/package.mk @@ -169,6 +169,8 @@ define BuildPackage echo "Default: $(DEFAULT)"; endif + $(call shexport,Package/$(1)/description) + DUMPINFO += \ if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \ echo "Version: $(VERSION)"; \ @@ -176,7 +178,12 @@ define BuildPackage echo "Build-Depends: $(PKG_BUILDDEP)"; \ echo "Category: $(CATEGORY)"; \ echo "Title: $(TITLE)"; \ - echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \ + if isset $(call shvar,Package/$(1)/description); then \ + echo -n "Description: "; \ + getvar $(call shvar,Package/$(1)/description); \ + else \ + echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \ + fi; ifneq ($(URL),) DUMPINFO += \ |