summaryrefslogtreecommitdiff
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-05 19:03:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-05 19:03:51 +0000
commit459762ace28f9685f40e68aab0fa66a4d84ecc6c (patch)
tree3e3604ccd591435bbbf6086e8b4466da6f63165f /scripts/metadata.pm
parent980190367c7c4c05bb006b7deb7d9135d2b781e1 (diff)
downloadmtk-20170518-459762ace28f9685f40e68aab0fa66a4d84ecc6c.zip
mtk-20170518-459762ace28f9685f40e68aab0fa66a4d84ecc6c.tar.gz
mtk-20170518-459762ace28f9685f40e68aab0fa66a4d84ecc6c.tar.bz2
add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages
SVN-Revision: 26491
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 52ca989..6d544c8 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -66,6 +66,7 @@ sub parse_package_metadata($) {
$pkg->{title} = "";
$pkg->{default} = "m if ALL";
$pkg->{depends} = [];
+ $pkg->{mdepends} = [];
$pkg->{builddepends} = [];
$pkg->{buildtypes} = [];
$pkg->{subdir} = $subdir;
@@ -111,6 +112,7 @@ sub parse_package_metadata($) {
push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
}
};
+ /^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ];
/^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
/^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1;
/^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;