diff options
author | Georg Holzmann <grholzi@users.sourceforge.net> | 2008-03-14 22:33:50 +0000 |
---|---|---|
committer | Georg Holzmann <grholzi@users.sourceforge.net> | 2008-03-14 22:33:50 +0000 |
commit | 4fdda3b423805ce2decadb0ab1b531aafb212a7f (patch) | |
tree | 2f1242d814e01f00e02119e35fd9289ae704f17d | |
parent | 80a3e13eebf79a88f71fc62740b1161941ba9743 (diff) |
now use dpkg-shlibdeps to generate the dependencies
svn path=/trunk/; revision=9583
-rwxr-xr-x | packages/linux_make/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 9f3a9eb8..9c431575 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -14,7 +14,8 @@ BUILDLAYOUT_DIR = $(cvs_root_dir)/packages prefix = /usr/local # generates the dependencies for all externals and pd itself -PACKAGE_DEPENDS := $(shell find $(DESTDIR) \( -name "*.pd_linux" -o -name pd \) -print0 | xargs -0 ldd | sed -n 's|.*\(lib.*\) =.*|\1|p' |sort -u| xargs dpkg -S | cut -d ':' -f 1 | sort -u | tr '\n' ' ') +PACKAGE_BINARIES := $(shell find $(DESTDIR) \( -name "*.pd_linux" -o -name pd \) ) +PACKAGE_DEPENDS := $(shell dpkg-shlibdeps -O $(PACKAGE_BINARIES) | cut -b0-15 --complement ) include $(BUILDLAYOUT_DIR)/Makefile.buildlayout @@ -111,7 +112,7 @@ deb: $(bindir) sed -i 's|^Architecture:.*|Architecture: $(DEB_BUILD_ARCH)|' \ $(packages_src)/linux_make/debian/control # add auto-generated dependencies - sed -i 's|^Depends:.*|Depends: $(PACKAGE_DEPENDS)|' \ + sed -i 's!^Depends:.*!Depends: $(PACKAGE_DEPENDS)!' \ $(packages_src)/linux_make/debian/control ifeq ($(DEB_BUILD_ARCH),powerpc) sed -i 's|, libavifile-0.7c2||' $(packages_src)/linux_make/debian/control |