summaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-10 22:00:54 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-10 22:00:54 +0000
commitbc624321e8fb058c5ebce476d33d6d0e4dcfa9e3 (patch)
tree2320af26b138a3ffb9add5ad143a555920b00967 /scripts/metadata.pm
parent3b3a36db385168971075d15fbf76a27920a7b888 (diff)
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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18357 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 8302728be..b7a448b61 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 ];