diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 19:03:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 19:03:51 +0000 |
commit | d269a8077e2f448d1b316c7df810614a4d8c6e3a (patch) | |
tree | e18717be9422173578c83de4eba0e51b4103c94e /scripts/metadata.pm | |
parent | 38397beb8eccb40c30ac1064d419e97f9d10c85c (diff) | |
download | upstream-d269a8077e2f448d1b316c7df810614a4d8c6e3a.tar.gz upstream-d269a8077e2f448d1b316c7df810614a4d8c6e3a.tar.bz2 upstream-d269a8077e2f448d1b316c7df810614a4d8c6e3a.zip |
add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26491 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 52ca9895e4..6d544c8833 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; |