add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26491 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
38397beb8e
commit
d269a8077e
|
@ -10,6 +10,7 @@ define Package/Default
|
||||||
SECTION:=opt
|
SECTION:=opt
|
||||||
CATEGORY:=Extra packages
|
CATEGORY:=Extra packages
|
||||||
DEPENDS:=
|
DEPENDS:=
|
||||||
|
MDEPENDS:=
|
||||||
PROVIDES:=
|
PROVIDES:=
|
||||||
EXTRA_DEPENDS:=
|
EXTRA_DEPENDS:=
|
||||||
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
|
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
|
||||||
|
|
|
@ -31,6 +31,7 @@ $(if $(MENU),Menu: $(MENU)
|
||||||
)$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
|
)$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
|
||||||
)Version: $(VERSION)
|
)Version: $(VERSION)
|
||||||
Depends: $(DEPENDS)
|
Depends: $(DEPENDS)
|
||||||
|
Menu-Depends: $(MDEPENDS)
|
||||||
Provides: $(PROVIDES)
|
Provides: $(PROVIDES)
|
||||||
$(if $(VARIANT),Build-Variant: $(VARIANT)
|
$(if $(VARIANT),Build-Variant: $(VARIANT)
|
||||||
)$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
|
)$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS)
|
||||||
|
|
|
@ -530,6 +530,7 @@ sub print_package_config_category($) {
|
||||||
print "\t\tdefault $default\n";
|
print "\t\tdefault $default\n";
|
||||||
}
|
}
|
||||||
print mconf_depends($pkg->{name}, $pkg->{depends}, 0);
|
print mconf_depends($pkg->{name}, $pkg->{depends}, 0);
|
||||||
|
print mconf_depends($pkg->{name}, $pkg->{mdepends}, 0);
|
||||||
print "\t\thelp\n";
|
print "\t\thelp\n";
|
||||||
print $pkg->{description};
|
print $pkg->{description};
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
|
@ -66,6 +66,7 @@ sub parse_package_metadata($) {
|
||||||
$pkg->{title} = "";
|
$pkg->{title} = "";
|
||||||
$pkg->{default} = "m if ALL";
|
$pkg->{default} = "m if ALL";
|
||||||
$pkg->{depends} = [];
|
$pkg->{depends} = [];
|
||||||
|
$pkg->{mdepends} = [];
|
||||||
$pkg->{builddepends} = [];
|
$pkg->{builddepends} = [];
|
||||||
$pkg->{buildtypes} = [];
|
$pkg->{buildtypes} = [];
|
||||||
$pkg->{subdir} = $subdir;
|
$pkg->{subdir} = $subdir;
|
||||||
|
@ -111,6 +112,7 @@ sub parse_package_metadata($) {
|
||||||
push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
|
push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
/^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ];
|
||||||
/^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
|
/^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
|
||||||
/^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1;
|
/^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1;
|
||||||
/^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;
|
/^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;
|
||||||
|
|
Loading…
Reference in New Issue