diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 17:09:21 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 17:09:21 +0000 |
| commit | 10152c5c0752e6e514999056142dacbc8de71d95 (patch) | |
| tree | 551b75a08e9aae84562fad76b690e3a4ae0ce141 /openwrt/scripts | |
| parent | 3ace7fc64f7f7718c13767b4d48cbe8517025305 (diff) | |
| download | mtk-20170518-10152c5c0752e6e514999056142dacbc8de71d95.zip mtk-20170518-10152c5c0752e6e514999056142dacbc8de71d95.tar.gz mtk-20170518-10152c5c0752e6e514999056142dacbc8de71d95.tar.bz2 | |
add proper build depends
SVN-Revision: 3841
Diffstat (limited to 'openwrt/scripts')
| -rwxr-xr-x | openwrt/scripts/gen_deps.pl | 4 | ||||
| -rwxr-xr-x | openwrt/scripts/gen_menuconfig.pl | 7 |
2 files changed, 2 insertions, 9 deletions
diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index ef49fa3..40153bd 100755 --- a/openwrt/scripts/gen_deps.pl +++ b/openwrt/scripts/gen_deps.pl @@ -18,8 +18,8 @@ while ($line = <>) { defined $pkg{$name} or $pkg{$name} = {}; $pkg{$name}->{src} = $src; }; - $line =~ /^Depends: \s*(.+)\s*$/ and do { - my @dep = split /,\s*/, $1; + $line =~ /^(Build-)?Depends: \s*(.+)\s*$/ and do { + my @dep = split /,\s*/, $2; $pkg{$name}->{depends} = \@dep; }; } diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl index e304f18..e282ee3 100755 --- a/openwrt/scripts/gen_menuconfig.pl +++ b/openwrt/scripts/gen_menuconfig.pl @@ -28,9 +28,6 @@ sub print_category($) { foreach my $depend (@{$pkg->{depends}}) { print "\t\tdepends PACKAGE_$depend\n"; } - foreach my $need (@{$pkg->{needs}}) { - print "\t\tselect PACKAGE_$need\n"; - } print "\t\thelp\n"; print $pkg->{description}; print "\n"; @@ -66,10 +63,6 @@ while ($line = <>) { my @dep = split /,\s*/, $1; $pkg->{depends} = \@dep; }; - $line =~ /^Needs: \s*(.+)\s*$/ and do { - my @need = split /,\s*/, $1; - $pkg->{needs} = \@need; - }; $line =~ /^Category: \s*(.+)\s*$/ and do { $pkg->{category} = $1; defined $category{$1} or $category{$1} = {}; |
