aboutsummaryrefslogtreecommitdiff
path: root/packages/linux_make/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux_make/Makefile')
-rwxr-xr-xpackages/linux_make/Makefile5
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