13 $line =~ /^Source-Makefile: \s*(.+\/([^\
/]+)\/Makefile
)\s
*$/ and do {
17 $line =~ /^Package: \s*(.+)\s*$/ and do {
19 defined $pkg{$name} or $pkg{$name} = {};
20 $pkg{$name}->{src
} = $src;
22 $line =~ /^(Build-)?Depends: \s*(.+)\s*$/ and do {
23 $pkg{$name}->{depends
} ||= [];
24 foreach my $v (split /\s+/, $2) {
27 push @
{$pkg{$name}->{depends
}}, $v;
34 foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
35 print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n";
39 foreach my $dep (@
{$pkg{$name}->{depends
}}) {
41 if (defined $pkg{$dep}->{src
} && $pkg{$name}->{src
} ne $pkg{$dep}->{src
}) {
42 $idx = $pkg{$dep}->{src
};
43 } elsif (defined $pkg{$dep}) {
47 next if $dep{$pkg{$name}->{src
}."->".$idx};
48 $depline .= " $idx\-compile";
49 $dep{$pkg{$name}->{src
}."->".$idx} = 1;
53 $line .= "$pkg{$name}->{src}-compile: $depline\n";
This page took 0.073153 seconds and 5 git commands to generate.