SECTION:=opt
CATEGORY:=Extra packages
DEPENDS:=
- NEEDS:=
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd})
VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
endif
IDEPEND_$(1):=$$(strip $$(DEPENDS))
- INEED_$(1):=$$(strip $$(NEEDS))
DUMPINFO += \
echo "Package: $(1)";
DUMPINFO += \
echo "Version: $(VERSION)"; \
echo "Depends: $$(IDEPEND_$(1))"; \
- echo "Needs: $$(INEED_$(1))"; \
+ echo "Build-Depends: $(PKG_BUILDDEP)"; \
echo "Category: $(CATEGORY)"; \
echo "Title: $(TITLE)"; \
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g';
mkdir -p $$(IDIR_$(1))/CONTROL
echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control
echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control
- #FIXME: there should be a better way to do it
- D="$$(IDEPEND_$(1))"; D="$$$${D}$$$${D:+, }$$(INEED_$(1))"; echo "Depends: $$$${D}" >> $$(IDIR_$(1))/CONTROL/control
+ echo "Depends: $$(IDEPEND_$(1))" >> $$(IDIR_$(1))/CONTROL/control
echo "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control
echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control
echo "Priority: $(PRIORITY)" >> $$(IDIR_$(1))/CONTROL/control
$$(INFO_$(1)): $$(IPKG_$(1))
$(IPKG) install $$(IPKG_$(1))
- compile-targets: $(PKG_BUILD_DIR)/.dev-installed
-
$(1)-clean:
rm -f $(PACKAGE_DIR)/$(1)_*
prepare: $(PKG_BUILD_DIR)/.prepared
configure: $(PKG_BUILD_DIR)/.configured
- compile-targets:
+ compile-targets: $(PKG_BUILD_DIR)/.dev-installed
compile: compile-targets
install-targets:
defined $pkg{$name} or $pkg{$name} = {};
$pkg{$name}->{src} = $src;
};
- $line =~ /^Depends: \s*(.+)\s*$/ and do {
- my @dep = split /,\s*/, $1;
+ $line =~ /^(Build-)?Depends: \s*(.+)\s*$/ and do {
+ my @dep = split /,\s*/, $2;
$pkg{$name}->{depends} = \@dep;
};
}
foreach my $depend (@{$pkg->{depends}}) {
print "\t\tdepends PACKAGE_$depend\n";
}
- foreach my $need (@{$pkg->{needs}}) {
- print "\t\tselect PACKAGE_$need\n";
- }
print "\t\thelp\n";
print $pkg->{description};
print "\n";
my @dep = split /,\s*/, $1;
$pkg->{depends} = \@dep;
};
- $line =~ /^Needs: \s*(.+)\s*$/ and do {
- my @need = split /,\s*/, $1;
- $pkg->{needs} = \@need;
- };
$line =~ /^Category: \s*(.+)\s*$/ and do {
$pkg->{category} = $1;
defined $category{$1} or $category{$1} = {};