From a56e4d12e9c98dbed756d2ce6e74c9b57e51c592 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 24 May 2006 07:12:59 +0000 Subject: add Build/InstallDev template to install dev files in STAGING_DIR, introduce a NEEDS: package field to implement SELECT PACKAGE_foo in menuconfig. SVN-Revision: 3824 --- openwrt/scripts/gen_menuconfig.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openwrt/scripts/gen_menuconfig.pl') diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl index e282ee3..e304f18 100755 --- a/openwrt/scripts/gen_menuconfig.pl +++ b/openwrt/scripts/gen_menuconfig.pl @@ -28,6 +28,9 @@ 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"; @@ -63,6 +66,10 @@ 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} = {}; -- cgit v1.1