summaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-10 22:00:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-10 22:00:54 +0000
commit579d54038bab2423a65701255db6919f4df51183 (patch)
tree422232790754478411291b203b087bcb02f3a6e7 /scripts/metadata.pm
parent1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882 (diff)
downloadopenwrt-579d54038bab2423a65701255db6919f4df51183.tar.gz
openwrt-579d54038bab2423a65701255db6919f4df51183.tar.bz2
openwrt-579d54038bab2423a65701255db6919f4df51183.zip
build system: introduce a new feature called build variants. it allows building a package multiple times in one pass with different build dirs, based on the same build settings. replaces templating hacks like the one used in the hostapd package
SVN-Revision: 18357
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 8302728be6..b7a448b617 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -112,6 +112,7 @@ sub parse_package_metadata($) {
}
};
/^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;
/^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ];
/^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ];