aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-05-28 22:58:07 +0000
committerNicolas Thill <nico@openwrt.org>2006-05-28 22:58:07 +0000
commit12f639a43843f9c05a170dfc607a3fe8d75bf803 (patch)
treea52991030ddcfbbc53261b166275902b57697d0c
parent51f47ae4591bdb1a7a1a6ccebd5b525e880bcb04 (diff)
downloadupstream-12f639a43843f9c05a170dfc607a3fe8d75bf803.tar.gz
upstream-12f639a43843f9c05a170dfc607a3fe8d75bf803.tar.bz2
upstream-12f639a43843f9c05a170dfc607a3fe8d75bf803.zip
add dependencies from the NEEDS variable to ipkg/control
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3831 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/rules.mk b/package/rules.mk
index 4999974900..9b551728b3 100644
--- a/package/rules.mk
+++ b/package/rules.mk
@@ -134,7 +134,8 @@ define BuildPackage
mkdir -p $$(IDIR_$(1))/CONTROL
echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control
echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control
- echo "Depends: $$(IDEPEND_$(1))" >> $$(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 "Source: $(SOURCE)" >> $$(IDIR_$(1))/CONTROL/control
echo "Section: $(SECTION)" >> $$(IDIR_$(1))/CONTROL/control
echo "Priority: $(PRIORITY)" >> $$(IDIR_$(1))/CONTROL/control