1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

finish up package makefile

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3786 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm
2006-05-16 00:32:57 +00:00
parent 62d10fdff6
commit 95bdcf394e
4 changed files with 39 additions and 10 deletions

View File

@@ -24,16 +24,23 @@ while ($line = <>) {
};
}
$line="";
foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n";
my $hasdeps = 0;
$line = "$pkg{$name}->{src}-compile:";
my $depline = "";
foreach my $dep (@{$pkg{$name}->{depends}}) {
if (defined $pkg{$dep}->{src} && $pkg{$name}->{src} ne $pkg{$dep}->{src}) {
$hasdeps = 1;
$line .= " $pkg{$dep}->{src}-compile";
$depline .= " $pkg{$dep}->{src}-compile";
}
}
if ($hasdeps) {
print "$line\n";
if ($depline ne "") {
$line .= "$pkg{$name}->{src}-compile: $depline\n";
}
}
if ($line ne "") {
print "\n$line";
}